You are not logged in.
I am having issues with pacman and archlinux. And the main thing is that something is broke in libssl or libcurl, I dont know which one.
So everytime I try to run anything in pacman, I get the error:
pacman: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found (required by /usr/lib/libcurl.so.4)
And everytime I try to run curl, it also throws me the same error:
Full error message:
❯ pacman
pacman: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found (required by /usr/lib/libcurl.so.4)
❯ curl
curl: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found (required by /usr/lib/libcurl.so.4)
I have spent some time reading other threads and trying to reinstall pacman, but got stuck trying to remove it from my distro installation.
I tried fixing by doing what people said in these topics:
1. https://bbs.archlinux.org/viewtopic.php?id=292445
2. https://bbs.archlinux.org/viewtopic.php?id=95007
3. https://bbs.archlinux.org/viewtopic.php?id=292911
I am new to archlinux, so I am lost in what else can I do to fix this. I am considering reinstalling my whole system b/c it seems really messed up.
Offline
What is your output for "pacman -Qs openssl" as well as "pacman -Q openssl"?
Offline
Same thing:
❯ pacman -Qs openssl
pacman: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found (required by /usr/lib/libcurl.so.4)
❯ pacman -Q openssl
pacman: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found (required by /usr/lib/libcurl.so.4)
Offline
How about this:
ls -d /var/lib/pacman/local/openssl*
This will miss anything else that "provides" openssl, but should be good for a start.
Last edited by Trilby (2024-10-13 20:20:17)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
You need to use an external pacman (see https://wiki.archlinux.org/title/Pacman … ng_pacman) and fully update the system. This happens because of a partial update.
Offline
How about this:
ls -d /var/lib/pacman/local/openssl*
This will miss anything else that "provides" openssl, but should be good for a start.
Output:
❯ ls -d /var/lib/pacman/local/openssl*
/var/lib/pacman/local/openssl-3.2.0-1
------
You need to use an external pacman (see https://wiki.archlinux.org/title/Pacman … ng_pacman) and fully update the system. This happens because of a partial update.
About that, I read that in another topic. I was seeing something about pacman-static or another option.
Do I need to download pacman-static and use it to install partial installed packages? I didn't find out how to download pacman-static without pacman, so I got stuck there.
Offline
Trying to download pacman-static with git clone, I still get the error:
❯ git clone https://aur.archlinux.org/pacman-static.git
Cloning into 'pacman-static'...
/usr/lib/git-core/git-remote-https: /usr/lib/libssl.so.3: version `OPENSSL_3.3.0' not found (required by /usr/lib/libcurl.so.4)
fatal: remote helper 'https' aborted session
Everything seems to be associated to openssl. D:
Offline
Not everything, but everything that uses ssl, which includes anything that downloads from an https address. You don't want to try to build pacman-static anyhow - you may download a prebuilt pacman-static though. But given where your starting from, I suspect booting from a live iso would be better anyways.
Last edited by Trilby (2024-10-13 21:58:50)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
as this was a point in another topic: what's your uptime? have you rebooted since the update?
Offline
I downloaded pacman-static and ran the update/upgrade command.
It tried to install and upgrade packages, but it failed in some kind of unknown trust signatures:
error: http-parser: signature from "Caleb Maclennan <alerque@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/http-parser-2.9.4-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: libvterm: signature from "Caleb Maclennan <alerque@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/libvterm-0.3.3-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
How can I proceed from here?
Offline
Update archlinux-keyring first
Offline
This happened:
❯ sudo pmn-static -S archlinux-keyring
warning: archlinux-keyring-20240709-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) archlinux-keyring-20240709-2
Total Installed Size: 1.67 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring [########################################] 100%
(1/1) checking package integrity [########################################] 100%
(1/1) loading package files [########################################] 100%
(1/1) checking for file conflicts [########################################] 100%
:: Processing package changes...
(1/1) reinstalling archlinux-keyring [########################################] 100%
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
Skipped: Current root is not booted.
(2/2) Arming ConditionNeedsUpdate...
Tried to update boot by installing linux with:
sudo pmn-static -S linux
And this came out:
❯ sudo pmn-static -S linux
resolving dependencies...
:: There are 3 providers available for initramfs:
:: Repository core
1) mkinitcpio
:: Repository extra
2) booster 3) dracut
Enter a number (default=1):
looking for conflicting packages...
Packages (3) mkinitcpio-39.2-2 mkinitcpio-busybox-1.36.1-1 linux-6.11.3.arch1-1
Total Installed Size: 137.84 MiB
:: Proceed with installation? [Y/n] Y
(3/3) checking keys in keyring [########################################] 100%
(3/3) checking package integrity [########################################] 100%
(3/3) loading package files [########################################] 100%
(3/3) checking for file conflicts [########################################] 100%
error: failed to commit transaction (conflicting files)
mkinitcpio: /usr/lib/initcpio/hooks/encrypt exists in filesystem (owned by cryptsetup)
mkinitcpio: /usr/lib/initcpio/hooks/udev exists in filesystem (owned by systemd)
mkinitcpio: /usr/lib/initcpio/install/encrypt exists in filesystem (owned by cryptsetup)
mkinitcpio: /usr/lib/initcpio/install/sd-encrypt exists in filesystem (owned by cryptsetup)
mkinitcpio: /usr/lib/initcpio/install/systemd exists in filesystem (owned by systemd)
mkinitcpio: /usr/lib/initcpio/install/udev exists in filesystem (owned by systemd)
Errors occurred, no packages were upgraded.
Offline
mayhaps sudo pmn-static -Syu archlinux-keyring ?
Edit: After Schimmia's response, I guess it should be:
sudo pmn-static -Sy archlinux-keyring
sudo pmn-static -Su
Last edited by ewaller (2024-10-15 02:16:01)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
So you're trying to do more partial updates, the same thing that got you in this mess to begin with. archlinux-keyring is a special case, but don't just update other things (like the kernel and it's deps) without updating the entire system. You're just digging the hole deeper doing that.
I'm guessing gpg is broken, too, the post_install didn't run correctly in that output. What does `pacman-key --populate archlinux` say?
It really will be easier to just boot the ISO and use pacman from there with the --root option.
Last edited by Scimmia (2024-10-15 02:22:20)
Offline
It really will be easier to just boot the ISO and use pacman from there with the --root option.
according to manpage shouldn't that be --sysroot rather than just --root?
Offline
--sysroot chroots into the target, probably not a good plan when libssl is broken (because several target binaries will fail)
--root however more or less mandates --cachedir if you want to update more than some few MB
Offline