![为什么我无法更新 Ubuntu 16.04?](https://linux22.com/image/1147103/%E4%B8%BA%E4%BB%80%E4%B9%88%E6%88%91%E6%97%A0%E6%B3%95%E6%9B%B4%E6%96%B0%20Ubuntu%2016.04%EF%BC%9F.png)
每当我尝试从软件更新程序更新我的 ubuntu 时,我都会收到以下消息
包装系统已损坏
检查您是否正在使用第三方存储库。如果是,请禁用它们,因为它们是问题的常见来源。此外,在终端中运行以下命令:apt-get install -f
我运行了sudo apt-get install -f
,但在尝试更新时运行命令后,我收到以下消息
无法下载包文件 检查您的互联网连接。
$ ping -c 2 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8:
icmp_seq=1 ttl=60 time=10.9 ms 64 bytes from 8.8.8.8: icmp_seq=2
ttl=60 time=11.0 ms
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt
min/avg/max/mdev = 10.978/11.035/11.093/0.119 ms
/etc/resolv.conf
:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.1.1 search domain.name