最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

修改ubuntu 18.04的sources.list源為阿里或清華鏡像的方法

 更新時(shí)間:2020年08月24日 15:19:47   作者:侯祥胡  
這篇文章主要介紹了修改ubuntu 18.04的sources.list源為阿里或清華鏡像的方法,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧

1. 備份源列表

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

# 首先備份源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

2. 打開sources.list文件修改

選擇合適的源,替換原文件的內(nèi)容,保存編輯好的文件, 以阿里云更新服務(wù)器為例(從實(shí)際測(cè)試上結(jié)果分析,個(gè)人認(rèn)為阿里云比網(wǎng)易和搜狐的服務(wù)器要快):

sudo vim /etc/apt/sources.list

3. 阿里云鏡像源-清華鏡像源

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

版本 版本號(hào) 代號(hào)
Lucid(10.04) 10.04 lucid
Precise(12.04): precise 12.04 precise
Trusty(14.04): trusty 14.04 trusty
Utopic(14.10): utopic 14.10 utopic
Ubuntu 16.04 TLS: xenial 16.04 xenial
Ubuntu 18.04 TLS: bionic 18.04 bionic

Ubuntu 18.04 TLS版本阿里云鏡像源:

# https://opsx.alibaba.com/mirror
deb https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse 
deb https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse 
deb https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse 
deb https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse 
deb https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse 

# 仿照清華鏡像源,注釋了源碼鏡像以提高 apt update 速度,如有需要可自行取消注釋
# deb-src https://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse 
# deb-src https://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse 
# deb-src https://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse 
# deb-src https://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse 
# deb-src https://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse

Ubuntu 18.04 TLS版本清華鏡像源:

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

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

4. 刷新列表,一定要執(zhí)行刷新

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential

5. 參考

修改ubuntu的sources.list源

修改ubuntu的sources.list源

如何修改Ubuntu的源列表(source list)

到此這篇關(guān)于修改ubuntu 18.04的sources.list源為阿里或清華鏡像的方法的文章就介紹到這了,更多相關(guān)ubuntu18.04 sources.list內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

  • Linux使用cut進(jìn)行文本提取的操作方法

    Linux使用cut進(jìn)行文本提取的操作方法

    Linux 中的 cut 命令是一個(gè)命令行實(shí)用程序,用于從文件或標(biāo)準(zhǔn)輸入中提取文本行的部分,本文給大家介紹了Linux使用cut進(jìn)行文本提取的操作方法,文中有詳細(xì)的代碼示例供大家參考,需要的朋友可以參考下
    2025-02-02
  • linux輕量級(jí) Web 服務(wù)器

    linux輕量級(jí) Web 服務(wù)器

    linux輕量級(jí) Web 服務(wù)器...
    2007-11-11
  • 如何將CentOS7升級(jí)至CentOS8(詳細(xì)步驟)

    如何將CentOS7升級(jí)至CentOS8(詳細(xì)步驟)

    這篇文章主要介紹了如何將CentOS7升級(jí)至CentOS8(詳細(xì)步驟),文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2019-11-11
  • Apache?Doris基礎(chǔ)簡介

    Apache?Doris基礎(chǔ)簡介

    Apache?Doris?是一個(gè)現(xiàn)代化的?MPP(Massively?Parallel?Processing,即大規(guī)模并行處理)分析型數(shù)據(jù)庫產(chǎn)品,這篇文章主要介紹了Apache-Doris基礎(chǔ)概念,需要的朋友可以參考下
    2024-03-03
  • 詳解CentOS 6.5搭建Redis3.2.8單機(jī)分布式集群

    詳解CentOS 6.5搭建Redis3.2.8單機(jī)分布式集群

    這篇文章主要介紹了詳解CentOS 6.5搭建Redis3.2.8單機(jī)分布式集群,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2017-05-05
  • CentOS 7安裝Mysql并設(shè)置開機(jī)自啟動(dòng)的方法

    CentOS 7安裝Mysql并設(shè)置開機(jī)自啟動(dòng)的方法

    本篇文章主要介紹了CentOS 7安裝Mysql并設(shè)置開機(jī)自啟動(dòng)的方法,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2017-02-02
  • Apache簡介及安全配置方案

    Apache簡介及安全配置方案

    Apache HTTP Server(簡稱Apache)是Apache軟件基金會(huì)的一個(gè)開放源碼的網(wǎng)頁服務(wù)器,可以在大多數(shù)計(jì)算機(jī)操作系統(tǒng)中運(yùn)行,由于其多平臺(tái)和安全性被廣泛使用,是最流行的Web服務(wù)器端軟件之一。它快速、可靠并且可通過簡單的API擴(kuò)展,將Perl/Python等解釋器編譯到服務(wù)器中。
    2014-08-08
  • linux服務(wù)器磁盤爆滿的處理方案

    linux服務(wù)器磁盤爆滿的處理方案

    文章描述了Linux服務(wù)器磁盤爆滿導(dǎo)致Redis服務(wù)無法訪問的問題,通過一系列命令查找并刪除大文件,解決了磁盤空間不足的問題,同時(shí),文章介紹了如何配置Nacos以防止日志文件過大導(dǎo)致磁盤空間爆滿,需要的朋友可以參考下
    2025-02-02
  • 詳解CentOS7 FTP服務(wù)搭建(虛擬用戶訪問FTP服務(wù))

    詳解CentOS7 FTP服務(wù)搭建(虛擬用戶訪問FTP服務(wù))

    Liunx外部文件的傳輸,避免不了使用FTP服務(wù),所以現(xiàn)在就整理下,CentOS7環(huán)境下,F(xiàn)TP服務(wù)的搭建。有興趣的可以了解一下。
    2017-01-01
  • 2018即將推出的Apache Spark 2.4都有哪些新功能

    2018即將推出的Apache Spark 2.4都有哪些新功能

    即將發(fā)布的 Apache Spark 2.4 版本是 2.x 系列的第五個(gè)版本。 本文對(duì)Apache Spark 2.4 的主要功能和增強(qiáng)功能進(jìn)行了概述,需要的朋友可以參考下
    2018-09-09

最新評(píng)論

文成县| 青州市| 元谋县| 揭西县| 上蔡县| 芜湖县| 蕉岭县| 海晏县| 龙山县| 宜都市| 静海县| 高要市| 玉树县| 房山区| 铜川市| 金沙县| 蒙山县| 双柏县| 偏关县| 公主岭市| 临夏市| 永春县| 柳林县| 香河县| 上高县| 南和县| 洪湖市| 鲜城| 平顶山市| 陆丰市| 石棉县| 鹤岗市| 玉树县| 肇庆市| 贵港市| 澄迈县| 鹿邑县| 临武县| 连城县| 苍山县| 常州市|