在Ubuntu中使用'update'命令时无法解析'us.archive.ubuntu.com'

时间:2019-03-29 16:10:04

标签: ubuntu-18.04

当我使用命令“ sudo apt-get update”时,出现以下错误:

   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.

您能帮我解决吗?

1 个答案:

答案 0 :(得分:1)

检查您的/etc/resovl.conf并发送结果