欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

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

 更新時(shí)間:2020年08月24日 15:16:28   作者:Bob Liu  
這篇文章主要給大家介紹了關(guān)于如何修改Ubuntu的源列表(source list)的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧

簡介

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

配置步驟

1. 備份源列表

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

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

以阿里云更新服務(wù)器為例(從實(shí)際測試上結(jié)果分析,個(gè)人認(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

更新完畢后,再次安裝源時(shí),將從新服務(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)文章希望大家以后多多支持腳本之家!

相關(guān)文章

  • linux crontab實(shí)例分析

    linux crontab實(shí)例分析

    cron是一個(gè)linux下的定時(shí)執(zhí)行工具,可以在無需人工干預(yù)的情況下運(yùn)行作業(yè)。由于Cron 是Linux的內(nèi)置服務(wù),但它不自動(dòng)起來,可以用以下的方法啟動(dòng)、關(guān)閉這個(gè)服務(wù)
    2011-03-03
  • Apeache啟動(dòng)不成功時(shí),用命令行檢測的方法

    Apeache啟動(dòng)不成功時(shí),用命令行檢測的方法

    下面小編就為大家?guī)硪黄狝peache啟動(dòng)不成功時(shí),用命令行檢測的方法。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2017-09-09
  • 使用 bind 設(shè)置 DNS 服務(wù)器的方法

    使用 bind 設(shè)置 DNS 服務(wù)器的方法

    Bind9是一個(gè)強(qiáng)大的Linux下開放源代碼的DNS服務(wù)器軟件,這篇文章主要介紹了使用 bind 設(shè)置 DNS 服務(wù)器的方法,需要的朋友可以參考下
    2020-03-03
  • Apache上部署Django步驟詳細(xì)介紹

    Apache上部署Django步驟詳細(xì)介紹

    這篇文章主要介紹了Apache上部署Django步驟詳細(xì)介紹的相關(guān)資料,需要的朋友可以參考下
    2017-02-02
  • 阿里云域名和ip綁定步驟方法實(shí)現(xiàn)

    阿里云域名和ip綁定步驟方法實(shí)現(xiàn)

    這篇文章主要介紹了阿里云域名和ip綁定步驟方法實(shí)現(xiàn),文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2020-07-07
  • 詳細(xì)解讀linux下swap分區(qū)的作用

    詳細(xì)解讀linux下swap分區(qū)的作用

    這篇文章主要介紹了詳細(xì)解讀linux下swap分區(qū)的作用,小編覺得還是挺不錯(cuò)的,具有一定借鑒價(jià)值,需要的朋友可以參考下
    2018-01-01
  • apache的rewrite規(guī)則使用說明

    apache的rewrite規(guī)則使用說明

    這篇文章主要介紹了apache的rewrite規(guī)則使用說明,并帶有參考示例,需要的朋友可以參考下
    2014-04-04
  • 詳解Centos6.5下docker 環(huán)境搭建

    詳解Centos6.5下docker 環(huán)境搭建

    本篇文章主要介紹了詳解Centos6.5下docker 環(huán)境搭建,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2017-02-02
  • ubuntu18虛擬機(jī)克隆后ip相同的解決方法

    ubuntu18虛擬機(jī)克隆后ip相同的解決方法

    這篇文章主要給大家介紹了關(guān)于ubuntu18虛擬機(jī)克隆后ip相同的解決方法,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2018-11-11
  • 使用Apache ab工具對Apache服務(wù)器進(jìn)行簡單的壓力測試

    使用Apache ab工具對Apache服務(wù)器進(jìn)行簡單的壓力測試

    這篇文章主要介紹了使用Apache ab工具對Apache服務(wù)器進(jìn)行簡單的壓力測試的方法,文中還對如何查看當(dāng)前Apache的連接數(shù)的方法作了介紹,需要的朋友可以參考下
    2016-03-03

最新評論