You are not logged in.
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 opensshThis 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-keyringThis 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 directorySince libcrypto.so.3 is presumably supplied by openssl, they tried
pacman -Sy opensslwhich changed the error message to
pacman: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directoryNow, *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
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 -SyuIf the full system update then works you should be able to skip 5 and 6.
Offline
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
Is there a way to do this without booting from a USB flash drive, or without a reboot altogether?
Possibly using pacman-static.
Offline
The screen locked and did not let me get back to the console, and now the system does not boot -- kernel panic. :-(
Offline
I followed all the steps, but now I get an error saying vmlinuz was not found.
Offline
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.ioOffline
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