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

Ubuntu18.04更換國(guó)內(nèi)源的方法示例

 更新時(shí)間:2019年12月12日 15:22:54   作者:中國(guó)人醒來了  
這篇文章主要介紹了Ubuntu18.04更換國(guó)內(nèi)源的方法示例,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧

Ubuntu本身的源使用的是國(guó)內(nèi)的源,下載速度比較慢,不像CentOS一樣yum安裝的時(shí)候?qū)︾R像站點(diǎn)進(jìn)項(xiàng)選擇,

所以選擇了更換成國(guó)內(nèi)的源。

以下內(nèi)容整合自網(wǎng)絡(luò)

備份/etc/apt/sources.list文件
mv /etc/apt/sources.list /etc/apt/sourses.list.backup

新建/etc/apt/sources.list文件并添加以下內(nèi)容

#163源
deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse

更改完成之后執(zhí)行以下命令

# apt update
# apt upgrade

其他的一些apt命令

sudo apt-get update 更新源
sudo apt-get install package 安裝包
sudo apt-get remove package 刪除包
sudo apt-cache search package 搜索軟件包
sudo apt-cache show package 獲取包的相關(guān)信息,如說明、大小、版本等
sudo apt-get install package --reinstall 重新安裝包
sudo apt-get -f install 修復(fù)安裝
sudo apt-get remove package --purge 刪除包,包括配置文件等
sudo apt-get build-dep package 安裝相關(guān)的編譯環(huán)境
sudo apt-get upgrade 更新已安裝的包
sudo apt-get dist-upgrade 升級(jí)系統(tǒng)
sudo apt-cache depends package 了解使用該包依賴那些包
sudo apt-cache rdepends package 查看該包被哪些包依賴
sudo apt-get source package 下載該包的源代碼
sudo apt-get clean && sudo apt-get autoclean 清理無用的包
sudo apt-get check 檢查是否有損壞的依賴

其他幾個(gè)國(guó)內(nèi)的源:

#中科大源
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

#阿里云源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

#清華源
deb 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 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 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

  • 解決Linux+Apache服務(wù)器URL區(qū)分大小寫問題

    解決Linux+Apache服務(wù)器URL區(qū)分大小寫問題

    Linux服務(wù)器的大小寫敏感有時(shí)候很不方便,在地址欄里一定要輸入準(zhǔn)確的URL才能訪問,對(duì)搜索引擎和用戶不是很友好,那么如何解決LINUX服務(wù)器URL的大小寫問題
    2020-01-01
  • xampp Apache啟動(dòng)后無法訪問站點(diǎn)解決方法匯總

    xampp Apache啟動(dòng)后無法訪問站點(diǎn)解決方法匯總

    本文給大家總結(jié)了3種xampp Apache啟動(dòng)后無法訪問站點(diǎn)解決方法,均能夠解決此問題,有需要的小伙伴可以參考下
    2015-03-03
  • Linux文件傳輸及解決yum安裝失效的方法

    Linux文件傳輸及解決yum安裝失效的方法

    這篇文章主要介紹了Linux文件傳輸及解決yum安裝失效的方法,文中通過圖文結(jié)合的方式給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作有一定的幫助,需要的朋友可以參考下
    2024-09-09
  • Linux使用fdisk實(shí)現(xiàn)磁盤分區(qū)過程圖解

    Linux使用fdisk實(shí)現(xiàn)磁盤分區(qū)過程圖解

    這篇文章主要介紹了Linux使用fdisk實(shí)現(xiàn)磁盤分區(qū)過程圖解,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下
    2020-08-08
  • Azure給ubuntu虛擬機(jī)掛載數(shù)據(jù)盤的詳細(xì)步驟

    Azure給ubuntu虛擬機(jī)掛載數(shù)據(jù)盤的詳細(xì)步驟

    這篇文章主要介紹了Azure給ubuntu虛擬機(jī)掛載數(shù)據(jù)盤的詳細(xì)步驟,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2017-12-12
  • linux中普通用戶的定時(shí)任務(wù)詳解

    linux中普通用戶的定時(shí)任務(wù)詳解

    這篇文章主要給大家介紹了關(guān)于linux中普通用戶的定時(shí)任務(wù)的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家學(xué)習(xí)或者使用linux具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面來一起學(xué)習(xí)學(xué)習(xí)吧
    2019-04-04
  • centos7下如何安裝ftp服務(wù)

    centos7下如何安裝ftp服務(wù)

    這篇文章主要介紹了centos7下如何安裝ftp服務(wù)問題,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教
    2023-06-06
  • linux把php升級(jí)到5.6的實(shí)操方法

    linux把php升級(jí)到5.6的實(shí)操方法

    在本篇文章里小編給大家整理的是關(guān)于linux下如何把php升級(jí)到5.6的相關(guān)知識(shí)點(diǎn),需要的朋友們學(xué)習(xí)下。
    2019-11-11
  • linux下cat命令連接文件并打印到標(biāo)準(zhǔn)輸出設(shè)備上

    linux下cat命令連接文件并打印到標(biāo)準(zhǔn)輸出設(shè)備上

    這篇文章主要給大家介紹了關(guān)于在linux下cat命令連接文件并打印到標(biāo)準(zhǔn)輸出設(shè)備上的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面來一起看看吧。
    2017-07-07
  • linux設(shè)置服務(wù)開機(jī)自啟動(dòng)的三種方式

    linux設(shè)置服務(wù)開機(jī)自啟動(dòng)的三種方式

    這篇文章主要介紹了linux設(shè)置服務(wù)開機(jī)自啟動(dòng)的三種方式,需要的朋友可以參考下
    2015-11-11

最新評(píng)論

尼木县| 通江县| 文水县| 吉木萨尔县| 囊谦县| 辉南县| 兴化市| 和林格尔县| 奉新县| 讷河市| 尉氏县| 霍邱县| 曲周县| 三河市| 潞城市| 察雅县| 石门县| 金溪县| 无极县| 错那县| 兴国县| 馆陶县| 揭阳市| 敦化市| 志丹县| 宜兴市| 祥云县| 巴林左旗| 兴和县| 茶陵县| 宣城市| 镇安县| 扎囊县| 潞城市| 丹江口市| 斗六市| 怀集县| 吉木萨尔县| 永寿县| 霸州市| 宝清县|