佳木斯湛栽影视文化发展公司

主頁 > 知識庫 > 怎么修改Ubuntu的源列表(source list)詳解

怎么修改Ubuntu的源列表(source list)詳解

熱門標(biāo)簽:網(wǎng)站建設(shè) 美圖手機(jī) 硅谷的囚徒呼叫中心 檢查注冊表項 使用U盤裝系統(tǒng) 智能手機(jī) 百度競價點(diǎn)擊價格的計算公式 阿里云

簡介

Ubuntu缺省的配置的源并不是國內(nèi)的服務(wù)器,下載更新軟件都比較慢,本文介紹如何設(shè)置源列表,選擇比較快的源以節(jié)省下載時間。

配置步驟

1. 備份源列表

sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

2. 選擇合適的源,替換原文件的內(nèi)容,保存編輯好的文件

以阿里云更新服務(wù)器為例(從實際測試上結(jié)果分析,個人認(rèn)為阿里云比網(wǎng)易和搜狐的服務(wù)器要快):

deb http://mirrors.aliyun.com/ubuntu/ XXXXX main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ XXXXX-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ XXXXX-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ XXXXX-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ XXXXX-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ XXXXX main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ XXXXX-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ XXXXX-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ XXXXX-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ XXXXX-backports main restricted universe multiverse

根據(jù)具體使用的Ubuntu的版本不同,將上述文本中XXXXX替換為下面對應(yīng)版本的字符串:

Utopic(14.10):     utopic
Trusty(14.04):     trusty
Precise(12.04):  precise
Lucid(10.04):      lucid

3. 刷新列表

sudo apt-get update

更新完畢后,再次安裝源時,將從新服務(wù)器上下載源包。

備注:

Ubuntu 16.04 TLS版本鏡像源:

# 默認(rèn)注釋了源碼鏡像以提高 apt update 速度,如有需要可自行取消注釋
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse

# 預(yù)發(fā)布軟件源,不建議啟用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse

總結(jié)

到此這篇關(guān)于怎么修改Ubuntu的源列表(source list)的文章就介紹到這了,更多相關(guān)修改Ubuntu源列表(source list)內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

標(biāo)簽:山南 黃山 湖北 煙臺 通遼 湘潭 懷化 賀州

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《怎么修改Ubuntu的源列表(source list)詳解》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266
    凤冈县| 康马县| 永泰县| 乃东县| 乡城县| 菏泽市| 清流县| 遵义县| 新蔡县| 搜索| 当阳市| 专栏| 漠河县| 个旧市| 论坛| 开封市| 始兴县| 潼关县| 乌什县| 宜兴市| 孙吴县| 米林县| 错那县| 特克斯县| 伊金霍洛旗| 若尔盖县| 甘孜| 湖州市| 始兴县| 昌邑市| 句容市| 葵青区| 遵化市| 阿荣旗| 罗江县| 专栏| 云龙县| 彰化县| 潞城市| 湘乡市| 凤冈县|