Ads 468x60px

##EasyReadMore##

05 11月, 2015

ubuntu 15.04,14.04,10.04 永久 souce list

老版本的 ubuntu 慢慢不維護了…真麻煩
pushd /etc/apt
mv sources.list sources.list.bak
vim /etc/apt/source.list
加入下面的 source list

Vivid(15.04)版本

deb http://archive.ubuntu.com/ubuntu/ vivid main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ vivid-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ vivid-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ vivid main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ vivid-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ vivid-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse

#第三方套件

deb http://archive.canonical.com/ubuntu/ vivid partner
deb http://extras.ubuntu.com/ubuntu/ vivid main


其它版本:





Utopic(14.10)版本


將上述列表地址中的 vivid 替換為 utopic 即可


[編輯] Trusty(14.04)版本

將上述列表地址中的 vivid 替換為 trusty 即可
sed -i 's#vivid#trusty#' sources.list

[編輯] Precise(12.04)版本

將上述列表地址中的 vivid 替換為 precise 即可


Lucid(10.04) 版本

將上述列表地址中的 vivid 替換為 lucid 即可


停止維護的版本

13.10、13.04、12.10、11.10、11.04、10.10、9.10、9.04、8.10、7.10 、7.04、6.10、6.06、5.10、5.04、4.10


錯誤處理:
W: Failed to fetch http://ppa.launchpad.net/ben-collins/libjwt/ubuntu/dists/precise/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/ben-collins/libjwt/ubuntu/dists/precise/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/ben-collins/libjwt/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found

因為 PPAs are put in the /etc/apt/sources.list.d/ directory
內容如下:
cat /etc/apt/sources.list.d/*.list
deb http://ppa.launchpad.net/ben-collins/libjwt/ubuntu precise main
deb-src http://ppa.launchpad.net/ben-collins/libjwt/ubuntu precise main
deb http://ppa.launchpad.net/chris-lea/node.js/ubuntu precise main
deb-src http://ppa.launchpad.net/chris-lea/node.js/ubuntu precise main
deb http://ppa.launchpad.net/git-core/ppa/ubuntu precise main
deb-src http://ppa.launchpad.net/git-core/ppa/ubuntu precise main
deb http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu precise main
deb-src http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu precise main
deb http://www.scootersoftware.com/ bcompare4 non-free

把它們全部移除掉就好了:
sudo rm /etc/apt/sources.list.d/*

參考文件





源列表 - Ubuntu中文


http://goo.gl/cNharX

0 意見:

張貼留言

 
Blogger Templates