I have tried to install some packages (apache mariaDB) and something went wrong from my
sudo apt install apache2 mariadb-server apt-transport-https
At the end there was an error
Checking init scripts...
Unpacking libc6:armhf (2.32-4+rpi1) over (2.29-2+rpi1) ...
Setting up libc6:armhf (2.32-4+rpi1) ...
/usr/bin/perl: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
dpkg: error processing package libc6:armhf (--configure):
installed libc6:armhf package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
Error: Timeout was reached
E: Sub-process /usr/bin/dpkg returned an error code (1)
You have new mail in /var/mail/pi
Which seems to be a known bug. People back then (March 2021) was updating to gblic2.30 and libcrypt around 4.4.10, I was updating to libc62.32 and libcrypt1:4.4.27, so I do not know why the bug is still around (!)
My understanding from the bug is that I need to put a link or a file where this library is expected, e.g.
ln -s /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1 /lib/libcrypto.so.1
Only problem is that I need to become root to do that, and
su are just impossible right now, even login from ssh is impossible!
I read that the only hope here is to create the file or symlink either booting the machine from a liveCD/USB, or putting the SD card holding the root file-system and edit that part by hand.
My questions is:
- before I power off this raspberry pi and take out the SD card to create the link by hand, while I still can use the terminal from which I am logged on, is there any repair I can attempt?
I stress the fact that I cannot sudo ...