E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

2023-05-16

安装软件报错
apt-get install python-minimal

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

原因 :
Error报的信息显示是这个包向source里某个数据库下载失败了

解决办法:
apt-get update
或者
apt-get clean
apt-get update
问题解析
1 source本身的问题

根据提示,我们首先应当 apt-get update 一下source,如果在apt-get update后依然报这个error,那就说明这个source本省就有错误,尝试apt-get update --fix-missing后依旧报这个error,果断换source

2 网络的问题

网关错误拦截了数据包或者防火墙故意将其屏蔽在外(比方update 包含有google-chrome浏览器的source时候,ip 会自动重定向至6.6.6.6)

3、更换source
第一种:

sudo vim /etc/resolv.conf

添加nameserver 8.8.8.8

第二种:

/etc/apt/sources.list 的内容换成

ubuntu 16.04 配置如下

deb http://mirrors.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 的相关文章

随机推荐