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

今天在折腾PVE安装桌面lxde后出现这样的问题

root@cloud:~# apt-get update
 Err http://mirrors.163.com jessie InRelease Err http://mirrors.163.com jessie-updates InRelease Err 
http://security.debian.org jessie/updates InRelease Err http://mirrors.163.com jessie Release.gpg Could not 
resolve 'mirrors.163.com' Err http://security.debian.org jessie/updates Release.gpg Could not resolve 
'security.debian.org' Err http://mirrors.163.com jessie-updates Release.gpg Could not resolve \
'mirrors.163.com' Reading package lists... Done W: Failed to fetch 
http://mirrors.163.com/debian/dists/jessie/InRelease W: Failed to fetch 
http://security.debian.org/dists/jessie/updates/InRelease W: Failed to fetch 
http://mirrors.163.com/debian/dists/jessie-updates/InRelease W: Failed to fetch 
http://mirrors.163.com/debian/dists/jessie/Release.gpg Could ot resolve 'mirrors.163.com' W: Failed to fetch 
http://mirrors.163.com/debian/dists/jessie-updates/Release.gpg Could not resolve 'mirrors.163.com' W: Failed 
to fetch http://security.debian.org/dists/jessie/updates/Release.gpg Could not resolve 'security.debian.org' W: 
Some index files failed to download. They have been ignored, or old ones used instead.
.debian-dns-error-apt-get-update-163

错误的非常明显“cloud not resolve”,很明显是DNS的问题

修改DNS解析即可正常使用

vi /etc/resolv.conf

修改后保存,在进行一次apt-get update即可.

    原文作者:whatangle
    原文地址: https://www.jianshu.com/p/e444ece4dbee
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞