我在安装OpenSSH时出错:
Err:2 http://security.ubuntu.com/ubuntu xenial-security/main i386
openssh-server i386 1:7.2p2-4ubuntu2.7 Could not resolve
'security.ubuntu.com' E: Failed to fetch
http://security.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-sftp-server_7.2p2-4ubuntu2.7_i386.deb
Could not resolve 'security.ubuntu.com'
E: Failed to fetch
http://security.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-server_7.2p2-4ubuntu2.7_i386.deb
Could not resolve 'security.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?发布于 2019-08-09 11:45:16
我相信您无法到达DNS服务器,这导致无法解析"security.ubuntu.com“的主机名。
如果您确实知道您的DNS ip,您可以编辑/etc/ can并在变量名称服务器上设置DNS ip。
编辑以获得正确的DNS:例如:
nameserver 8.8.8.8如果它不能再次工作,重新启动,然后它应该是好的。
https://serverfault.com/questions/978590
复制相似问题