错误提示如下:
/usr/lib/apt/methods/http: error while loading shared libraries: libnettle.so.8: cannot open shared object file: No such file or directory
/usr/lib/apt/methods/http: error while loading shared libraries: libnettle.so.8: cannot open shared object file: No such file or directory
/usr/lib/apt/methods/http: error while loading shared libraries: libnettle.so.8: cannot open shared object file: No such file or directory
正在读取软件包列表... 完成
E: Method http has died unexpectedly!
E: 子进程 http 返回了一个错误号 (127)
E: 获取软件包的渠道 /usr/lib/apt/methods/http 所需的驱动程序没有正常启动
E: Method http has died unexpectedly!
E: 子进程 http 返回了一个错误号 (127)
E: 获取软件包的渠道 /usr/lib/apt/methods/http 所需的驱动程序没有正常启动
E: Method http has died unexpectedly!
E: 子进程 http 返回了一个错误号 (127)
E: 获取软件包的渠道 /usr/lib/apt/methods/http 所需的驱动程序没有正常启动
E: 无法下载 http://us.archive.ubuntu.com/ubuntu/dists/bionic/InRelease
E: 无法下载 http://us.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease
E: 无法下载 http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease
E: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
最终的解决方案:
先去修改apt
源, 我采用的源的地址:
https://gist.github.com/h0bbel/4b28ede18d65c3527b11b12fa36aa8d1
解决方案:
sudo apt-get --fix-broken install