要使用Ubuntu前,我们一般都要先做好工具!特别是对于安装这一块~~~~
1、配置前,先做个配置文件的备份:
$sudo cp /etc/apt/sources.list /etc/apt/sources.list_bak
2、然后就可以添加新的源了
$sudo vim /etc/apt/sources.list
加入源地址【下面列出163的源,主要是速度与更新得快!!!推荐使用】
deb http://mirrors.163.com/ubuntu/ maverick main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ maverick-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ maverick-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/maverick-backports main restricted universe multiverse
PS:注释掉其他行(行首加上#),也可不操作
3、最后,更新你的软件列表
$ sudo apt-get update – 列举本地更新
再附几个常用命令:
$ sudo apt-get upgrade – 安装可用更新
$ sudo apt-get install 软件包名 – 安装指定软件包
$ sudo apt-get remove 软件包名 – 删除指定软件包
(责任编辑:IT) |