"Error While Loading Shared Libraries Libidn2 So 0"

linux command line manjaro

I was warmly greeted with the following message when booting up my Manjaro laptop this evening:

systemd-tmpfiles: error while loading shared libraries: libidn2.so.0 canot open spared object file: No such file or directory
You are now being dropped into an emergency shell.
sh: can't access tty; job control turned off
[rootfs ]#

Unfortunately the command prompt was also unresponsive and I was concerned that I had a balked system. Further investigation revealed that a few people had the same issue, and was linked systemd being somehow partially updated, leaving some files incompatible and broken. Perhaps on my next build I might see if I can use runit instead of systemd...

Fortunately I managed to sort it, although it was slightly compounded as I have my boot drive encrypted.

Anyway, the steps I took to get it working were as follows:

From the command line, I entered the following (all as root, with sudo)

# Note that SDA1 is usually the main boot partition, but yours may be different
cryptsetup luksOpen /dev/sda1/ crypthome
mkdir /mnt/crypthome
mount /dev/mapper/crypthome /mnt/crypthome
# You will be prompted for your password
manjaro-chroot /mnt/crypthome
pacman -Syyuu

For more information on where I found my solution, refer to the following:


Published on 2019-01-24