在ubuntu下自带的软件源安装软件非常慢,如果想要快速下载东西得更换软件源。而更换软件源的方法很简单。
一 备份系统自带的软件源
终端输入
sudo cp /etc/apt/sources.list /etc/apt/sources_backup.list
二 打开系统自带的软件源
终端输入
sudo gedit /etc/apt/sources.list
三 替换新的软件源
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ftp.sjtu.edu.cn/ubuntu/ precise main restricted
deb-src http://ftp.sjtu.edu.cn/ubuntu/ precise main restricted
deb http://cz.archive.ubuntu.com/ubuntu lucid main
## Major bug fix updates produced after the final release of the
## distribution.
deb http://ftp.sjtu.edu.cn/ubuntu/ precise-updates main restricted
deb-src http://ftp.sjtu.edu.cn/ubuntu/ precise-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ftp.sjtu.edu.cn/ubuntu/ precise universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ precise universe
deb http://ftp.sjtu.edu.cn/ubuntu/ precise-updates universe
deb-src http://ftp.sjtu.ed