apt-get update 神奇的不灵了

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            
正在读取软件包列表... 完成 

我猜想的原因是电脑还没有启动完全,需要一点时间来把所有的服务开启,这是我猜想的原因,欢迎大家来跟我讨论


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

农民小飞侠

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值