我是靠谱客的博主 眼睛大唇彩,这篇文章主要介绍Could not resolve host:,现在分享给大家,希望可以做个参考。

报错如下:
root@ubuntu:~# apt-get update
Err:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial InRelease
  Could not resolve host: mirrors.tuna.tsinghua.edu.cn
Err:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates InRelease
  Could not resolve host: mirrors.tuna.tsinghua.edu.cn
Err:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports InRelease
  Could not resolve host: mirrors.tuna.tsinghua.edu.cn
Err:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security InRelease
  Could not resolve host: mirrors.tuna.tsinghua.edu.cn
Reading package lists... Done
W: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/xenial/InRelease  Could not resolve host: mirrors.tuna.tsinghua.edu.cn
W: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/xenial-updates/InRelease  Could not resolve host: mirrors.tuna.tsinghua.edu.cn
W: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/xenial-backports/InRelease  Could not resolve host: mirrors.tuna.tsinghua.edu.cn
W: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/xenial-security/InRelease  Could not resolve host: mirrors.tuna.tsinghua.edu.cn
W: Some index files failed to download. They have been ignored, or old ones used instead.

原因:没有DNS
解决:/etc/resolv.conf里面添加对应得DNS.

最后

以上就是眼睛大唇彩最近收集整理的关于Could not resolve host:的全部内容,更多相关Could内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(137)

评论列表共有 0 条评论

立即
投稿
返回
顶部