今天早上對軟體源進行更新的時候,發現出現了如下的錯誤:
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