一般来说ubuntu官方的软件仓库由于服务器在国外,下载更新速度较慢,需要将软件仓库更换为国内镜像点。
1、修改源配置文件
① 先备份原来的配置文件
mv /etc/a /etc/a.bak
vim /etc/a
② 将国内的Ubuntu镜像点添加到配置文件
deb precise main restricted deb-src precise main restricted deb precise-updates main restricted deb-src precise-updates main restricted deb precise universe deb-src precise universe deb precise-updates universe deb-src precise-updates universe deb precise multiverse deb-src precise multiverse deb precise-updates multiverse deb-src precise-updates multiverse deb precise-backports main restricted universe multiverse deb-src precise-backports main restricted universe multiverse deb precise-security main restricted deb-src precise-security main restricted deb precise-security universe deb-src precise-security universe deb precise-security multiverse deb-src precise-security multiverse deb precise main deb-src precise main 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
deb precise main multiverse restricted universe deb precise-backports main multiverse restricted universe deb precise-proposed main multiverse restricted universe deb precise-security main multiverse restricted universe deb precise-updates main multiverse restricted universe deb-src precise main multiverse restricted universe deb-src precise-backports main multiverse restricted universe deb-src precise-proposed main multiverse restricted universe deb-src precise-security main multiverse restricted universe deb-src precise-updates main multiverse restricted universe 1 2 3 4 5 6 7 8 9 10
2、更新源
apt-get update
现在修改后的国内的ubuntu镜像点就可以使用了。