Some index files failed to download. They have been ignored, or old ones used instead

(来源 https://blog.csdn.net/xiaoxiao_yingzi/article/details/93735991)

#备份文件

sudo mv /var/lib/apt/lists./lists.bak

#创建新的lists

sudo mkdir /var/lib/apt/lists

#更改源

更改源:

    vim/etc/apt/sources.list 将下面的源添加进去:

debhttp://mirrors.aliyun.com/debianwheezy main contrib non-free

deb-srchttp://mirrors.aliyun.com/debianwheezy main contrib non-free

debhttp://mirrors.aliyun.com/debianwheezy-updates main contrib non-free

deb-srchttp://mirrors.aliyun.com/debianwheezy-updates main contrib non-free

debhttp://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free

deb-srchttp://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free

#强制保存

:w !sudo tee %

sudo apt-get update

#依然报错更改

vim /etc/resolv.conf

添加: nameserver8.8.8.8

你可能感兴趣的:(Some index files failed to download. They have been ignored, or old ones used instead)