Relocation error involving libgnutls.so.30, error code (127) after last updates [closed]

Solution 1:

As per Launchpad bug 1843507, comment #4 worked for me, at least temporarily.

$ wget http://mirrors.kernel.org/ubuntu/pool/main/libi/libidn2/libidn2-0_2.0.4-1.1build2_amd64.deb
$ sudo dpkg -i libidn2-0_2.0.4-1.1build2_amd64.deb
$ sudo apt-mark hold libidn2-0

Update: From the bug report, this appears to only affect those using PHP from launchpad.net/~ondrej

Update: Ondřej has released an update for his PHP build already. You can downgrade libidn2-0 so that apt will work again:

$ wget http://mirrors.kernel.org/ubuntu/pool/main/libi/libidn2/libidn2-0_2.0.4-1.1build2_amd64.deb
$ sudo dpkg -i libidn2-0_2.0.4-1.1build2_amd64.deb

Then:

$ sudo apt update
$ sudo apt upgrade

And you should be good to go.

Solution 2:

Download this libidn2-0_2.0.5-1_amd64.deb package from the Debian repository to the machine, then run sudo dpkg -i /path/to/.deb to install it in place of the faulty Ubuntu package.