我使用的是 Ubuntu 17.10 (artful)。从 17.04 升级后,我的 apt-get update 停止工作。我已经安装了libstdc++6(32 位和 64 位)及其依赖项,如其他 Ubuntu 16 帖子所建议的那样。我重新安装了libgnutls30也一样。
这是 apt-get update 的输出:
root@adam-desktop:~/Downloads# apt-get update
/usr/lib/apt/methods/http: relocation error: /usr/lib/apt/methods/http: symbol gnutls_session_set_verify_cert, version GNUTLS_3_4 not defined in file libgnutls.so.30 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/apt/methods/http: symbol gnutls_session_set_verify_cert, version GNUTLS_3_4 not defined in file libgnutls.so.30 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/apt/methods/http: symbol gnutls_session_set_verify_cert, version GNUTLS_3_4 not defined in file libgnutls.so.30 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/apt/methods/http: symbol gnutls_session_set_verify_cert, version GNUTLS_3_4 not defined in file libgnutls.so.30 with link time reference
/usr/lib/apt/methods/http: relocation error: /usr/lib/apt/methods/http: symbol gnutls_session_set_verify_cert, version GNUTLS_3_4 not defined in file libgnutls.so.30 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: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/artful/InRelease
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/artful-security/InRelease
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/artful-updates/InRelease
E: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/InRelease
E: Failed to fetch http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/dists/artful/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.
答案1
我不得不擦除磁盘并重新安装 Ubuntu 17.10。我首先尝试了恢复选项,但重定位错误仍然存在。