當apt-get 無法下載package時,有可能是sources.list已經過時,故需對此檔案做更新
此說明的檔案內容為針對Ubuntu 11.12,其他版本的Ubuntu若需要更新sources.list,則需另行查詢。
mv /etc/apt/sources.list /etc/apt/sources.list.bk #備份原始檔案
vi /etc/apt/sources.list
檔案內容為:
-----------------------------------------------------------------------------------------
deb http://old-releases.ubuntu.com/ubuntu/ oneiric main
deb-src http://old-releases.ubuntu.com/ubuntu/ oneiric main
deb http://old-releases.ubuntu.com/ubuntu/ oneiric-updates main
deb-src http://old-releases.ubuntu.com/ubuntu/ oneiric-updates main
deb http://old-releases.ubuntu.com/ubuntu/ oneiric universe
deb-src http://old-releases.ubuntu.com/ubuntu/ oneiric universe
deb http://old-releases.ubuntu.com/ubuntu/ oneiric-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu/ oneiric-updates universe
deb http://old-releases.ubuntu.com/ubuntu oneiric-security main
deb-src http://old-releases.ubuntu.com/ubuntu oneiric-security main
deb http://old-releases.ubuntu.com/ubuntu oneiric-security universe
deb-src http://old-releases.ubuntu.com/ubuntu oneiric-security universe
-----------------------------------------------------------------------------------------
sudo apt-get update
接著即可下載所需套件
沒有留言:
張貼留言