Ubuntu 16.04:Temporary failure resolving 'security.ubuntu.com'

今天早上对软件源进行更新的时候,发现出现了如下的错误:

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease  Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.

我的解决方法为:

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
sudo apt-get update

然后就一切正常了,我的输出为:

idc@idc-Precision-Tower-7910:~/Downloads/DeepMIML$ sudo apt-get update
Hit:1 http://cn.archive.ubuntu.com/ubuntu xenial InRelease                     
Hit:2 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease             
Hit:3 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease           
Hit:4 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease    
Hit:5 http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu xenial InRelease         
Ign:6 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:7 http://dl.google.com/linux/chrome/deb stable Release                     
Get:9 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]     
Ign:10 http://linux.teamviewer.com/deb stable InRelease                        
Ign:11 http://linux.teamviewer.com/deb preview InRelease                       
Hit:12 http://linux.teamviewer.com/deb stable Release    
Get:9 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:14 http://linux.teamviewer.com/deb preview Release   
Get:16 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [62.3 kB]
Get:17 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [62.1 kB]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [51.3 kB]
Get:19 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [80.2 kB]
Fetched 303 kB in 2min 58s (1,703 B/s)                                         
Reading package lists... Done

参考文献

[1].apt-get update fails to fetch files, “Temporary failure resolving …” error.https://askubuntu.com/questions/91543/apt-get-update-fails-to-fetch-files-temporary-failure-resolving-error
  • 5
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

农民小飞侠

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值