ubuntu 12.04 source.list 源更新
官方源:
1 #deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main restricted 2 3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to 4 # newer versions of the distribution. 5 deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted 6 deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted 7 8 ## Major bug fix updates produced after the final release of the 9 ## distribution. 10 deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted 11 deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted 12 13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 14 ## team. Also, please note that software in universe WILL NOT receive any 15 ## review or updates from the Ubuntu security team. 16 deb http://us.archive.ubuntu.com/ubuntu/ precise universe 17 deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe 18 deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe 19 deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe 20 21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 22 ## team, and may not be under a free licence. Please satisfy yourself as to 23 ## your rights to use the software. Also, please note that software in 24 ## multiverse WILL NOT receive any review or updates from the Ubuntu 25 ## security team. 26 deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse 27 deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse 28 deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse 29 deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse 30 31 ## N.B. software from this repository may not have been tested as 32 ## extensively as that contained in the main release, although it includes 33 ## newer versions of some applications which may provide useful features. 34 ## Also, please note that software in backports WILL NOT receive any review 35 ## or updates from the Ubuntu security team. 36 deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse 37 deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse 38 39 deb http://security.ubuntu.com/ubuntu precise-security main restricted 40 deb-src http://security.ubuntu.com/ubuntu precise-security main restricted 41 deb http://security.ubuntu.com/ubuntu precise-security universe 42 deb-src http://security.ubuntu.com/ubuntu precise-security universe 43 deb http://security.ubuntu.com/ubuntu precise-security multiverse 44 deb-src http://security.ubuntu.com/ubuntu precise-security multiverse 45 46 ## Uncomment the following two lines to add software from Canonical's 47 ## 'partner' repository. 48 ## This software is not part of Ubuntu, but is offered by Canonical and the 49 ## respective vendors as a service to Ubuntu users. 50 # deb http://archive.canonical.com/ubuntu precise partner 51 # deb-src http://archive.canonical.com/ubuntu precise partner 52 53 ## This software is not part of Ubuntu, but is offered by third-party 54 ## developers who want to ship their latest software. 55 deb http://extras.ubuntu.com/ubuntu precise main 56 deb-src http://extras.ubuntu.com/ubuntu precise main
使用命令
1 sudo gedit /etc/apt/sources.list
替换为中国本地源
1 #163 2 deb http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse 3 deb-src http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse 4 deb http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted 5 deb-src http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted 6 deb http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted 7 deb http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted 8 deb-src http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted 9 deb http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted 10 deb-src http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted 11 deb-src http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted 12 #dianzi keji daxue 13 deb http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse 14 deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse 15 deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse 16 deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse 17 deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse 18 deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse 19 deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse 20 deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse 21 deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse 22 deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse 23 #beijing ligong daxue 24 deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe 25 deb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe 26 deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe 27 deb http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe 28 deb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe 29 deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe 30 deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe 31 deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe 32 deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe 33 deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe
更新源到系统:
1 sudo apt-get update 2 sudo apt-get upgrade
搞定,OK,速度提升了几倍!