美文网首页
ubuntu apt-get 错误 Temporary fail

ubuntu apt-get 错误 Temporary fail

作者: 吟风者 | 来源:发表于2018-12-14 11:50 被阅读0次

ubuntu apt-get 错误 Temporary failure resolving ‘us.archive.ubuntu.com’解决
原因是dns没有配置,解决办法 加入dns服务器地址:

sudo vim /etc/resolv.conf

添加

nameserver 114.114.114.114
nameserver 8.8.8.8

运行完重启系统解决

1.png

一般docker出现以下问题,也是因为dns服务器地址的问题:

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 127.0.0.53:53: server misbehaving

相关文章

网友评论

      本文标题:ubuntu apt-get 错误 Temporary fail

      本文链接:https://www.haomeiwen.com/subject/nbnwhqtx.html