最近更新后出现了涉及libgnutls.so.30的迁移错误,错误代码为(127)。

上次更新之后发生了以下情况:
/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference
Reading package lists... Done
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly

这是什么?我该怎么解决它?
最新的命令和所得到的结果:
$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:3 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:5 http://ppa.launchpad.net/ondrej/apache2/ubuntu bionic InRelease
Get:6 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease [20.8 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [368 kB]
Get:9 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 Packages [51.7 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [729 kB]
Get:11 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main i386 Packages [51.7 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [503 kB]
Get:13 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main Translation-en [24.3 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [581 kB]
Get:15 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [170 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [263 kB]
Get:17 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [6,712 B]
Get:18 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [2,872 B]
Get:19 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [604 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [979 kB]
Get:21 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [590 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,003 kB]
Get:23 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [201 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [6,788 B]
Get:25 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [7,312 B]
Get:26 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [4,688 B]
Get:27 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [4,152 B]
Fetched 6,424 kB in 4s (1,604 kB/s)
Reading package lists... Done

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
The following packages will be upgraded:
  landscape-common libidn2-0 libnss-systemd libpam-systemd libpython2.7 libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib libpython3.6 libpython3.6-minimal
  libpython3.6-stdlib libsystemd0 libudev1 linux-libc-dev memcached python2.7 python2.7-dev python2.7-minimal python3.6 python3.6-minimal systemd systemd-sysv udev
23 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 44.7 MB of archives.
After this operation, 1,024 B disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnss-systemd amd64 237-3ubuntu10.29 [105 kB]
Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 libidn2-0 amd64 2.2.0-1+ubuntu18.04.1+deb.sury.org+1 [66.4 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsystemd0 amd64 237-3ubuntu10.29 [204 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpam-systemd amd64 237-3ubuntu10.29 [108 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 systemd amd64 237-3ubuntu10.29 [2,902 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 udev amd64 237-3ubuntu10.29 [1,101 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libudev1 amd64 237-3ubuntu10.29 [53.8 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 systemd-sysv amd64 237-3ubuntu10.29 [11.6 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6 amd64 3.6.8-1~18.04.2 [1,414 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3.6 amd64 3.6.8-1~18.04.2 [202 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6-stdlib amd64 3.6.8-1~18.04.2 [1,710 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3.6-minimal amd64 3.6.8-1~18.04.2 [1,609 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6-minimal amd64 3.6.8-1~18.04.2 [532 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7-dev amd64 2.7.15-4ubuntu4~18.04.1 [279 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-dev amd64 2.7.15-4ubuntu4~18.04.1 [28.3 MB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7 amd64 2.7.15-4ubuntu4~18.04.1 [1,052 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7 amd64 2.7.15-4ubuntu4~18.04.1 [239 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-stdlib amd64 2.7.15-4ubuntu4~18.04.1 [1,915 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7-minimal amd64 2.7.15-4ubuntu4~18.04.1 [1,293 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-minimal amd64 2.7.15-4ubuntu4~18.04.1 [336 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 landscape-common amd64 18.01-0ubuntu3.4 [85.4 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-libc-dev amd64 4.15.0-62.69 [1,124 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 memcached amd64 1.5.6-0ubuntu1.2 [109 kB]
Fetched 44.7 MB in 11s (3,952 kB/s)
Preconfiguring packages ...
(Reading database ... 111983 files and directories currently installed.)
Preparing to unpack .../libnss-systemd_237-3ubuntu10.29_amd64.deb ...
Unpacking libnss-systemd:amd64 (237-3ubuntu10.29) over (237-3ubuntu10.28) ...
Preparing to unpack .../libsystemd0_237-3ubuntu10.29_amd64.deb ...
Unpacking libsystemd0:amd64 (237-3ubuntu10.29) over (237-3ubuntu10.28) ...
Setting up libsystemd0:amd64 (237-3ubuntu10.29) ...
(Reading database ... 111983 files and directories currently installed.)
Preparing to unpack .../libpam-systemd_237-3ubuntu10.29_amd64.deb ...
Unpacking libpam-systemd:amd64 (237-3ubuntu10.29) over (237-3ubuntu10.28) ...
Preparing to unpack .../systemd_237-3ubuntu10.29_amd64.deb ...
Unpacking systemd (237-3ubuntu10.29) over (237-3ubuntu10.28) ...
Preparing to unpack .../udev_237-3ubuntu10.29_amd64.deb ...
Unpacking udev (237-3ubuntu10.29) over (237-3ubuntu10.28) ...
Preparing to unpack .../libudev1_237-3ubuntu10.29_amd64.deb ...
Unpacking libudev1:amd64 (237-3ubuntu10.29) over (237-3ubuntu10.28) ...
Setting up libudev1:amd64 (237-3ubuntu10.29) ...
Setting up systemd (237-3ubuntu10.29) ...
(Reading database ... 111983 files and directories currently installed.)
Preparing to unpack .../00-systemd-sysv_237-3ubuntu10.29_amd64.deb ...
Unpacking systemd-sysv (237-3ubuntu10.29) over (237-3ubuntu10.28) ...
Preparing to unpack .../01-libpython3.6_3.6.8-1~18.04.2_amd64.deb ...
Unpacking libpython3.6:amd64 (3.6.8-1~18.04.2) over (3.6.8-1~18.04.1) ...
Preparing to unpack .../02-python3.6_3.6.8-1~18.04.2_amd64.deb ...
Unpacking python3.6 (3.6.8-1~18.04.2) over (3.6.8-1~18.04.1) ...
Preparing to unpack .../03-libpython3.6-stdlib_3.6.8-1~18.04.2_amd64.deb ...
Unpacking libpython3.6-stdlib:amd64 (3.6.8-1~18.04.2) over (3.6.8-1~18.04.1) ...
Preparing to unpack .../04-python3.6-minimal_3.6.8-1~18.04.2_amd64.deb ...
Unpacking python3.6-minimal (3.6.8-1~18.04.2) over (3.6.8-1~18.04.1) ...
Preparing to unpack .../05-libpython3.6-minimal_3.6.8-1~18.04.2_amd64.deb ...
Unpacking libpython3.6-minimal:amd64 (3.6.8-1~18.04.2) over (3.6.8-1~18.04.1) ...
Preparing to unpack .../06-python2.7-dev_2.7.15-4ubuntu4~18.04.1_amd64.deb ...
Unpacking python2.7-dev (2.7.15-4ubuntu4~18.04.1) over (2.7.15-4ubuntu4~18.04) ...
Preparing to unpack .../07-libpython2.7-dev_2.7.15-4ubuntu4~18.04.1_amd64.deb ...
Unpacking libpython2.7-dev:amd64 (2.7.15-4ubuntu4~18.04.1) over (2.7.15-4ubuntu4~18.04) ...
Preparing to unpack .../08-libpython2.7_2.7.15-4ubuntu4~18.04.1_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.15-4ubuntu4~18.04.1) over (2.7.15-4ubuntu4~18.04) ...
Preparing to unpack .../09-python2.7_2.7.15-4ubuntu4~18.04.1_amd64.deb ...
Unpacking python2.7 (2.7.15-4ubuntu4~18.04.1) over (2.7.15-4ubuntu4~18.04) ...
Preparing to unpack .../10-libpython2.7-stdlib_2.7.15-4ubuntu4~18.04.1_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.15-4ubuntu4~18.04.1) over (2.7.15-4ubuntu4~18.04) ...
Preparing to unpack .../11-python2.7-minimal_2.7.15-4ubuntu4~18.04.1_amd64.deb ...
Unpacking python2.7-minimal (2.7.15-4ubuntu4~18.04.1) over (2.7.15-4ubuntu4~18.04) ...
Preparing to unpack .../12-libpython2.7-minimal_2.7.15-4ubuntu4~18.04.1_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.15-4ubuntu4~18.04.1) over (2.7.15-4ubuntu4~18.04) ...
Preparing to unpack .../13-libidn2-0_2.2.0-1+ubuntu18.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libidn2-0:amd64 (2.2.0-1+ubuntu18.04.1+deb.sury.org+1) over (2.0.4-1.1build2) ...
Setting up libidn2-0:amd64 (2.2.0-1+ubuntu18.04.1+deb.sury.org+1) ...
(Reading database ... 112006 files and directories currently installed.)
Preparing to unpack .../landscape-common_18.01-0ubuntu3.4_amd64.deb ...
Unpacking landscape-common (18.01-0ubuntu3.4) over (18.01-0ubuntu3.3) ...
Preparing to unpack .../linux-libc-dev_4.15.0-62.69_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.15.0-62.69) over (4.15.0-60.67) ...
Preparing to unpack .../memcached_1.5.6-0ubuntu1.2_amd64.deb ...
Unpacking memcached (1.5.6-0ubuntu1.2) over (1.5.6-0ubuntu1.1) ...
Setting up libnss-systemd:amd64 (237-3ubuntu10.29) ...
Setting up landscape-common (18.01-0ubuntu3.4) ...
Setting up memcached (1.5.6-0ubuntu1.2) ...
Setting up systemd-sysv (237-3ubuntu10.29) ...
Setting up linux-libc-dev:amd64 (4.15.0-62.69) ...
Setting up libpython3.6-minimal:amd64 (3.6.8-1~18.04.2) ...
Setting up udev (237-3ubuntu10.29) ...
update-initramfs: deferring update (trigger activated)
Setting up libpython2.7-minimal:amd64 (2.7.15-4ubuntu4~18.04.1) ...
Setting up libpython2.7-stdlib:amd64 (2.7.15-4ubuntu4~18.04.1) ...
Setting up python2.7-minimal (2.7.15-4ubuntu4~18.04.1) ...
Setting up libpython3.6-stdlib:amd64 (3.6.8-1~18.04.2) ...
Setting up libpam-systemd:amd64 (237-3ubuntu10.29) ...
Setting up python3.6-minimal (3.6.8-1~18.04.2) ...
Setting up python2.7 (2.7.15-4ubuntu4~18.04.1) ...
Setting up libpython2.7:amd64 (2.7.15-4ubuntu4~18.04.1) ...
Setting up libpython2.7-dev:amd64 (2.7.15-4ubuntu4~18.04.1) ...
Setting up python2.7-dev (2.7.15-4ubuntu4~18.04.1) ...
Setting up libpython3.6:amd64 (3.6.8-1~18.04.2) ...
Setting up python3.6 (3.6.8-1~18.04.2) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for systemd (237-3ubuntu10.29) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for dbus (1.12.2-1ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for initramfs-tools (0.130ubuntu3.8) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-60-generic

$ sudo apt-get install linux-generic linux-headers-generic linux-image-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  linux-headers-4.15.0-62 linux-headers-4.15.0-62-generic linux-image-4.15.0-62-generic linux-modules-4.15.0-62-generic linux-modules-extra-4.15.0-62-generic
Suggested packages:
  fdutils linux-doc-4.15.0 | linux-source-4.15.0 linux-tools
Recommended packages:
  thermald
/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly

$ sudo apt-get update
/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference
Reading package lists... Done
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease
E: Failed to fetch http://ppa.launchpad.net/certbot/certbot/ubuntu/dists/bionic/InRelease
E: Failed to fetch http://ppa.launchpad.net/ondrej/apache2/ubuntu/dists/bionic/InRelease
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/bionic/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.

2最新更新之后,Ubuntu 18.10已于2019年7月18日到达了终止支持期限(http://fridge.ubuntu.com/2019/07/19/ubuntu-18-10-cosmic-cuttlefish-end-of-life-reached-on-july-18-2019/),因此除非您的问题与迁移到受支持的Ubuntu版本有关,否则在这里不适用。然而,您的粘贴内容提到的是bionic或者18.04(18.10是cosmic),所以可能出现了一些错误,但是18.10现在已经不适用于此处的讨论,因为它已经终止支持。 - guiverc
4@guiverc 我在使用Ubuntu 18.04(LTS版本)时遇到了同样的问题,所以这个问题似乎不仅限于Ubuntu 18.10。然而,Aaron在回答中提到的临时解决方法解决了这个问题。 - Polosson
4是的,最新的apt-upgrade下载了一些libidin垃圾,导致我的启动被毁。感谢您的提问和答案。 - Mihai
3个回答

根据 Launchpad 错误 1843507,评论 #4 对我来说起到了作用,至少是暂时的。
$ 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

更新:根据错误报告,这似乎只影响那些使用来自launchpad.net/~ondrej的PHP的人。
更新:Ondřej已经发布了他的PHP版本的更新。您可以降级libidn2-0以使apt再次正常工作。
$ 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 update
$ sudo apt upgrade

然后你就可以开始了。

做了这个,startx 有一次成功运行。然后,重启后,我甚至无法进入终端。真是太糟糕了。又要重新回到 Windows 了。这样的故障是不能接受的。 - fracz
@fracz 请查看错误报告中的评论12。可能对你有用。 - Aaron
2我已经这样做了,现在似乎可以工作了,但是我不需要重新启动服务器吗?据我所知,这是暂时的,如果我重新启动,网络管理器将无法启动,我将完全被排除在我的服务器之外,你能确认一下吗?那么现在我该怎么办?我需要在未来几天内更新吗?当问题解决并且我能够更新和重新启动服务器时,我将如何知道呢? - alebal
@alebal Ondřej Surý发布了PPA的更新。你现在应该可以进行升级了。你可能需要使用sudo apt-mark unhold libidn2-0命令。 - Aaron
你没有保留主操作系统的备份快照吗? :( Linux 操作系统大约有 10GB。记得备份! - FreeSoftwareServers
@FreeSoftwareServers 备份很重要,但是停机时间就是停机时间。 - gronostaj
1@gronostaj 而且 Windows 从不出错吗?停机时间是不可避免的。至少在 Linux 上,如果稳定性是首要考虑因素,你可以禁用更新。 - FreeSoftwareServers
@FreeSoftwareServers 我并没有提到Windows。我只是指出备份不能解决更新出错的问题。 - gronostaj
好吧,我猜我是在回应fracz。只是有点防守心态 :P - FreeSoftwareServers
@arron 非常感谢,我已经跟进了更新并进行了升级,一切似乎都正常,但现在我的服务器显示:需要重新启动系统,但我担心...我能安全地重启吗,或者我会冒着无法进入服务器的风险? - alebal
@arron 今天之前一切都正常运作,但是今天出现了这个问题:<b>致命错误</b>:未捕获的错误:调用未定义的函数curl_init()。我认为这可能与更新有关,在更新之前是正常工作的。 - alebal
谢谢 @Aaron,你的“更新”解决方案(去掉了“apt-mark hold libidn2-0”语句)对我有用!我明白你的更新去掉了“apt-mark hold”,Ondřej 已经表明现在已经修复了该错误,因此不再需要使用apt-mark hold来固定版本。 - Slack Undertow


1对于在Ubuntu 18.04上遇到问题的任何人,都应该安装这个软件包。这个方法有效。 - besrabasant
1这个对我来说解决了问题。为什么降级这个软件包可以修复呢? - Koen Hendriks
1@KoenHendriks 如果你还没有看到的话,似乎有一个软件包出了问题(如上所述);这里提供一些背景信息给好奇的人:https://bugs.launchpad.net/ubuntu/+source/libidn2/+bug/1843507?comments=all - anonymoose
可以确认这个解决方案在Kali Linux 2018.3上也适用。 - Aura

我在我的电脑上遇到了同样的问题。我能够通过以太网连接到互联网,并下载@Mason Pawsey在他们的答案中提到的软件包。
我不熟悉如何做到这一点,所以我从this post中找到了@chili555的帮助。
我成功降级了软件包,并正常启动了计算机。然而,在我的/etc/network/interfaces文件中仍然有一个eth0的条目,这会阻止我通过wifi连接。因此,我进入文件,并注释掉了auto eth0下面的所有内容(以防以后需要)。
在我删除该条目并重新启动计算机后,一切都正常了。
我希望这能帮助未来访问此页面的人。