1、首先备份Ubuntu 11.10源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup(备份下当前的源列表)
2、修改更新源
sudo gedit /etc/apt/sources.list
#台湾源
deb http://tw.archive.ubuntu.com/ubuntu/ precise main universerestricted multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ precise main universerestricted multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ precise-security universemain multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ precise-securityuniverse main multiverse restricted
deb http://tw.archive.ubuntu.com/ubuntu/ precise-updates universemain multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ precise-updatesuniverse main multiverse restricted
#网易源(速度很快)
deb http://mirrors.163.com/ubuntu/ precise main universe restrictedmultiverse
deb-src http://mirrors.163.com/ubuntu/ precise main universerestricted multiverse
deb http://mirrors.163.com/ubuntu/ precise-security universe mainmultiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-security universemain multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-updates universe mainmultiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-proposed universe mainmultiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-proposed universemain multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-backports universe mainmultiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-backports universemain multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates universemain multiverse restricted
#电子科技大学
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricteduniverse multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports mainrestricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed mainrestricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-security mainrestricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates mainrestricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricteduniverse multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports mainrestricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed mainrestricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-security mainrestricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates mainrestricted universe multiverse
#北京理工大学(真羡慕刘毅同学)
deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverserestricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports mainmultiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed mainmultiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-security mainmultiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates mainmultiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverserestricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports mainmultiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed mainmultiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security mainmultiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates mainmultiverse restricted universe
3、保存后就是
sudo apt-get update
sudo apt-get upgrade