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.
Online
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 sessionEverything 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
Online
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 linuxAnd 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 -SuLast 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
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
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)
Online
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
Hello,
I have the same issue but the reason why I did a partial update is because I don't have enough space on '/'. I could follow your instructions and installed pacman-static but when I ran -Syu after downloading all packages, checking integrity, checking for file conflicts I get:
Partition / top full...I identified packages I could uninstall to save space but when I try to remove them with `pacman-static -Rsc` I get:
error: hook /usr/share/libalpm/hooks/gvfsd.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/glib-compile-schemas.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gtk4-querymodules.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/ghc-unregister.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-hwdb.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/40-update-ca-trust.hook line 5: invalid value Path
error: hook /usr/share/libalpm/hooks/60-mkinitcpio-remove.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/accounts-daemon-restart.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-sysctl.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-udev-reload.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/90-update-appstream-cache.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-update.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/vimdoc.hook line 5: invalid value Path
error: hook /usr/share/libalpm/hooks/texinfo-remove.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-catalog.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/ghc-register.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/texinfo-install.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-tmpfiles.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/detect-old-perl-modules.hook line 4: invalid value Path
error: hook /usr/share/libalpm/hooks/fontconfig.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gtk-update-icon-cache.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/update-desktop-database.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gio-querymodules-32.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gtk-query-immodules-3.0.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/60-depmod.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gdk-pixbuf-query-loaders.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-binfmt.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/90-mkinitcpio-install.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/70-mktexlsr.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-update-mime-database.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/20-systemd-sysusers.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gtk-query-immodules-2.0.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/dconf-update.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/30-systemd-daemon-reload.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/reload-lunii-udev-rule.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/gio-querymodules.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/update-vlc-plugin-cache.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/dbus-reload.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/40-fontconfig-config.hook line 2: invalid value Path
error: hook /usr/share/libalpm/hooks/73-texlive-updmap.hook line 2: invalid value Path
error: failed to commit transaction (failed to run transaction hooks)Thanks for your advice
Last edited by lldelisle (2025-02-12 08:17:20)
Offline
have you tried to clear the cache by
pacman -Sc? should already give you some space
if not on its own mountpoint also check for old big logs - could also give a few valuable inodes
Offline
Please don't hijack threads and use [code][/code] tags, the bbs predates markdown by your age. Edit your post in this regard.
"invalid value Path" means you're using a version of pacman(-static) that's > 5 years old, maybe don't.
Offline
Please don't hijack threads
Sorry I felt like it could be a continuous as the error was the same and what you wrote was making sense to solve my issue.
and use [code][/code] tags, the bbs predates markdown by your age. Edit your post in this regard.
Done
"invalid value Path" means you're using a version of pacman(-static) that's > 5 years old, maybe don't.
Indeed pacman v5.1.3. The whole story is that I reopened my laptop I had not touched since long and I wanted to upgrade for security reasons but putting back to date so many packages is challenging given the space left on '/'.
Offline
You'll probably want to update/fix it offline w/ a current version of the install iso (or you'll run into keyring issues next)
"pacman --root=/mnt --cachedir=/mnt/var/cache/pacman/pkg …" and as cryptearth suggested, start by cleaning the cache.
"-Rsc" is super-"dangerous" because of the cascade - you can wipe the entire system this way.
I'd rather spend a moment check what humongous packages one maybe does not need.
https://bbs.archlinux.org/viewtopic.php … 5#p2214315 might help you here.
Offline
have you tried to clear the cache by
pacman -Sc? should already give you some space
if not on its own mountpoint also check for old big logs - could also give a few valuable inodes
I have tried this: clear the cache and then run
pacman-static -Syubut this is not sufficient.
I was wondering if there was a way to 1. clean the cache 2. run
pacman-static -Syubut asking pacman to store downloads in '/home' for example so there is enough space to install the packages.
Offline
See the --cachedir parameter, the intallation will still be on "/", though.
Offline
Thanks Seth, sorry I missed your answer while writting my post. To remove big packages you would recommand simply
pacman-static -R mypackage?
Offline
-Rs is fine, only -c is "dangerous" in that sense,
Offline