Ubuntu更新源列表

教育网下一些好用的源。

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

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 


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值