idc@idc-Hi-Fi-Z77X:~$ sudo apt-get update
错误:1 https://download.docker.com/linux/ubuntu xenial InRelease
Could not resolve host: download.docker.com
错误:2 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease
暂时不能解析域名“ppa.launchpad.net”
错误:3 http://cn.archive.ubuntu.com/ubuntu xenial InRelease
暂时不能解析域名“cn.archive.ubuntu.com”
错误:4 http://dl.google.com/linux/chrome/deb stable InRelease
暂时不能解析域名“dl.google.com”
错误:5 http://security.ubuntu.com/ubuntu xenial-security InRelease
暂时不能解析域名“security.ubuntu.com”
错误:6 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease
暂时不能解析域名“cn.archive.ubuntu.com”
错误:7 http://ppa.launchpad.net/octave/stable/ubuntu xenial InRelease
暂时不能解析域名“ppa.launchpad.net”
错误:8 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease
暂时不能解析域名“cn.archive.ubuntu.com”
错误:9 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial InRelease
暂时不能解析域名“ppa.launchpad.net”
正在读取软件包列表... 完成
W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/xenial/InRelease 暂时不能解析域名“cn.archive.ubuntu.com”
W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease 暂时不能解析域名“cn.archive.ubuntu.com”
W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease 暂时不能解析域名“cn.archive.ubuntu.com”
W: 无法下载 http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease 暂时不能解析域名“security.ubuntu.com”
W: 无法下载 https://download.docker.com/linux/ubuntu/dists/xenial/InRelease Could not resolve host: download.docker.com
W: 无法下载 http://dl.google.com/linux/chrome/deb/dists/stable/InRelease 暂时不能解析域名“dl.google.com”
W: 无法下载 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu/dists/xenial/InRelease 暂时不能解析域名“ppa.launchpad.net”
W: 无法下载 http://ppa.launchpad.net/octave/stable/ubuntu/dists/xenial/InRelease 暂时不能解析域名“ppa.launchpad.net”
W: 无法下载 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/dists/xenial/InRelease 暂时不能解析域名“ppa.launchpad.net”
W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
上述是我今早登录服务器的错误:
我执行了一下ping命令,发现可以ping通,然后开了浏览器,开始不可以上网,后面开了lantern代理后又可以上网了,只是网速非常慢:
idc@idc-Hi-Fi-Z77X:~$ ping www.baidu.com
PING www.a.shifen.com (61.135.169.125) 56(84) bytes of data.
64 bytes from 61.135.169.125: icmp_seq=2 ttl=48 time=39.2 ms
64 bytes from 61.135.169.125: icmp_seq=3 ttl=48 time=78.8 ms
64 bytes from 61.135.169.125: icmp_seq=4 ttl=48 time=51.3 ms
64 bytes from 61.135.169.125: icmp_seq=6 ttl=48 time=42.5 ms
64 bytes from 61.135.169.125: icmp_seq=7 ttl=48 time=40.8 ms
64 bytes from 61.135.169.125: icmp_seq=8 ttl=48 time=41.6 ms
64 bytes from 61.135.169.125: icmp_seq=9 ttl=48 time=41.4 ms
64 bytes from 61.135.169.125: icmp_seq=10 ttl=48 time=35.6 ms
64 bytes from 61.135.169.125: icmp_seq=11 ttl=48 time=41.6 ms
64 bytes from 61.135.169.125: icmp_seq=12 ttl=48 time=36.2 ms
64 bytes from 61.135.169.125: icmp_seq=13 ttl=48 time=41.1 ms
64 bytes from 61.135.169.125: icmp_seq=15 ttl=48 time=51.0 ms
64 bytes from 61.135.169.125: icmp_seq=16 ttl=48 time=40.3 ms
^C
--- www.a.shifen.com ping statistics ---
16 packets transmitted, 13 received, 18% packet loss, time 15078ms
rtt min/avg/max/mdev = 35.619/44.756/78.826/10.792 ms
我尝试重启了服务器,还是不行,当时我绝望的放弃了,过了几分钟,来到服务器面前,又执行了apt-get update命令,忽然发现网又变好了:
信息我、如下:
idc@idc-Hi-Fi-Z77X:~$ sudo apt-get update
[sudo] idc 的密码:
命中:1 http://cn.archive.ubuntu.com/ubuntu xenial InRelease
命中:2 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease
命中:3 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease
命中:4 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease
命中:5 https://download.docker.com/linux/ubuntu xenial InRelease
命中:6 http://ppa.launchpad.net/octave/stable/ubuntu xenial InRelease
命中:7 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial InRelease
忽略:8 http://dl.google.com/linux/chrome/deb stable InRelease
命中:9 http://dl.google.com/linux/chrome/deb stable Release
命中:11 http://security.ubuntu.com/ubuntu xenial-security InRelease
正在读取软件包列表... 完成
我猜想的原因是电脑还没有启动完全,需要一点时间来把所有的服务开启,这是我猜想的原因,欢迎大家来跟我讨论