最后在线: 活跃于 1年, 2个月前
评论: 7
获赞: 0
文章: 0
粉丝: 69
关注: 69
好友: 2
User Rating: ( vote)
TomyTang 在版块 Linux平台 中发起了话题 Ubuntu apt update时出现错误”Failed to fetch”的解决方法 2年, 1个月前
ubuntu 执行apt update && apt upgrade时出现错误 “Failed to fetch”
解决办法
设置DNS服务器即可.
$ sudo vim /etc/resolv.conf
修改DNS:
nameserver 8.8.8.8
nameserver 8.8.4.4
然后重启网络服务:
# sudo /etc/init.d/networking restart
再次执行sudo apt-get update命令,结果一切正常。