2021-03-04

错误提示如下:

/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 
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容