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

主頁 > 知識庫 > 修改ubuntu 18.04的sources.list源為阿里或清華鏡像的方法

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

熱門標簽:濟源電話外呼系統怎么樣 宿州防封外呼系統廠家 電話機器人服務差 蘭州語音電銷機器人軟件 智能外呼系統如何部署 電銷機器人對公司貢獻 山東400電話如何辦理 ai電銷機器人 如何開發 高德地圖標注在建線路

1. 備份源列表

Ubuntu缺省的配置的源并不是國內的服務器,下載更新軟件都比較慢,本文介紹如何設置源列表,選擇比較快的源以節省下載時間。

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

2. 打開sources.list文件修改

選擇合適的源,替換原文件的內容,保存編輯好的文件, 以阿里云更新服務器為例(從實際測試上結果分析,個人認為阿里云比網易和搜狐的服務器要快):

sudo vim /etc/apt/sources.list

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

注意根據具體使用的Ubuntu的版本不同,將文本中trusty替換為下面對應版本的字符串:

版本 版本號 代號
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/
# 默認注釋了源碼鏡像以提高 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

# 預發布軟件源,不建議啟用
# 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. 刷新列表,一定要執行刷新

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

5. 參考

修改ubuntu的sources.list源

修改ubuntu的sources.list源

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

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

標簽:云南 佛山 晉中 畢節 巴中 安陽 南寧 衡水

巨人網絡通訊聲明:本文標題《修改ubuntu 18.04的sources.list源為阿里或清華鏡像的方法》,本文關鍵詞  修改,ubuntu,18.04,的,sources.list,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《修改ubuntu 18.04的sources.list源為阿里或清華鏡像的方法》相關的同類信息!
  • 本頁收集關于修改ubuntu 18.04的sources.list源為阿里或清華鏡像的方法的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 肃北| 镇坪县| 巴东县| 荥阳市| 德惠市| 江阴市| 治县。| 沂源县| 河源市| 蓬安县| 静乐县| 措勤县| 冀州市| 二连浩特市| 荆州市| 小金县| 昌黎县| 托里县| 板桥市| 潞城市| 百色市| 广东省| 泰来县| 宁夏| 康保县| 河源市| 土默特左旗| 青阳县| 商洛市| 雷山县| 资阳市| 武汉市| 蒙阴县| 精河县| 始兴县| 海盐县| 淮滨县| 屯门区| 永济市| 屏东县| 隆回县|