sudo cp /etc/apt/sources.list /etc/apt/sources.list_bak然后
sudo gedit /etc/apt/sources.list在打开的页面里面添加你的源:
Archive.ubuntu.com更新服务器(欧洲,此为官方源,电信网通用户使用):
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe m ultiverse deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
Ubuntu.cn99.com更新服务器(江苏省常州市电信,推荐电信用户使用):
deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multivers
网易163更新服务器:
deb http://mirrors.163.com/ubuntu/ hardy main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ hardy-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ hardy-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ hardy-proposed main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ hardy-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ hardy main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ hardy-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ hardy-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ hardy-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ hardy-backports main restricted universe multiverse *********************** deb http://mirrors.163.com/ubuntu/ precise main restricted deb-src http://mirrors.163.com/ubuntu/ precise main restricted deb http://mirrors.163.com/ubuntu/ precise-updates main restricted deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted deb http://mirrors.163.com/ubuntu/ precise universe deb-src http://mirrors.163.com/ubuntu/ precise universe deb http://mirrors.163.com/ubuntu/ precise-updates universe deb-src http://mirrors.163.com/ubuntu/ precise-updates universe deb http://mirrors.163.com/ubuntu/ precise multiverse deb-src http://mirrors.163.com/ubuntu/ precise multiverse deb http://mirrors.163.com/ubuntu/ precise-updates multiverse deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ precise-security main restricted deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted deb http://mirrors.163.com/ubuntu/ precise-security universe deb-src http://mirrors.163.com/ubuntu/ precise-security universe deb http://mirrors.163.com/ubuntu/ precise-security multiverse deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse deb http://extras.ubuntu.com/ubuntu precise main deb-src http://extras.ubuntu.com/ubuntu precise main *****************************************
Mirrors.shlug.org更新服务器(电信服务器,Ubuntu China Official Mirror, maintained by Shanghai Linux User Group):
deb http://cn.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse
Mirror.lupaworld.com更新服务器(浙江省杭州市双线服务器):
deb http://mirror.lupaworld.com/ubuntu hardy main restricted universe multiverse deb http://mirror.lupaworld.com/ubuntu hardy-security main restricted universe multiverse deb http://mirror.lupaworld.com/ubuntu hardy-updates main restricted universe multiverse deb http://mirror.lupaworld.com/ubuntu hardy-backports main restricted universe multiverse deb http://mirror.lupaworld.com/ubuntu hardy-proposed main restricted universe multiverse deb-src http://mirror.lupaworld.com/ubuntu hardy main restricted universe multiverse deb-src http://mirror.lupaworld.com/ubuntu hardy-security main restricted universe multiverse deb-src http://mirror.lupaworld.com/ubuntu hardy-updates main restricted universe multiverse deb-src http://mirror.lupaworld.com/ubuntu hardy-backports main restricted universe multiverse deb-src http://mirror.lupaworld.com/ubuntu hardy-proposed main restricted universe multiverse
厦门大学更新服务器(教育网服务器):
deb ftp://ubuntu.realss.cn/ubuntu/ hardy main restricted universe multiverse deb ftp://ubuntu.realss.cn/ubuntu/ hardy-backports restricted universe multiverse deb ftp://ubuntu.realss.cn/ubuntu/ hardy-proposed main restricted universe multiverse deb ftp://ubuntu.realss.cn/ubuntu/ hardy-security main restricted universe multiverse deb ftp://ubuntu.realss.cn/ubuntu/ hardy-updates main restricted universe multiverse deb-src ftp://ubuntu.realss.cn/ubuntu/ hardy main restricted universe multiverse deb-src ftp://ubuntu.realss.cn/ubuntu/ hardy-backports main restricted universe multiverse deb-src ftp://ubuntu.realss.cn/ubuntu/ hardy-proposed main restricted universe multiverse deb-src ftp://ubuntu.realss.cn/ubuntu/ hardy-security main restricted universe multiverse deb-src ftp://ubuntu.realss.cn/ubuntu/ hardy-updates main restricted universe multiverse
成都市 电子科技大学更新服务器(教育网,推荐校园网和网通用户使用):
deb http://ubuntu.uestc.edu.cn/ubuntu/ hardy main multiverse restricted universe deb http://ubuntu.uestc.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe deb http://ubuntu.uestc.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe deb http://ubuntu.uestc.edu.cn/ubuntu/ hardy-security main multiverse restricted universe deb http://ubuntu.uestc.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe deb-src http://ubuntu.uestc.edu.cn/ubuntu/ hardy main multiverse restricted universe deb-src http://ubuntu.uestc.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe deb-src http://ubuntu.uestc.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe deb-src http://ubuntu.uestc.edu.cn/ubuntu/ hardy-security main multiverse restricted universe deb-src http://ubuntu.uestc.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe
deb http://ubuntu.dormforce.net/ubuntu/ hardy main multiverse restricted universe deb http://ubuntu.dormforce.net/ubuntu/ hardy-backports main multiverse restricted universe deb http://ubuntu.dormforce.net/ubuntu/ hardy-proposed main multiverse restricted universe deb http://ubuntu.dormforce.net/ubuntu/ hardy-security main multiverse restricted universe deb http://ubuntu.dormforce.net/ubuntu/ hardy-updates main multiverse restricted universe deb-src http://ubuntu.dormforce.net/ubuntu/ hardy main multiverse restricted universe deb-src http://ubuntu.dormforce.net/ubuntu/ hardy-backports main multiverse restricted universe deb-src http://ubuntu.dormforce.net/ubuntu/ hardy-proposed main multiverse restricted universe deb-src http://ubuntu.dormforce.net/ubuntu/ hardy-security main multiverse restricted universe deb-src http://ubuntu.dormforce.net/ubuntu/ hardy-updates main multiverse restricted universe
上海市上海交通大学更新服务器(教育网,推荐校园网和网通用户使用):
deb http://ftp.sjtu.edu.cn/ubuntu/ hardy main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-security main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-security main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe
中国科学技术大学更新服务器(教育网,推荐校园网和网通用户使用):
deb http://debian.ustc.edu.cn/ubuntu/ hardy main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ hardy-security main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ hardy main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-security main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe
中国台湾 台湾大学更新服务器(推荐网通用户使用,电信PING平均响应速度41MS。强烈推荐此源,比较完整,较少出现同步问题):
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy main restricted universe multiverse deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy main restricted universe multiverse deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-updates main restricted universe multiverse deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-updates main restricted universe multiverse deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-backports main restricted universe multiverse deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-backports main restricted universe multiverse deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-security main restricted universe multiverse deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-security main restricted universe multiverse deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-proposed main multiverse restricted universe deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-proposed main restricted universe multiverse
mirror.rootguide.org更新服务器(上海市 电信):
deb http://mirror.rootguide.org/ubuntu/ hardy main restricted universe multiverse deb-src http://mirror.rootguide.org/ubuntu/ hardy main restricted universe multiverse deb http://mirror.rootguide.org/ubuntu/ hardy-updates main restricted universe multiverse deb-src http://mirror.rootguide.org/ubuntu/ hardy-updates main restricted universe multiverse deb http://mirror.rootguide.org/ubuntu/ hardy-backports main restricted universe multiverse deb-src http://mirror.rootguide.org/ubuntu/ hardy-backports main restricted universe multiverse deb http://mirror.rootguide.org/ubuntu/ hardy-security main restricted universe multiverse deb-src http://mirror.rootguide.org/ubuntu/ hardy-security main restricted universe multiverse deb http://mirror.rootguide.org/ubuntu/ hardy-proposed main multiverse restricted universe deb-src http://mirror.rootguide.org/ubuntu/ hardy-proposed main restricted universe multiverse
台湾的官方源速度也相当不错,有时甚至快于内地的:
deb http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse deb http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse deb http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse deb http://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse deb http://tw.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse deb-src http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse deb-src http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse deb-src http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse deb-src http://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse deb-src http://tw.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse添加完源以后注意保存。 最后更新你的软件列表
sudo apt-get update sudo apt-get dist-upgrade