校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 知識庫 > Ubuntu 18.04更換apt-get源的方法

Ubuntu 18.04更換apt-get源的方法

熱門標簽:地圖標注員有發展前景嗎 高德地圖標注公司需要錢 云南電商智能外呼系統哪家好 廈門防封電銷電話卡 濰坊寒亭400電話辦理多少錢 地圖標注能更改嗎 宜賓銷售外呼系統軟件 四川保險智能外呼系統 外呼系統全國

使用apt-get安裝時,會很慢,更換了國內的源后,就可以解決這個問題了。

1. 備份sources.list文件

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

2. 打開sources.list文件

sudo gedit /etc/apt/sources.list

3. 刪除原內容,添加下列內容

#清華源
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

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

4. 更新

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

sudo apt-get update

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

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

標簽:紅河 德州 廊坊 湛江 巴彥淖爾 回訪 滁州 廣安

巨人網絡通訊聲明:本文標題《Ubuntu 18.04更換apt-get源的方法》,本文關鍵詞  Ubuntu,18.04,更換,apt-get,源,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《Ubuntu 18.04更換apt-get源的方法》相關的同類信息!
  • 本頁收集關于Ubuntu 18.04更換apt-get源的方法的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 八宿县| 浮梁县| 西安市| 丰宁| 瑞昌市| 平遥县| 宁陵县| 抚顺市| 射洪县| 隆德县| 昭通市| 防城港市| 庄河市| 巴塘县| 北京市| 大渡口区| 辉县市| 逊克县| 崇礼县| 宁津县| 眉山市| 石阡县| 云林县| 舒兰市| 富源县| 化州市| 郁南县| 望谟县| 玉田县| 图木舒克市| 延吉市| 永修县| 南京市| 尼木县| 岳阳县| 淳安县| 图片| 建阳市| 建水县| 景洪市| 剑阁县|