个人工具

“源列表”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
Feisty (7.04) 版本
 
(未显示59个用户的154个中间版本)
第1行: 第1行:
不同的网络状况连接以下源的速度不同, 所以cn99并不一定是最快的源, 建议在添加前手动验证以下源的连接速度(ping下就行),比如说北京网通ADSL用户连接cn99就非常慢,而ftp.sjtu.edu.cn是相对较快的源,选择最快的源可以节省大批下载时间
+
{{TOCright}}
 +
{{Qref}}
  
 +
<br style="clear:both"/>
 +
適用於 20.04 的基礎配置([[Template:Ubuntu source|詳細]]):
  
==== Breezy (5.10) 版本 ====
+
{{Ubuntu source|distro=focal|src=1}}
* 请参阅 [[Ubuntu简介]]
+
<pre><nowiki>
+
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
+
sudo gedit /etc/apt/sources.list
+
</nowiki></pre>
+
  
* 用以下内容替换文件中的所有内容
+
如要用於其他版本,把 '''focal''' 換成版本代號就好:
<pre><nowiki>
+
deb http://archive.ubuntu.com/ubuntu/ breezy main restricted universe multiverse
+
deb http://archive.ubuntu.com/ubuntu/ breezy-security main restricted universe multiverse
+
deb http://archive.ubuntu.com/ubuntu/ breezy-updates main restricted universe multiverse
+
deb http://archive.ubuntu.com/ubuntu/ breezy-backports main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu-cn/ breezy main restricted universe multiverse
+
</nowiki></pre>
+
这里你也可以直接使用更快速的ubuntu.cn99.com的源(推荐):
+
<pre><nowiki>
+
deb http://ubuntu.cn99.com/ubuntu/ breezy main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu/ breezy-updates main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu/ breezy-security main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu/ breezy-backports main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu-cn/ breezy main restricted universe multiverse
+
</nowiki></pre>
+
这里你还可以使用速度也非常快的的mirror.lupaworld.com的源:
+
<pre><nowiki>
+
deb http://mirror.lupaworld.com/ubuntu/archive/ breezy main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/archive/ breezy-security main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/archive/ breezy-updates main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/archive/ breezy-backports main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn/ breezy main restricted universe multiverse
+
</nowiki></pre>
+
如果是教育网用户请使用上海交通大学的源:
+
<pre><nowiki>
+
deb http://ftp.sjtu.edu.cn/ubuntu/ breezy main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu/ breezy-backports main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu/ breezy-proposed main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu/ breezy-security main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu/ breezy-updates main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu-cn/ breezy main multiverse restricted universe bleeding
+
</nowiki></pre>
+
  
* 保存编辑好的文件
+
;21.04:{{code|hirsute}}([[Template:21.04source|詳細]])
<pre><nowiki>
+
;20.10:{{code|groovy}}([[Template:20.10source|詳細]])
sudo apt-get update
+
;18.04:{{code|bionic}}([[Template:18.04source|詳細]])
</nowiki></pre>
+
;16.04:{{code|xenial}}([[Template:16.04source|詳細]])
 +
;14.04:{{code|trusty}}([[Template:14.04source|詳細]])
  
==== Dapper (6.06) 版本 ====
+
== 自動測速 ==
  
* 请参阅 [[Ubuntu简介]]
+
Ubuntu 設置中的「軟件與更新」可以設置從哪裡的服務器下載,免去抄服務器和編配置的麻煩<small>(本來這事就不該這麼折騰,不是嗎?)</small>。點擊那個下拉框的最後一個選項可以看到完整列表,右側有一個自動測速按鈕。
<pre><nowiki>
+
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
+
sudo gedit /etc/apt/sources.list
+
</nowiki></pre>
+
  
* 用以下内容替换文件中的所有内容
+
== 如何修改源列表  ==
<pre><nowiki>
+
deb http://archive.ubuntu.com/ubuntu/ dapper main restricted universe multiverse
+
deb http://archive.ubuntu.com/ubuntu/ dapper-security main restricted universe multiverse
+
deb http://archive.ubuntu.com/ubuntu/ dapper-updates main restricted universe multiverse
+
deb http://archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu-cn/ dapper main restricted universe multiverse
+
</nowiki></pre>
+
这里你也可以直接使用更快速的ubuntu.cn99.com的源(推荐):
+
<pre><nowiki>
+
deb http://ubuntu.cn99.com/ubuntu/ dapper main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu/ dapper-updates main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu/ dapper-security main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu/ dapper-backports main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu-cn/ dapper main restricted universe multiverse
+
</nowiki></pre>
+
这里你还可以使用速度也非常快的的mirror.lupaworld.com的源:
+
<pre><nowiki>
+
deb http://mirror.lupaworld.com/ubuntu/archive/ dapper main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/archive/ dapper-security main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/archive/ dapper-updates main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/archive/ dapper-backports main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn/ dapper main restricted universe multiverse
+
</nowiki></pre>
+
如果是教育网用户推荐使用上海交通大学的源:
+
<pre><nowiki>
+
deb http://ftp.sjtu.edu.cn/ubuntu/ dapper main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu/ dapper-backports main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu/ dapper-proposed main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu/ dapper-security main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu/ dapper-updates main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu-cn/ dapper bleeding main multiverse restricted universe
+
</nowiki></pre>
+
教育网用户也推荐使用清华大学计算机系学生科协的源:
+
<pre><nowiki>
+
deb http://mirror.net9.org/ubuntu/ dapper main multiverse restricted universe
+
deb http://mirror.net9.org/ubuntu/ dapper-backports main multiverse restricted universe
+
deb http://mirror.net9.org/ubuntu/ dapper-proposed main multiverse restricted universe
+
deb http://mirror.net9.org/ubuntu/ dapper-security main multiverse restricted universe
+
deb http://mirror.net9.org/ubuntu/ dapper-updates main multiverse restricted universe
+
deb http://mirror.net9.org/ubuntu-cn/ dapper main multiverse restricted universe
+
</nowiki></pre>
+
  
* 保存编辑好的文件
+
{{Qref Info}} 不同的網絡狀況連接以下源的速度不同, 建議在添加前手動驗證以下源的連接速度(ping下就行),選擇最快的源可以節省大批下載時間。
<pre><nowiki>
+
sudo apt-get update
+
</nowiki></pre>
+
  
==== Edgy (6.10) 版本 ====
+
*首先備份源列表(for sure):
* 请参阅 [[Ubuntu简介]]
+
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
<pre><nowiki>
+
*而後用gedit或其他編輯器打開:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
+
{{Qref Ubuntu Logo}} gksu gedit /etc/apt/sources.list
sudo gedit /etc/apt/sources.list
+
{{Qref Kubuntu Logo}} kdesudo kate /etc/apt/sources.list 
</nowiki></pre>
+
{{Qref Xubuntu Logo}} gksu mousepad /etc/apt/sources.list
 +
{{Qref Xubuntu Logo}} gksu leafpad /etc/apt/sources.list # 12.04
 +
sudo apt edit-sources # CLI
 +
 +
*從下面列表中選擇合適的源,替換掉文件中所有的內容,保存編輯好的文件:
 +
:{{Qref Alarm}} <font style="font-size:120% color="red">注意:一定要選對版本</font>
 +
*然後,刷新列表:
 +
sudo apt-get update
 +
:{{Qref Alarm}} <font style="font-size:120% color="red">注意:一定要執行刷新</font>
  
* 用以下内容替换文件中的所有内容
+
== 停止維護的版本  ==
<pre><nowiki>
+
deb http://archive.ubuntu.com/ubuntu/ edgy main restricted universe multiverse
+
deb http://archive.ubuntu.com/ubuntu/ edgy-security main restricted universe multiverse
+
deb http://archive.ubuntu.com/ubuntu/ edgy-updates main restricted universe multiverse
+
deb http://archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
+
deb http://archive.ubuntu.com/ubuntu/ edgy-proposed main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu-cn/ edgy main restricted universe multiverse
+
</nowiki></pre>这里你也可以直接使用更快速的ubuntu.cn99.com的源(推荐):<pre><nowiki>
+
deb http://ubuntu.cn99.com/ubuntu/ edgy main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu/ edgy-security main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu/ edgy-updates main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu/ edgy-backports main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu/ edgy-proposed main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu-cn/ edgy main restricted universe multiverse
+
</nowiki></pre>这里你还可以使用速度也非常快的的mirror.lupaworld.com的源:<pre><nowiki>
+
deb http://mirror.lupaworld.com/ubuntu/archive/ edgy main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/archive/ edgy-security main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/archive/ edgy-updates main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/archive/ edgy-backports main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/archive/ edgy-proposed main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn/ edgy main restricted universe multiverse
+
</nowiki></pre>如果是教育网用户请使用上海交通大学的源:<pre><nowiki>
+
deb http://ftp.sjtu.edu.cn/ubuntu/ edgy main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu/ edgy-security main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu/ edgy-updates main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu/ edgy-backports main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu/ edgy-proposed main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu-cn/ edgy main multiverse restricted universe bleeding
+
</nowiki></pre>
+
  
* 保存编辑好的文件
+
[[Template:17.04source|17.04]][[Template:16.10source|16.10]][[Template:15.10source|15.10]][[Template:15.04source|15.04]]、[[Template:14.10source|14.10]]、[[Template:13.10source|13.10]]、[[Template:13.04source|13.04]]、[[Template:12.10source|12.10]]、[[Template:11.10source|11.10]]、[[Template:11.04source|11.04]]、[[Template:10.10source|10.10]]、[[Template:10.10source|10.04]]、[[Template:9.10source|9.10]]、[[Template:9.04source|9.04]]、[[Template:8.10source|8.10]]、[[Template:7.10source|7.10]] 、[[Template:7.04source|7.04]]、[[Template:6.10source|6.10]]、6.06、5.10、5.04、4.10
<pre><nowiki>
+
sudo apt-get update
+
</nowiki></pre>
+
  
==== Feisty (7.04) 版本 ====
+
停止維護版本的官方軟件源:http://old-releases.ubuntu.com/releases/
* 请参阅 [[Ubuntu简介]]
+
<pre><nowiki>
+
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
+
sudo gedit /etc/apt/sources.list
+
</nowiki></pre>
+
  
* 用以下内容替换文件中的所有内容
+
'''6.06(Dapper)、8.04(Hardy)的源部分第三方鏡像如中科大、交大等有''',詳情請查閱各鏡像地址下的 dists 目錄中是否有 dapper 子目錄
<pre><nowiki>
+
[[Category:速配指南]]
deb http://archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse
+
deb http://archive.ubuntu.com/ubuntu/ feisty-security main restricted universe multiverse
+
deb http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse
+
deb http://archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
+
deb http://archive.ubuntu.com/ubuntu/ feisty-proposed main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu-cn/ feisty main restricted universe multiverse
+
</nowiki></pre>这里你也可以直接使用更快速的ubuntu.cn99.com的源(推荐):<pre><nowiki>
+
deb http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiverse
+
deb http://ubuntu.cn99.com/ubuntu-cn/ feisty main restricted universe multiverse
+
</nowiki></pre>这里你还可以使用速度也非常快的的mirror.lupaworld.com的源:<pre><nowiki>
+
deb http://mirror.lupaworld.com/ubuntu/archive/ feisty main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/archive/ feisty-security main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/archive/ feisty-updates main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/archive/ feisty-backports main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/archive/ feisty-proposed main restricted universe multiverse
+
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn/ feisty main restricted universe multiverse
+
</nowiki></pre>如果是教育网用户请使用上海交通大学的源:<pre><nowiki>
+
deb http://ftp.sjtu.edu.cn/ubuntu/ feisty main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-security main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-updates main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-backports main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-proposed main multiverse restricted universe
+
deb http://ftp.sjtu.edu.cn/ubuntu-cn/ feisty main multiverse restricted universe bleeding
+
</nowiki></pre>上海电信的一个源:<pre><nowiki>
+
deb http://mirror.rootguide.org/ubuntu/ feisty main restricted universe multiverse
+
deb http://mirror.rootguide.org/ubuntu/ feisty-proposed main restricted universe multiverse
+
deb http://mirror.rootguide.org/ubuntu/ feisty-updates main restricted universe multiverse
+
deb http://mirror.rootguide.org/ubuntu/ feisty-backports main restricted universe multiverse
+
deb http://mirror.rootguide.org/ubuntu/ feisty-security main restricted universe multiverse
+
deb http://mirror.rootguide.org/ubuntu-cn/ feisty main restricted universe multiverse
+
</nowiki></pre>
+
 
+
* 保存编辑好的文件
+
<pre><nowiki>
+
sudo apt-get update
+
</nowiki></pre>
+

2021年4月13日 (二) 12:08的最新版本

速配指南 热门设置 软件推荐 源列表 疑难杂症


適用於 20.04 的基礎配置(詳細):

deb http://cn.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
##測試版源
deb http://cn.archive.ubuntu.com/ubuntu/ focal-proposed main restricted universe multiverse
# 源碼 deb-src http://cn.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse ##測試版源 deb-src http://cn.archive.ubuntu.com/ubuntu/ focal-proposed main restricted universe multiverse


如要用於其他版本,把 focal 換成版本代號就好:

21.04
hirsute詳細
20.10
groovy詳細
18.04
bionic詳細
16.04
xenial詳細
14.04
trusty詳細

自動測速

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 注意:一定要執行刷新

停止維護的版本

17.0416.1015.1015.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 子目錄