ubuntu更新提示 connect (101: Network is unreachable) [IP: 91.189.95.85 80]
- 作者帖子
- Up::0
ubuntu在更新sudo update && sudo upgrade后经常出现 connect (101: Network is unreachable) [IP: 91.189.95.85 80]等错误
解决办法:
1. 看了报错信息,以为是DNS解析有误,导致访问不到域名所对应的服务器内容,于是尝试添加DNS服务器来解决问题,具体为修改/etc/resolv.conf文件
按照以下格式将代码添加到文件最后,用以添加DNS服务器,我添加的是Google的DNS服务器
nameserver 8.8.8.8
问题依旧
2.于是尝试着在系统文件里设置,具体方法是编辑文件~/.bashrc
在文件的最后加入以下内容
#Set Proxy Server
export http_proxy=”http://:”
export https_proxy=”https://:”然后执行下面的命令让修改生效
source ~/.bashrc
- Up::0
完整的错误提示举例如下:
Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::15). – connect (101: Network is unreachable) Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::18). – connect (101: Network is unreachable) Could not connect to us.archive.ubuntu.com:80 (91.189.91.38). – connect (111: Connection refused) Could not connect to us.archive.ubuntu.com:80 (91.189.91.39). – connect (111: Connection refused
解决办法:
#sudo vim ~/.bashrc
#Set Proxy Server
export http_proxy= “http://:us.archive.ubuntu.com:80”
export https_proxy= “http://:us.archive.ubuntu.com:80”
- 作者帖子
- 哎呀,回复话题必需登录。