Error While Loading Shared Libraries Libidn2 So 0

Jan 24, 2019  

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:

  • Ensure that my laptop had an ethernet cable plugged in (save messing with wifi setings)
  • On a separate computer, burn an image of Manjaro Architect ISO to a USB drive
  • Boot the laptop with the USB image, and log-in with manjaro and manjaro

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
exit
reboot

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

https://forum.manjaro.org/t/warning-after-latest-update-23-01-2019-my-computer-wont-start-anymore/73008/33