手邊若還有老舊版本的 Ubuntu,官方主站可能已不再提供套件,此時可改用國內鏡像站。
中科大:https://mirrors.ustc.edu.cn/ubuntu-old-releases
163:https://mirrors.163.com
先開啟設定檔:$sudo /etc/apt/sources.list(實際編輯可用 sudo vi /etc/apt/sources.list)。
其格式為:
deb 源地址/ubuntu/ 版本代號 main restricted universe multiverse
deb 源地址/ubuntu/ 版本代號-security main restricted universe multiverse
deb 源地址/ubuntu/ 版本代號-updates main restricted universe multiverse
deb 源地址/ubuntu/ 版本代號-proposed main restricted universe multiverse
deb 源地址/ubuntu/ 版本代號-backports main restricted universe multiverse
欲下載原始碼時,把 deb 改為 deb-src 即可。特別注意:版本代號的英文字母大小寫須與鏡像站上的子目錄一致(國內鏡像通常為小寫)。
以中科大 Ubuntu 8.10(intrepid)為例:
deb https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ intrepid main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ intrepid-security main restricted universe multiverse
其餘 updates、proposed、backports 同理,將 deb-src 版本一併列出即可。
以 163 的 Ubuntu 15.10(wily)為例:
deb https://mirrors.163.com/ubuntu/ wily main restricted universe multiverse
deb https://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse
其餘類型依同樣規則填寫。
Ubuntu 的開發代號有幾個趣味特點:取名都用動物、皆為兩個單字且首字母相同,並從 6.06 起以 D 為開頭依字母遞增。
部分歷史版本:16.04 LTS Xenial Xerus(好客的非洲地松鼠)、15.10 Wily Werewolf(狡詐的狼人)、15.04 Vivid Vervet(活潑的小猴)、14.10 Utopic Unicorn(烏托邦獨角獸)、14.04 LTS Trusty Tahr(值得信賴的塔爾羊)、12.04 LTS Precise Pangolin(精準的穿山甲)、10.04 LTS Lucid Lynx(清醒的猞猁)、8.04 LTS Hardy Heron(堅強的蒼鷺)、6.06 LTS Dapper Drake(整潔的公鴨),以及最初的 4.10 Warty Warthog(多疣的疣豬)。
參考資料來源包含百度知道、163 鏡像說明頁與相關技術部落格。