国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

【Linux基礎(chǔ)】Ubuntu系統(tǒng)換源

這篇具有很好參考價(jià)值的文章主要介紹了【Linux基礎(chǔ)】Ubuntu系統(tǒng)換源。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

  • ??歡迎各位讀者:點(diǎn)贊 ?? 收藏 ?留言 ??
  • ??博客主頁:https://blog.csdn.net/qq_59134387??
  • ??原創(chuàng)不易,轉(zhuǎn)載請(qǐng)標(biāo)明出處;如有錯(cuò)誤,敬請(qǐng)指正批評(píng)!??
  • ??我不去想是否能夠成功,既然選擇了遠(yuǎn)方,便只顧風(fēng)雨兼程!?


前言

??本文將針對(duì)安裝好的Ubuntu系統(tǒng)進(jìn)行換源操作,將系統(tǒng)內(nèi)的國外源更換為國內(nèi)源(阿里源,網(wǎng)易源,清華源,中科大源等)。


一、換源目的

使用國外源弊端
?? ??????1.軟件無法下載,找不到軟件下載包
??? ?????2.容易出現(xiàn)下載錯(cuò)誤,中途停止等情況
??? ?????3.使用國外的源下載 / 更新速度十分緩慢

?? 由于Ubuntu系統(tǒng)安裝默認(rèn)源為國外源(服務(wù)器位于國外),導(dǎo)致國內(nèi)用戶在開發(fā)的過程中會(huì)遇到一系列問題,為避免該系列問題,需要我們對(duì)安裝好的Ubuntu系統(tǒng)進(jìn)行換源操作。

二、換源步驟

源文件絕對(duì)路徑: /etc/apt/sources.list

1.在終端使用管理員權(quán)限和gedit命令打開sources.list文件

終端命令:sudo gedit /etc/apt/source.list,打開文件后如下圖所示:

ubuntu換源,Linux 基礎(chǔ)學(xué)習(xí),ubuntu,linux,服務(wù)器
2.將sources.list的內(nèi)容替換為以下任意一段國內(nèi)源

阿里源 Ubuntu 20.04版本

deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
# deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

清華源 Ubuntu 20.04版本

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

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

中科大源 Ubuntu 20.04版本

deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse

3.更新緩存和升級(jí)(更新源)

終端命令:sudo apt-get update (更新源)


總結(jié)

???以上就是【Linux基礎(chǔ)】Ubuntu系統(tǒng)換源的所有內(nèi)容,希望大家閱讀后都能有所收獲!原創(chuàng)不易,轉(zhuǎn)載請(qǐng)標(biāo)明出處,若文章出現(xiàn)有誤之處,歡迎讀者留言指正批評(píng)!

ubuntu換源,Linux 基礎(chǔ)學(xué)習(xí),ubuntu,linux,服務(wù)器文章來源地址http://www.zghlxwxcb.cn/news/detail-588573.html

到了這里,關(guān)于【Linux基礎(chǔ)】Ubuntu系統(tǒng)換源的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包