之前對Ubuntu的更新支持,LTS沒有深入理解,一直使用ubuntu 10.10 maverick,資源占用,效率都很滿意。
今天使用sudo apt-get install 無法安裝軟件,錯誤提示如下:
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/main/source/Sources.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/restricted/source/Sources.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/universe/source/Sources.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/source/Sources.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/main/binary-i386/Packages.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/restricted/binary-i386/Packages.gz 404 Not Found W: Failed to fetch http://linux.dropbox.com/ubuntu/dists/maverick/main/binary-i386/Packages.gz Connection failed [IP: 199.47.216.171 80] W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/universe/binary-i386/Packages.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/binary-i386/Packages.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/main/source/Sources.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/restricted/source/Sources.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/universe/source/Sources.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/source/Sources.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/main/binary-i386/Packages.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/restricted/binary-i386/Packages.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/universe/binary-i386/Packages.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/binary-i386/Packages.gz 404 Not Found W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/main/source/Sources.gz 404 Not Found [IP: 91.189.91.13 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/restricted/source/Sources.gz 404 Not Found [IP: 91.189.91.13 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/universe/source/Sources.gz 404 Not Found [IP: 91.189.91.13 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/multiverse/source/Sources.gz 404 Not Found [IP: 91.189.91.13 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/main/binary-i386/Packages.gz 404 Not Found [IP: 91.189.91.13 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/restricted/binary-i386/Packages.gz 404 Not Found [IP: 91.189.91.13 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/universe/binary-i386/Packages.gz 404 Not Found [IP: 91.189.91.13 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/maverick-security/multiverse/binary-i386/Packages.gz 404 Not Found [IP: 91.189.91.13 80]
第一反應,是ubuntu支持過期了,但之前理解是“不再提供軟件的官方更新”,但ubuntu 10.10中已發布版本的軟件應該可以用吧。這里是我理解錯誤。
訪問:http://cn.archive.ubuntu.com/ubuntu/dists/ 查看,已經沒有maverick的支持了。又結合http://zh.wikipedia.org/wiki/Ubuntu的長期支持版本部分內容,尤其下圖:
確定問題所在,解決方法:
1. 升級新版本。困難,折騰,贊未考慮。
2. 使用舊版本更新源,但目前已經沒有了maverick相應支持軟件目錄,無法下載軟件。
Google 問題解決:http://ubuntuforums.org/archive/index.php/t-1127305.html,文中指的歷史版本是ubuntu 7.04 feisty. 道理相通.
Feisty has expired and no longer support. Therefore, the repos have been moved to http://old-releases.ubuntu.com/. You need to replace the current repos in your /etc/apt/sources.list with the new repos, http://old-releases.ubuntu.com/. deb http://old-releases.ubuntu.com/ubuntu feisty main restricted
[old-release解決方案]有效解決此問題,但嘗試了下,國外的服務器速度太慢,幾乎無法忍受。
3. 考慮ubuntu 10.04是LTS版本,且於10.10差距不大,可否使用10.04的源更新安裝軟件。
測試使用10.04 lucid的更新源,軟件安裝成功,暫時使用此方案。
對Linux更新支持方案理解尚未深入,同時選擇系統版本安裝時需考慮長期更新版本,后續升級問題。下一步考慮升級到12.04了。