1. 程式人生 > >ubuntu不能使用apt-get命令,404 Not Found

ubuntu不能使用apt-get命令,404 Not Found

Ign http://cn.archive.ubuntu.com trusty Release.gpg
Ign http://cn.archive.ubuntu.com trusty Release
Ign http://cn.archive.ubuntu.com trusty/main Packages
Ign http://cn.archive.ubuntu.com trusty/universe Packages
Ign http://cn.archive.ubuntu.com trusty/main Packages
Ign http://cn.archive.ubuntu.com trusty/universe Packages
Err http://cn.archive.ubuntu.com trusty/main Packages
404 Not Found [IP: 202.118.66.50 80]
Err http://cn.archive.ubuntu.com trusty/universe Packages
404 Not Found [IP: 202.118.66.50 80]
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/jaunty/main/binary-i386/Packages
404 Not Found [IP: 202.118.66.50 80]
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/jaunty/universe/binary-i386/Packages
404 Not Found [IP: 202.118.66.50 80]

這是因為ubuntu13.04已經不能更新,需要更新到ubuntu老的版本上,也就是需要把檔案sources.list中的cn.archive.ubuntu.com更改為old-releases.ubuntu.com。
sudo vim /etc/apt/sources.list
開啟檔案,檔案中所有的 cn.archive.ubuntu.com換為 old-releases.ubuntu.com