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

LG5 2023-10-26 185 10/26

在进行apt-get install时一直报错E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing
尝试apt-get update和在后面加–fix-missing也不起效果。

解决方法:

1. 网络问题

sudo vim /etc/resolv.conf

添加:

nameserver 8.8.8.8
nameserver 223.5.5.5
nameserver 223.6.6.6

最后:

sudo apt-get update

2. source本身的问题

换镜像源

1)拷贝

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

2)打开 sources.list

sudo vim /etc/apt/sources.list

然后利用ggdG清除文件所有内容

3)找到合适镜像源

如清华https://mirrors.tuna.tsinghua.edu.cn/

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

选择合适的版本,然后复制镜像源

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

复制到sources.list

4)更新

sudo apt-get update
sudo apt-get upgrade

 

 

转自:apt-get install E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing-CSDN博客

- THE END -
Tag:

LG5

12月09日10:42

最后修改:2023年12月9日
0

非特殊说明,本博所有文章均为博主原创。