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即可.

相关文章

0

whatangel

我还没有学会写个人说明!

Leave a Reply

Your email address will not be published. Required fields are marked *

微信扫一扫,分享到朋友圈

Debian – W: Some index files failed to download. They have been ignored, or old ones used instead.
返回顶部

显示

忘记密码?

显示

显示

获取验证码

Close