Ubuntu操作系统“Failed to fetch”错误的解决方法

其实,解决这个问题十分简单,只要设置妥当DNS服务器即可,如电信网络的设置如下所示。

sudo vi /etc/resolv.conf  


再次执行sudo apt-get update命令,结果一切正常

Hit http://archive.ubuntu.com precise-proposed/restricted TranslationIndex  

Hit http://archive.ubuntu.com precise-proposed/universe TranslationIndex  

Hit http://archive.ubuntu.com precise/main Translation-en  

Hit http://archive.ubuntu.com precise/multiverse Translation-en  

Hit http://archive.ubuntu.com precise/restricted Translation-en  

Hit http://archive.ubuntu.com precise/universe Translation-en  

Hit http://archive.ubuntu.com precise-updates/main Translation-en  

Hit http://archive.ubuntu.com precise-updates/multiverse Translation-en  

Hit http://archive.ubuntu.com precise-updates/restricted Translation-en  

Hit http://archive.ubuntu.com precise-updates/universe Translation-en  

Hit http://archive.ubuntu.com precise-security/main Translation-en  

Hit http://archive.ubuntu.com precise-security/multiverse Translation-en  

Hit http://archive.ubuntu.com precise-security/restricted Translation-en  

Hit http://archive.ubuntu.com precise-security/universe Translation-en  

Hit http://archive.ubuntu.com precise-backports/main Translation-en                                                           

Hit http://archive.ubuntu.com precise-backports/multiverse Translation-en                                                     

Hit http://archive.ubuntu.com precise-backports/restricted Translation-en                                                     

Hit http://archive.ubuntu.com precise-backports/universe Translation-en                                                       

Hit http://archive.ubuntu.com precise-proposed/main Translation-en                                                            

Hit http://archive.ubuntu.com precise-proposed/multiverse Translation-en                                                      

Hit http://archive.ubuntu.com precise-proposed/restricted Translation-en                                                      

Hit http://archive.ubuntu.com precise-proposed/universe Translation-en                                                        

Fetched 107 kB in 6s (16.6 kB/s)                                                                                              

Reading package lists... Done  

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 为什么希腊神话故事中迷幻癫狂的酒神杀死了太阳神的儿子?达芬奇为什么晚年要画《酒神》? 是的,这段希腊故事很奇怪,俄...
    嘻哈哲学阅读 1,284评论 2 1
  • 王菲幻乐一场演唱会落幕。 看演唱会,不止为了听歌,更是为了要去“感受”这个人。 每次演唱会,看到她和我们一样地老去...
    Ph5_Elle阅读 239评论 0 0