You are not logged in.

#1 2024-02-16 14:14:02

stk
Member
Registered: 2023-09-15
Posts: 10

[SOLVED] broken libssl OPENSSL dependency: Pacman, Git, X not working

Yesterday I did a

sudo pacman -Syu

and since then I get errors about broken dependencies with /usr/lib/libssl.so.3 and OPENSSL_3.2.0

$ pacman -Ss a
pacman: /usr/lib/libssl.so.3: version `OPENSSL_3.2.0' not found (required by /usr/lib/libcurl.so.4)
$ git pull
/usr/lib/git-core/git-remote-https: /usr/lib/libssl.so.3: version `OPENSSL_3.2.0' not found (required by /usr/lib/libcurl.so.4)

I already tried to resymlink /usr/lib/libssl.so.3 using

cd /usr/lib
sudo ln -s libssl.so.3 libssl.so
sudo ldconfig

but it didn't fix anything.

I am in a chroot now, but I'm unsure what to do. Can I somehow correct the OPENSSL dependency using pacstrap?

Last edited by stk (2024-04-05 10:06:15)

Offline

#2 2024-02-16 14:18:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,783

Re: [SOLVED] broken libssl OPENSSL dependency: Pacman, Git, X not working

use pacman on the ISO with the --sysroot option to install the openssl package. I'm assuming you're either holding back the update, or have some other version installed from the AUR or elsewhere?

Offline

#3 2024-02-16 14:26:36

stk
Member
Registered: 2023-09-15
Posts: 10

Re: [SOLVED] broken libssl OPENSSL dependency: Pacman, Git, X not working

Scimmia wrote:

use pacman on the ISO with the --sysroot option to install the openssl package. I'm assuming you're either holding back the update, or have some other version installed from the AUR or elsewhere?

I'm on a normal Garuda install, with the arch-install-scripts installed and the root of my arch drive mounted to /mnt.

I've never interacted with openssl directly and probably only installed it as a dependency without noticing, also I can't use pacman at all in my arch, since it ever gives the above error.

Do I have to boot an ISO, mount the arch root to /mnt and then run

pacman --sysroot openssl

or could I also directly do that in Garuda?

Last edited by stk (2024-02-16 14:27:42)

Offline

#4 2024-02-16 14:50:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,479

Re: [SOLVED] broken libssl OPENSSL dependency: Pacman, Git, X not working

Most likely, you'll have to ask further questions on the garuda boards, we don't support them here: https://bbs.archlinux.org/misc.php?action=rules

Closing. -- For deletion.

Reopening on appeal

Last edited by V1del (2024-02-16 15:25:40)

Offline

#5 2024-02-16 15:21:13

stk
Member
Registered: 2023-09-15
Posts: 10

Re: [SOLVED] broken libssl OPENSSL dependency: Pacman, Git, X not working

The previous post of mine was deleted under the wrong assumption that I'd be asking a question about Garuda Linux, which I'm not. The system I need help with is a Arch Linux x86_64

Yesterday I did a

sudo pacman -Syu

and since then I get errors about broken dependencies with /usr/lib/libssl.so.3 and OPENSSL_3.2.0

$ pacman -Ss a
pacman: /usr/lib/libssl.so.3: version `OPENSSL_3.2.0' not found (required by /usr/lib/libcurl.so.4)
$ git pull
/usr/lib/git-core/git-remote-https: /usr/lib/libssl.so.3: version `OPENSSL_3.2.0' not found (required by /usr/lib/libcurl.so.4)

I already tried to resymlink /usr/lib/libssl.so.3 using

cd /usr/lib
sudo ln -s libssl.so.3 libssl.so
sudo ldconfig

but it didn't fix anything.

As Scimmia suggested I tried

$ sudo pacman --sysroot /mnt -S openssl

but that gave me the errors:

resolving dependencies...
looking for conflicting packages...
:: openssl and openssl-static are in conflict. Remove openssl-static? [y/N] y

Packages (2) openssl-static-3.1.2-1 [removal]  openssl-3.2.1-1

Total Download Size:     4,92 MiB
Total Installed Size:   11,45 MiB
Net Upgrade Size:      -10,24 MiB

:: Proceed with installation? [Y/n] Y
error: could not open file: /etc/mtab: No such file or directory
error: could not determine filesystem mount points
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

openssl-static is flagged out of date as well in the AUR

Offline

#6 2024-02-16 15:23:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,479

Re: [SOLVED] broken libssl OPENSSL dependency: Pacman, Git, X not working

Were you using a live disk of Garuda to fix Arch in that case I presume? I'll merge this back and reopen in that case.

In the future please use the report button (... even on a moderator post...) if you don't agree with a decision and want to present your case.

Last edited by V1del (2024-02-16 15:23:53)

Offline

#7 2024-02-16 15:31:35

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,783

Re: [SOLVED] broken libssl OPENSSL dependency: Pacman, Git, X not working

You need to mount proc into the system as well.

mount -t proc /proc /mnt/proc/

The output does show that you were using an AUR version of openssl. Not a great idea, for obvious reasons.

Offline

#8 2024-02-16 15:32:39

stk
Member
Registered: 2023-09-15
Posts: 10

Re: [SOLVED] broken libssl OPENSSL dependency: Pacman, Git, X not working

V1del wrote:

In the future please use the report button (... even on a moderator post...) if you don't agree with a decision and want to present your case.

Yeah I wasn't sure what to do so I just sent you an Email...but as you didn't reply I decided to just open a new topic.

V1del wrote:

Were you using a live disk of Garuda to fix Arch in that case I presume?

No, I have a working full garuda install on a seperate drive on the same computer, with the arch-install-scripts installed.

Last edited by stk (2024-02-16 16:03:16)

Offline

#9 2024-02-16 15:36:59

stk
Member
Registered: 2023-09-15
Posts: 10

Re: [SOLVED] broken libssl OPENSSL dependency: Pacman, Git, X not working

Scimmia wrote:

You need to mount proc into the system as well.

mount -t proc /proc /mnt/proc/

I mounted proc and retried, now I'm getting an GPGME error:

$ sudo pacman --sysroot /mnt -S openssl
resolving dependencies...
looking for conflicting packages...
:: openssl and openssl-static are in conflict. Remove openssl-static? [y/N] y

Packages (2) openssl-static-3.1.2-1 [removal]  openssl-3.2.1-1

Total Download Size:     4,92 MiB
Total Installed Size:   11,45 MiB
Net Upgrade Size:      -10,24 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
openssl-3.2.1-1-x86_64                                                                  4,9 MiB  4,79 MiB/s 00:01 [####################################################################] 100%
(1/1) checking keys in keyring                                                                                     [####################################################################] 100%
error: GPGME error: Invalid crypto engine
(1/1) checking package integrity                                                                                   [####################################################################] 100%
error: GPGME error: Invalid crypto engine
error: openssl: missing required signature
:: File /var/cache/pacman/pkg/openssl-3.2.1-1-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 (PGP signature))
Errors occurred, no packages were upgraded.
Scimmia wrote:

The output does show that you were using an AUR version of openssl. Not a great idea, for obvious reasons.

I didn't install it manually, idk why the AUR version is installed :/

Offline

#10 2024-02-16 15:41:41

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,783

Re: [SOLVED] broken libssl OPENSSL dependency: Pacman, Git, X not working

Ah, right. Too much stuff broken, you'll have to use --root, --cachedir, and --config instead. If Garuda doesn't have Arch's keys in the keyring, --gpgdir as well.

As for why you have openssl-static, /var/log/pacman.log should have some clues

Offline

#11 2024-02-16 15:57:12

stk
Member
Registered: 2023-09-15
Posts: 10

Re: [SOLVED] broken libssl OPENSSL dependency: Pacman, Git, X not working

Scimmia wrote:

Ah, right. Too much stuff broken, you'll have to use --root, --cachedir, and --config instead. If Garuda doesn't have Arch's keys in the keyring, --gpgdir as well.

What alternative config file should I use?
Can I use any cachedir I want? So can I just create a new dir called abctemp inside my $HOME and use that?
What root should I use? The manual says it shouldn't be used for mounted guest system, --sysroot instead...

Scimmia wrote:

As for why you have openssl-static, /var/log/pacman.log should have some clues

pacman.log says it has something to do with electron, but I never explicitely installed electron, only as a dependency of code-oss, which is not mentioned at that day...

[2024-01-31T20:48:19+0100] [PACMAN] Running 'pacman --sync --noconfirm -- extra/electron28 extra/electron'
[2024-01-31T20:48:31+0100] [ALPM] transaction started
[2024-01-31T20:48:32+0100] [ALPM] installed electron28 (28.2.0-1)
[2024-01-31T20:48:32+0100] [ALPM] installed electron (1:28-1)
[2024-01-31T20:48:32+0100] [ALPM] transaction completed
[2024-01-31T20:48:32+0100] [ALPM] running '30-systemd-update.hook'...
[2024-01-31T20:48:32+0100] [ALPM] running 'update-desktop-database.hook'...
[2024-01-31T20:48:32+0100] [PACMAN] Running 'pacman --database --asdeps -- electron28 electron'
[2024-01-31T21:01:54+0100] [PACMAN] Running 'pacman --upgrade -- /home/stk/.cache/paru/clone/openssl-static/openssl-static-3.1.2-1-x86_64.pkg.tar.zst'
[2024-01-31T21:02:02+0100] [ALPM] transaction started
[2024-01-31T21:02:02+0100] [ALPM] removed openssl (3.2.0-1)
[2024-01-31T21:02:03+0100] [ALPM] installed openssl-static (3.1.2-1)
[2024-01-31T21:02:03+0100] [ALPM] transaction completed
[2024-01-31T21:02:03+0100] [ALPM] running '30-systemd-update.hook'...
[2024-01-31T21:02:03+0100] [PACMAN] Running 'pacman --database --asdeps -- openssl-static'

Offline

#12 2024-02-16 16:04:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,783

Re: [SOLVED] broken libssl OPENSSL dependency: Pacman, Git, X not working

You set it to use the config and cache dir on the Arch system, ie /mnt/etc/pacman.conf and /mnt/var/cache/pacman/pkg/

that was almost 15 minutes after electron, so very possibly not related. You can check your shell history to see what you were running at that time

Offline

#13 2024-02-16 16:22:07

stk
Member
Registered: 2023-09-15
Posts: 10

Re: [SOLVED] broken libssl OPENSSL dependency: Pacman, Git, X not working

Scimmia wrote:

You set it to use the config and cache dir on the Arch system, ie /mnt/etc/pacman.conf and /mnt/var/cache/pacman/pkg/

$ ls /mnt/etc/pacman.conf
.rw-r--r-- 2,9k root 29 Jan 22:55  /mnt/etc/pacman.conf
$ sudo pacman --sysroot /mnt --config /mnt/etc/pacman.conf --cachedir /mnt/var/cache/pacman/pkg/ -S openssl
error: config file /mnt/etc/pacman.conf could not be read: No such file or directory

...

Scimmia wrote:

that was almost 15 minutes after electron, so very possibly not related. You can check your shell history to see what you were running at that time

~/.bash_history doesn't have timestamps, is there another history?

But before the openssl-static thing I installed nerd-fonts-symbols:

[2024-01-30T22:36:51+0100] [ALPM-SCRIPTLET] Note: For ttf-nerd-fonts-symbols-mono, use the "Symbols Nerd Font
Mono" family
[2024-01-30T22:36:51+0100] [ALPM-SCRIPTLET] in your font config.
[2024-01-30T22:36:51+0100] [ALPM-SCRIPTLET]
[2024-01-30T22:36:51+0100] [ALPM-SCRIPTLET] Symlink /usr/share/fontconfig/conf.avail/10-nerd-font-symbols.conf
to
[2024-01-30T22:36:51+0100] [ALPM-SCRIPTLET] /etc/fonts/conf.d/, or see `man 5 fonts-conf` for other options.
[2024-01-30T22:36:51+0100] [ALPM] transaction completed
[2024-01-30T22:36:51+0100] [ALPM] running '30-systemd-update.hook'...
[2024-01-30T22:36:51+0100] [ALPM] running 'fontconfig.hook'...
[2024-01-31T20:48:19+0100] [PACMAN] Running 'pacman --sync --noconfirm -- extra/electron28 extra/electron'
[2024-01-31T20:48:31+0100] [ALPM] transaction started
[2024-01-31T20:48:32+0100] [ALPM] installed electron28 (28.2.0-1)

and in the .bash_history file after nerd-fonts-symbols it installed Albion Online, Flameshot, Libreoffice Fresh, OBS, Steam and a Spotify Adblocker:

pacS ttf-nerd-fonts-symbols
fc-cache
killall polybar
polybar
vim .config/picom/picom.conf
vim .config/picom/picom.conf
. Downloads/albion-online-setup
ls Downloads/
sudo chmod +x Downloads/albion-online-setup
. Downloads/albion-online-setup
cd Downloads/
./albion-online-setup
ls
unzip CyberXero.zip
ls
ls CyberXero
sudo mv CyberXero /boot/grub/themes/
ls
ls /boot/grub/themes/
ls /boot/grub/themes/CyberXero/
man tar
pacS flameshot
pacS libreoffice-fresh
pacS obs-studio steam
cd ~/.gitclones/
git clone https://github.com/abba23/spotify-adblock.git
cd spotify-adblock/
make
sudo make install
sudo vim /usr/local/bin/spotify-adblock

Last edited by stk (2024-02-16 16:23:40)

Offline

#14 2024-02-16 16:28:52

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,783

Re: [SOLVED] broken libssl OPENSSL dependency: Pacman, Git, X not working

with --root, not --sysroot

Offline

#15 2024-02-16 16:33:09

stk
Member
Registered: 2023-09-15
Posts: 10

Re: [SOLVED] broken libssl OPENSSL dependency: Pacman, Git, X not working

Scimmia wrote:

with --root, not --sysroot

You're my savior, thank's a lot <3
(Everything works again)

Last edited by stk (2024-02-16 16:33:44)

Offline

#16 2024-02-16 16:39:00

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,783

Re: [SOLVED] broken libssl OPENSSL dependency: Pacman, Git, X not working

I'd forgotten that bash history doens't have timestamps. zsh does.

in the pacman log, whatever pulled it in is probably after the part of the log you posted. Your helper would build and install deps before building and installing whatever it was that you told it to.

Don't forget to mark the thread as solved by editing the first post.

Offline

Board footer

Powered by FluxBB