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

Ubuntu 18.04更換apt-get源的方法

 更新時(shí)間:2020年04月30日 09:55:08   作者:格格_gloria  
這篇文章主要介紹了Ubuntu 18.04更換apt-get源的方法,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下

使用apt-get安裝時(shí),會(huì)很慢,更換了國(guó)內(nèi)的源后,就可以解決這個(gè)問題了。

1. 備份sources.list文件

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

2. 打開sources.list文件

sudo gedit /etc/apt/sources.list

3. 刪除原內(nèi)容,添加下列內(nèi)容

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

這兩個(gè)源都可以用,我都試過,感覺阿里云源速度更快。

4. 更新

保存sources.list文件后需要更新apt-get。

sudo apt-get update

更新完成后就可以正常使用了。

到此這篇關(guān)于Ubuntu 18.04更換apt-get源的文章就介紹到這了,更多相關(guān)Ubuntu 18.04更換apt-get源內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

  • ubuntu開啟SSH服務(wù)遠(yuǎn)程登錄操作的實(shí)現(xiàn)

    ubuntu開啟SSH服務(wù)遠(yuǎn)程登錄操作的實(shí)現(xiàn)

    這篇文章主要介紹了ubuntu開啟SSH服務(wù)遠(yuǎn)程登錄操作的實(shí)現(xiàn),文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2020-08-08
  • linux使用find和crontab命令定期清理過期文件

    linux使用find和crontab命令定期清理過期文件

    這篇文章主要給大家介紹了linux系統(tǒng)下使用find和crontab命令定期清理過期文件的方法,文中先對(duì)find和crontab命令進(jìn)行了詳細(xì)的介紹,相信對(duì)大家的理解和學(xué)習(xí)具有一定的參考借鑒價(jià)值,下面來一起看看吧。
    2016-12-12
  • Ubuntu服務(wù)器下搭建php運(yùn)行環(huán)境的方法

    Ubuntu服務(wù)器下搭建php運(yùn)行環(huán)境的方法

    這篇文章主要介紹了Ubuntu服務(wù)器下搭建php運(yùn)行環(huán)境的方法,簡(jiǎn)單分析了Ubuntu操作系統(tǒng)環(huán)境下搭建Apache、php及mysql模塊相關(guān)步驟、命令與操作技巧,需要的朋友可以參考下
    2018-04-04
  • 使用xshell連接linux服務(wù)器

    使用xshell連接linux服務(wù)器

    這篇文章介紹了使用xshell連接linux服務(wù)器的方法,對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2021-12-12
  • Apache 并發(fā)優(yōu)化設(shè)置方法

    Apache 并發(fā)優(yōu)化設(shè)置方法

    本文是對(duì)512M 內(nèi)存并裝有apache的vps進(jìn)行優(yōu)化,請(qǐng)不要跟我說裝nginx就強(qiáng)多了,確實(shí)如此,但是你這樣說的話,這篇文章就沒什么意義了
    2016-08-08
  • 教你如何在ubuntu15.04安裝 RVM

    教你如何在ubuntu15.04安裝 RVM

    rvm 的全稱是 Ruby Version Manager ,是一款由 Wayne E. Seguin 開發(fā)的一款命令行工具。rvm 能夠讓你輕松的安裝、管理 ruby 生產(chǎn)力環(huán)境,諸如不同版本的解釋器和 gem 。
    2015-11-11
  • Linux?Tomcat的服務(wù)器查看接口請(qǐng)求方式的方法

    Linux?Tomcat的服務(wù)器查看接口請(qǐng)求方式的方法

    本文講述了在安卓開發(fā)中遇到的接口405錯(cuò)誤,懷疑是由于客戶端用GET請(qǐng)求代替了POST,通過查看ApacheTomcat的localhost_access_log日志確認(rèn)請(qǐng)求方式并定位問題,可能是緩存導(dǎo)致,所以講解了Linux?Tomcat的服務(wù)器查看接口請(qǐng)求方式的方法,需要的朋友可以參考下
    2024-07-07
  • Linux中crontab輸出重定向不生效問題的解決方法

    Linux中crontab輸出重定向不生效問題的解決方法

    crontab命令相信大家都不陌生,下面這篇文章主要給大家介紹了關(guān)于Linux中crontab輸出重定向不生效問題的解決方法,文中通過示例代碼介紹的非常詳細(xì),需要的朋友可以參考借鑒,下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2018-10-10
  • Linux中把用戶添加到組的4個(gè)方法總結(jié)

    Linux中把用戶添加到組的4個(gè)方法總結(jié)

    這篇文章主要給大家介紹了關(guān)于Linux中把用戶添加到組的4個(gè)方法,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家學(xué)習(xí)或者使用Linux具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面來一起學(xué)習(xí)學(xué)習(xí)吧
    2019-04-04
  • Linux命令學(xué)習(xí)總結(jié)之rmdir命令

    Linux命令學(xué)習(xí)總結(jié)之rmdir命令

    這篇文章主要介紹了Linux命令學(xué)習(xí)總結(jié)之rmdir命令的相關(guān)資料,需要的朋友可以參考下
    2016-01-01

最新評(píng)論