Unable to resolve 'us.archive.ubuntu.com' when using 'update' command in Ubuntu

喜欢而已 提交于 2020-08-26 10:12:11

问题


When I use the command "sudo apt-get update" I get the following errors:

   Err:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
     Could not resolve 'us.archive.ubuntu.com'
   Err:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
     Could not resolve 'us.archive.ubuntu.com'
   Err:3 http://security.ubuntu.com/ubuntu bionic-security InRelease
     Could not resolve 'security.ubuntu.com'
   Err:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
     Could not resolve 'us.archive.ubuntu.com'
   Reading package lists... Done
   W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic      /InRelease  Could not resolve 'us.archive.ubuntu.com'
   W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  Could not resolve 'us.archive.ubuntu.com'
   W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  Could not resolve 'us.archive.ubuntu.com'
   W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease  Could not resolve 'security.ubuntu.com'
   W: Some index files failed to download. They have been ignored, or old ones used instead.

Could you please help me to solve it?


回答1:


check your /etc/resovl.conf & send the result



来源:https://stackoverflow.com/questions/55421444/unable-to-resolve-us-archive-ubuntu-com-when-using-update-command-in-ubuntu

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!