Ubuntu 14.04 更新软件包信息报错

执行: sudo apt-get update 

报错提示:E:部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件

1. 在系统设置-软件和更新中修改服务器,测试选择最佳服务器,修改设置之后又报了一个错误:下载软件仓库信息失败,检查网络连接。

网上查了一下问题原因说是源地址的问题,打算修改 /etc/apt/source.list文件地址,网上搜到一篇文章里的地址亲测有效,附上链接:https://www.cnblogs.com/lonnelan/p/3862718.html

 

2. 执行:sudo gedit /etc/apt/source.list 打开文件将原来内容替换为下面的地址保存就可以了,记得更新前先备份一下原文件比较好

我用的是阿里云服务器,修改源文件之后sudo apt-get update 就没有再报错

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

你可能感兴趣的:(计算机基础)