由于某些原因,我无法安装新的应用程序,也无法在ubuntu 14服务器上运行apt-get update
当我运行apt-get update时,我得到以下信息:
apt-get update
Err http://gb.archive.ubuntu.com trusty InRelease
Err http://security.ubuntu.com trusty-security InRelease
Err http://gb.archive.ubuntu.com trusty-updates InRelease
Err http://gb.archive.ubuntu.com trusty-backports InRelease
Err http://security.ubuntu.com trusty-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://gb.archive.ubuntu.com trusty Release.gpg
Could not resolve 'gb.archive.ubuntu.com'
Err http://gb.archive.ubuntu.com trusty-updates Release.gpg
Could not resolve 'gb.archive.ubuntu.com'
Err http://gb.archive.ubuntu.com trusty-backports Release.gpg
Could not resolve 'gb.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Could not resolve 'gb.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Could not resolve 'gb.archive.ubuntu.com'
W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Could not resolve 'gb.archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
我可以通过ping各种IP来建立网络连接。.是否有一种安全的方法来重置/ etc / apt / source列表的出厂默认设置(尽管我没有修改列表)?
谢谢,约翰
nameserver <IP of the DNS server>
然后通过运行来重新启动网络/etc/init.d/networking restart
,看看是否可行。hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4
您可以在此处找到有关类似问题的讨论。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句