Ubuntu更新源列表

来源:互联网 发布:中式菜刀 知乎 编辑:程序博客网 时间:2024/05/02 06:46

教育网下一些好用的源。

记得更新前先备份系统默认源,万一出错可以更换回来。

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup  #备份原更新列表

打开sources.list,用下面的内容覆盖列表原内容。

并将其中natty置换为你系统版本的相应代号。

sudo gedit /etc/apt/sources.list #将下面的更新源直接复制覆盖掉sources.list里的数据

# deb ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ natty main multiverse restricted universe
# deb ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ natty-backports main multiverse restricted universe
# deb ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ natty-backports main multiverse restricted universe
# deb ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ natty-backports main multiverse restricted universe
# deb ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ natty-updates main multiverse restricted universe
# deb-src ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ natty main multiverse restricted universe
# deb-src ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ natty-backports main multiverse restricted universe
# deb-src ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ natty-backports main multiverse restricted universe
# deb-src ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ natty-backports main multiverse restricted universe
# deb-src ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ natty-updates main multiverse restricted universe

deb http://mirror6.bjtu.edu.cn/ubuntu/ natty main multiverse restricted universe
deb http://mirror6.bjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe
deb http://mirror6.bjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe
deb http://mirror6.bjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe
deb http://mirror6.bjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe
deb-src http://mirror6.bjtu.edu.cn/ubuntu/ natty main multiverse restricted universe
deb-src http://mirror6.bjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe
deb-src http://mirror6.bjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe
deb-src http://mirror6.bjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe
deb-src http://mirror6.bjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe

deb http://archive.canonical.com/ubuntu natty partner
deb-src http://archive.canonical.com/ubuntu natty partner

deb http://ftp.heanet.ie/mirrors/ubuntu/ natty main multiverse restricted universe
deb http://ftp.heanet.ie/mirrors/ubuntu/ natty-backports main multiverse restricted universe
deb http://ftp.heanet.ie/mirrors/ubuntu/ natty-proposed main multiverse restricted universe
deb http://ftp.heanet.ie/mirrors/ubuntu/ natty-security main multiverse restricted universe
deb http://ftp.heanet.ie/mirrors/ubuntu/ natty-updates main multiverse restricted universe
deb-src http://ftp.heanet.ie/mirrors/ubuntu/ natty main multiverse restricted universe
deb-src http://ftp.heanet.ie/mirrors/ubuntu/ natty-backports main multiverse restricted universe
deb-src http://ftp.heanet.ie/mirrors/ubuntu/ natty-proposed main multiverse restricted universe
deb-src http://ftp.heanet.ie/mirrors/ubuntu/ natty-security main multiverse restricted universe
deb-src http://ftp.heanet.ie/mirrors/ubuntu/ natty-updates main multiverse restricted universe

# deb ftp://ftp.belnet.be/mirror/ubuntu.com/ubuntu/ natty main multiverse restricted universe
# deb ftp://ftp.belnet.be/mirror/ubuntu.com/ubuntu/ natty-backports main multiverse restricted universe
# deb ftp://ftp.belnet.be/mirror/ubuntu.com/ubuntu/ natty-proposed main multiverse restricted universe
# deb ftp://ftp.belnet.be/mirror/ubuntu.com/ubuntu/ natty-security main multiverse restricted universe
# deb ftp://ftp.belnet.be/mirror/ubuntu.com/ubuntu/ natty-updates main multiverse restricted universe
# deb-src ftp://ftp.belnet.be/mirror/ubuntu.com/ubuntu/ natty main multiverse restricted universe
# deb-src ftp://ftp.belnet.be/mirror/ubuntu.com/ubuntu/ natty-backports main multiverse restricted universe
# deb-src ftp://ftp.belnet.be/mirror/ubuntu.com/ubuntu/ natty-proposed main multiverse restricted universe
# deb-src ftp://ftp.belnet.be/mirror/ubuntu.com/ubuntu/ natty-security main multiverse restricted universe
# deb-src ftp://ftp.belnet.be/mirror/ubuntu.com/ubuntu/ natty-updates main multiverse restricted universe

deb http://mirror.switch.ch/ftp/ubuntu/ natty main multiverse restricted universe
deb http://mirror.switch.ch/ftp/ubuntu/ natty-backports main multiverse restricted universe
deb http://mirror.switch.ch/ftp/ubuntu/ natty-proposed main multiverse restricted universe
deb http://mirror.switch.ch/ftp/ubuntu/ natty-security main multiverse restricted universe
deb http://mirror.switch.ch/ftp/ubuntu/ natty-updates main multiverse restricted universe
deb-src http://mirror.switch.ch/ftp/ubuntu/ natty main multiverse restricted universe
deb-src http://mirror.switch.ch/ftp/ubuntu/ natty-backports main multiverse restricted universe
deb-src http://mirror.switch.ch/ftp/ubuntu/ natty-proposed main multiverse restricted universe
deb-src http://mirror.switch.ch/ftp/ubuntu/ natty-security main multiverse restricted universe
deb-src http://mirror.switch.ch/ftp/ubuntu/ natty-updates main multiverse restricted universe

# deb http://ftp.kddlabs.co.jp/020/Linux/packages/ubuntu/archive/ natty main multiverse restricted universe
# deb http://ftp.kddlabs.co.jp/020/Linux/packages/ubuntu/archive/ natty-backports main multiverse restricted universe
# deb http://ftp.kddlabs.co.jp/020/Linux/packages/ubuntu/archive/ natty-proposed main multiverse restricted universe
# deb http://ftp.kddlabs.co.jp/020/Linux/packages/ubuntu/archive/ natty-security main multiverse restricted universe
# deb http://ftp.kddlabs.co.jp/020/Linux/packages/ubuntu/archive/ natty-updates main multiverse restricted universe
# deb-src http://ftp.kddlabs.co.jp/020/Linux/packages/ubuntu/archive/ natty main multiverse restricted universe
# deb-src http://ftp.kddlabs.co.jp/020/Linux/packages/ubuntu/archive/ natty-backports main multiverse restricted universe
# deb-src http://ftp.kddlabs.co.jp/020/Linux/packages/ubuntu/archive/ natty-proposed main multiverse restricted universe
# deb-src http://ftp.kddlabs.co.jp/020/Linux/packages/ubuntu/archive/ natty-security main multiverse restricted universe
# deb-src http://ftp.kddlabs.co.jp/020/Linux/packages/ubuntu/archive/ natty-updates main multiverse restricted universe


最后,更新列表。

sudo apt-get update 


原创粉丝点击