个人工具

源列表

来自Ubuntu中文

Tuu1讨论 | 贡献2016年5月13日 (五) 23:37的版本

跳转至: 导航, 搜索
速配指南 热门设置 软件推荐 源列表 疑难杂症


适用于 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 换成版本代号就好:

16.04
xenial
15.10
willy
14.04
trusty详细
12.04
precise详细

自动测速

Ubuntu 设置中的“软件与更新”可以设置从哪里的服务器下载,免去抄服务器和编配置的麻烦(本来这事就不该这么折腾,不是吗?)。点击那个下拉框的最后一个选项可以看到完整列表,右侧有一个自动测速按钮。

如何修改源列表

Info 不同的网络状况连接以下源的速度不同, 建议在添加前手动验证以下源的连接速度(ping下就行),选择最快的源可以节省大批下载时间。

  • 首先备份源列表(for sure):
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
  • 而后用gedit或其他编辑器打开:
Qref Ubuntu Logo.png gksu gedit /etc/apt/sources.list
Qref Kubuntu Logo.png kdesudo kate /etc/apt/sources.list  
Qref Xubuntu Logo.png gksu mousepad /etc/apt/sources.list
Qref Xubuntu Logo.png gksu leafpad /etc/apt/sources.list # 12.04
sudo apt edit-sources # CLI

  • 从下面列表中选择合适的源,替换掉文件中所有的内容,保存编辑好的文件:
Attention niels epting.svg 注意:一定要选对版本
  • 然后,刷新列表:
sudo apt-get update
Attention niels epting.svg 注意:一定要执行刷新

停止维护的版本

15.0414.1013.1013.0412.1011.1011.0410.1010.049.109.048.107.107.046.10、6.06、5.10、5.04、4.10

停止維護版本的官方軟件源:http://old-releases.ubuntu.com/releases/

6.06(Dapper)、8.04(Hardy)的源部分第三方镜像如中科大、交大等有,详情请查阅各镜像地址下的 dists 目录中是否有 dapper 子目录