You are not logged in.

#1 2023-05-30 23:02:35

darkmav
Member
Registered: 2012-01-21
Posts: 127

[SOLVED] pacman/ssh: libcrypto.so.1.1 cannot open shared object file

I am trying to help a friend who has an old Arch Linux installation that has remained untouched for months. After a recent problem using ssh, it was suggested that they should update ssh using

pacman -Sy openssh

This resulted in the following error

(1/1) checking keys in keyring                                                                                                 [############################################################################] 100%

downloading required keys...

:: Import PGP key 139B09DA5BF0D338, "David Runge <dvzrv@archlinux.org>"? [Y/n] Y

error: key "139B09DA5BF0D338" could not be looked up remotely

error: required key missing from keyring

error: failed to commit transaction (unexpected error)

Errors occurred, no packages were upgraded.

To remedy this, they tried to update the keyring using

pacman -Sy archlinux-keyring

This was probably a bad idea, because a full pacman update was never run and this only updated the keyring. Following this, ssh (which, prior to the above misadventure, had just been yielding timeout errors) began to throw the following error:

ssh: error while loading shared libraries: libcrypto.so.3: cannot open shared object file: No such file or directory

Since libcrypto.so.3 is presumably supplied by openssl, they tried

pacman -Sy openssl

which changed the error message to

pacman: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

Now, *any* execution of pacman yields the above error. Ssh is also broken.

The system consists of vast amounts of research data, and it is vital that we restore it to its previous condition without reinstalling or rebooting Arch. Any pointers will be greatly appreciated!

Last edited by darkmav (2023-05-31 12:03:47)

Offline

#2 2023-05-30 23:11:12

loqs
Member
Registered: 2014-03-06
Posts: 18,961

Re: [SOLVED] pacman/ssh: libcrypto.so.1.1 cannot open shared object file

See Pacman#Pacman_crashes_during_an_upgrade Follow steps 1 and 2 , skip 3 , replace 4 with

# pacman --root /mnt --cache /mnt/var/cache/pacman/pkg -Syu

If the full system update then works you should be able to skip 5 and 6.

Offline

#3 2023-05-30 23:17:30

darkmav
Member
Registered: 2012-01-21
Posts: 127

Re: [SOLVED] pacman/ssh: libcrypto.so.1.1 cannot open shared object file

Is there a way to do this without booting from a USB flash drive, or without a reboot altogether? I am worried about not being able to get access back into the system if I mess something up along the way.

Offline

#4 2023-05-30 23:25:52

loqs
Member
Registered: 2014-03-06
Posts: 18,961

Re: [SOLVED] pacman/ssh: libcrypto.so.1.1 cannot open shared object file

darkmav wrote:

Is there a way to do this without booting from a USB flash drive, or without a reboot altogether?

Possibly using pacman-static.

Offline

#5 2023-05-30 23:32:09

darkmav
Member
Registered: 2012-01-21
Posts: 127

Re: [SOLVED] pacman/ssh: libcrypto.so.1.1 cannot open shared object file

The screen locked and did not let me get back to the console, and now the system does not boot -- kernel panic. :-(

Offline

#6 2023-05-31 05:02:29

darkmav
Member
Registered: 2012-01-21
Posts: 127

Re: [SOLVED] pacman/ssh: libcrypto.so.1.1 cannot open shared object file

I followed all the steps, but now I get an error saying vmlinuz was not found.

Offline

#7 2023-05-31 06:24:07

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,238

Re: [SOLVED] pacman/ssh: libcrypto.so.1.1 cannot open shared object file

It's generally a really good idea to pay attention to the output of the update…
Most likely you forgot to mount the /boot partition and installed the kernel into the root partition or you screwed up the bootloader config)

Without chrooting into the system (otherwise lsblk won't work - also the last command assumes you're using grub)

(lsblk -f; mount; file -s /mnt/boot/vmlinuz*; ls -lhR /mnt/boot; cat /mnt/boot/grub.cfg) | curl -F 'f:1=<-' ix.io

Online

#8 2023-05-31 12:02:13

darkmav
Member
Registered: 2012-01-21
Posts: 127

Re: [SOLVED] pacman/ssh: libcrypto.so.1.1 cannot open shared object file

Thanks. I did not do the update that broke the system, or else I would have.

I managed to fix the problem by regenerating fstab, chrooting into the system, manually installing the base package and then running mkinitcpio -p.

Thanks all for your help!

Offline

Board footer

Powered by FluxBB