ubuntu安装安装与更新

ubuntu 安装软件包

打开终端

首先更新源:
1、执行命令sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
2、之后打开文件/etc/apt/sources.list,打开方式为:sudo gedit /etc/apt/sources.list
用下面的内容取代文件/etc/apt/sources.list内容,按Ctrl+s保存更新的内容
这个是中科大的源,比较好

deb http://debian.ustc.edu.cn/ubuntu/ jaunty-security main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty universe restricted main multiverse
deb http://security.ubuntu.com/ubuntu/ jaunty-security universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu/ jaunty-updates universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu/ jaunty-proposed universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu/ jaunty-backports universe main multiverse restricted

3、下面就一条一条地执行下面的命令:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libc6-dev
sudo /usr/bin/gnome-language-selector
sudo apt-get install vim-full
sudo apt-get install build-essential
sudo apt-get install gnome-core-devel
sudo im-switch -s scim -z default
sudo apt-get install scim-qtimm
sudo apt-get install scim scim-pinyin scim-tables-zh im-switch scim-qtimm scim-bridge-client-gtk scim-bridge-client-qt scim-bridge-agent

如果其中有一些命令执行不成功个话就跳过,继续执行下面的命令。

最后重启就可以了

posted @ 2012-11-25 20:54  HelloSUN  阅读(2169)  评论(0编辑  收藏  举报