乐者为王

Do one thing, and do it well.

修改Ubuntu 8.10的sources.list

系统自带的软件源速度太慢,更新一次安装包竟然要4个多小时,决定换个快点的软件源。这里 http://wiki.ubuntu.org.cn/Template:8.10source 列出了选多的选择,我选择了最下面的台湾官方源。

1
2
3
4
5
6
7
8
9
10
deb http://tw.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverse

首先备份sources.list

1
sudo cp /etc/apt/sources.list /etc/apt/sources.list.original

然后用vi打开sources.list,把上面列出的源添加进去:

1
sudo vi /etc/apt/sources.list

接着就是更新源:

1
sudo apt-get update

现在我们就可以更新已安装的软件包了:

1
apt-get upgrade

升级已安装的包为最新版本,不会安装新的或移除老的安装包。如果一个包因为改变了倚赖关系而需要安装一个新的包,那么它将不会被升级,会被标志为hold。建议使用“-u”选项,这样你就能看到哪些安装包将会被升级。

Comments