Ubuntu之非NON-LTS(Long Term Support)版本,通常9個月後就不再support,所以apt-get update更新往往就會看到找不到package的錯誤。 此時這些舊的package都會被移到http://old-releases.ubuntu.com/,所以要改一下路徑apt package的路徑。
brook@vista:~$ cat /etc/issue Ubuntu 13.04 \n \l brook@vista:~$ sudo apt-get update [sudo] password for brook: Ign http://extras.ubuntu.com raring Release.gpg Ign http://archive.ubuntu.com raring Release.gpg .... W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/main/binary-i386/Packages 404 Not Found [IP: 91.189.88.149 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.88.149 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/universe/binary-i386/Packages 404 Not Found [IP: 91.189.88.149 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/raring-security/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.88.149 80] E: Some index files failed to download. They have been ignored, or old ones used instead.
Solution:
brook@vista:~$ cat /etc/apt/sources.list #deb http://old-releases.ubuntu.com/ raring-security main #deb http://old-releases.ubuntu.com/ubuntu/dists/raring-security/restricted/ raring-security main deb http://old-releases.ubuntu.com/ubuntu/ raring main deb http://old-releases.ubuntu.com/ubuntu/ raring universe