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

电脑软件 whatangel 1年前 (2019-05-21) 729次浏览 已收录 0个评论 扫描二维码

今天在折腾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即可.


吾爱CDR , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Debian – W: Some index files failed to download. They have been ignored, or old ones used instead.
喜欢 (0)
[876609908@qq.com]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址