2012年1月26日

選擇 Ubuntu 的套件庫來源

Ubuntu 的套件數量非常多,加上 PPA(Personal Package Archives),大多數常用的軟體,幾乎都能用 apt-get install 完成安裝。

Repositories 的設定可以參考:


GUI
https://help.ubuntu.com/community/Repositories/Ubuntu

Command Line
https://help.ubuntu.com/community/Repositories/CommandLine


但是套件數量多,也意謂著某些剛發佈的套件,可能來不及同步到 mirror sites,造成 apt-get install 安裝過程發生 404 not found。

所以除了 Mirror sites 的傳輸速度外,經常需要嚐鮮安裝新軟體的朋友,也可以把檔案同步的頻率列入考量。

這份官方提供的 Mirrors 清單,有提供 Mirror site 同步狀態的標示。


Official Archive Mirrors for Ubuntu
https://launchpad.net/ubuntu/+archivemirrors


最好的情況是 Up to date (已完成同步),不過台灣的 Mirror sites 。

Up to date
One day behind

以我最近碰到的情況來說,以下兩個 Mirror sites 都是由 NCHC(國網中心)提供。

  1. National Center for High-Performance Computing(NCHC) --- ftp.twaren.net
  2. NCHC, Taiwan --- free.nchc.org.tw

第一個 mirror 的速度很快,不過在安裝 texlive-full 套件時,就發生一些檔案找不到的情況。之後切換成第二個,傳輸速度降了不少,但安裝需要的檔案都能順利取得。

1 則留言:

  1. 直接在source.list加mirror它就會自己找囉~~
    http://askubuntu.com/questions/37753/how-can-i-get-apt-to-use-a-mirror-close-to-me-or-choose-a-faster-mirror

    回覆刪除

lyhcode by lyhcode
歡迎轉載,請務必註明出處!