While doing a "sudo apt upgrade", I got a message "error while loading shared libraries: libcrypt.so.1".
When I came back to it some minutes later, if I try to run sudo I now get:
$ sudo -i Sorry, try again. Sorry, try again. sudo: 3 incorrect password attempts $
In other words, sudo isn't prompting for a password. Is there a way to fix this?
The system is a Raspberry Pi hence running raspbian (debian).
Update (in response to comment from Stephen Kitt):
This looks exactly like an instance of Debian bug #993755 since it occurs while I was applying upgrades to testing (sid); it was setting up libc6; and it broke perl, which broke dpkg.
Here's the tail end of the upgrade...
Preparing to unpack .../6-libc6_2.33-7+rpi1_armhf.deb ... Checking for services that may need to be restarted... Checking init scripts... Unpacking libc6:armhf (2.33-7+rpi1) over (2.28-10+rpt2+rpi1) ... Setting up libc6:armhf (2.33-7+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: libc6:armhf E: Sub-process /usr/bin/dpkg returned an error code (1)
I see it's tagged wontfix which is strange for something which breaks an upgrade so badly that, as far as I can see, the only way out is a clean install.
The manual steps to recover in the bugreport don't work because, since I'm not running with elevated privilege, I can't copy into /lib/...