源列表
来自Ubuntu中文
速配指南 | 热门设置 | 软件推荐 | 源列表 | 疑难杂症 |
---|
适用于 15.10 的基础配置(详细):
deb http://cn.archive.ubuntu.com/ubuntu/ willy main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu/ willy-security main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu/ willy-updates main restricted universe multiverse deb http://cn.archive.ubuntu.com/ubuntu/ willy-backports main restricted universe multiverse ##測試版源 deb http://cn.archive.ubuntu.com/ubuntu/ willy-proposed main restricted universe multiverse
# 源碼 deb-src http://cn.archive.ubuntu.com/ubuntu/ willy main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ willy-security main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ willy-updates main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ willy-backports main restricted universe multiverse ##測試版源 deb-src http://cn.archive.ubuntu.com/ubuntu/ willy-proposed main restricted universe multiverse
如要用于其他版本,把 willy 换成版本代号就好:
- 17.04
zesty
(详细)- 16.10
yakkety
(详细)- 16.04
xenial
(详细)- 15.10
willy
(详细)- 14.04
trusty
(详细)- 12.04
precise
(详细)
自动测速
Ubuntu 设置中的“软件与更新”可以设置从哪里的服务器下载,免去抄服务器和编配置的麻烦(本来这事就不该这么折腾,不是吗?)。点击那个下拉框的最后一个选项可以看到完整列表,右侧有一个自动测速按钮。
如何修改源列表
不同的网络状况连接以下源的速度不同, 建议在添加前手动验证以下源的连接速度(ping下就行),选择最快的源可以节省大批下载时间。
- 首先备份源列表(for sure):
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
- 而后用gedit或其他编辑器打开:
gksu gedit /etc/apt/sources.list kdesudo kate /etc/apt/sources.list gksu mousepad /etc/apt/sources.list gksu leafpad /etc/apt/sources.list # 12.04 sudo apt edit-sources # CLI
- 从下面列表中选择合适的源,替换掉文件中所有的内容,保存编辑好的文件:
- 然后,刷新列表:
sudo apt-get update
停止维护的版本
15.04、14.10、13.10、13.04、12.10、11.10、11.04、10.10、10.04、9.10、9.04、8.10、7.10 、7.04、6.10、6.06、5.10、5.04、4.10
停止維護版本的官方軟件源:http://old-releases.ubuntu.com/releases/
6.06(Dapper)、8.04(Hardy)的源部分第三方镜像如中科大、交大等有,详情请查阅各镜像地址下的 dists 目录中是否有 dapper 子目录