ubuntu10.04 更新出错 无法下载全部的软件库索引

装好Ubuntu10.04之后,更新时出现无法下载全部的软件库索引的错误,错误详细信息如下:

无法下载 http://89.148.222.236/ubuntu/dists/luci ... Sources.gz 404 Not Found
无法下载 http://89.148.222.236/ubuntu/dists/luci ... Sources.gz 404 Not Found
无法下载 http://89.148.222.236/ubuntu/dists/luci ... Sources.gz 404 Not Found
无法下载 http://89.148.222.236/ubuntu/dists/luci ... Sources.gz 404 Not Found
无法下载 http://89.148.222.236/ubuntu/dists/luci ... Sources.gz 404 Not Found
无法下载 http://89.148.222.236/ubuntu/dists/luci ... Sources.gz 404 Not Found
无法下载 http://89.148.222.236/ubuntu/dists/luci ... Sources.gz 404 Not Found
无法下载 http://89.148.222.236/ubuntu/dists/luci ... Sources.gz 404 Not Found
无法下载 http://89.148.222.236/ubuntu/dists/luci ... Sources.gz 404 Not Found
无法下载 http://89.148.222.236/ubuntu/dists/luci ... Sources.gz 404 Not Found
无法下载 http://89.148.222.236/ubuntu/dists/luci ... Sources.gz 404 Not Found
无法下载 http://89.148.222.236/ubuntu/dists/luci ... Sources.gz 404 Not Found
有一些索引文件不能下载,它们可能被忽略了,也可能转而使用了旧的索引文件。

 

是源的问题,我重新换了一个源就ok了!
具体操作如下:
首先备份原来的源文件:

代码:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak


然后,编辑原来的源文件:

代码:
sudo gedit /etc/apt/sources.list


然后,将文件里的内容全部删除,替换为以下源:

代码:
#网易(速度很快)
#代码:
deb http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted


最后保存退出,保存后输入下面的指令刷新源信息:

代码:
sudo apt-get update


然后输入:

代码:
sudo apt-get upgrade


就可以进行系统升级了。

你可能感兴趣的:(ubuntu)