Ubuntu18.04更換國內源(阿里,網易,中科大,清華等源)
Ubuntu18.04更換國內源(阿里,網易,中科大,清華等源)
1.備份
備份/etc/apt/sources.list檔案
1 |
mv
/etc/apt/sources
.list
/etc/apt/sourses
.list.backup |
2.新建
新建/etc/apt/sources.list檔案並新增以下內容
在root管理員下
1
2
3
4 |
//
切換到管理員 sudo
su //
新建檔案並寫入 vi
/etc/apt/sources
.list |
2.1 阿里源:
1
2
3
4
5
6
7
8
9
10 |
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 |
2.2 其它源
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 |
#清華源 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 #中科大源 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 |
2.3 擴充套件
Ubuntu 官方 (歐洲,國內較慢,無同步延遲) http://archive.ubuntu.com/ubuntu/
Ubuntu 官方中國 (目前是阿里雲) http://cn.archive.ubuntu.com/ubuntu/
網易 (廣東廣州電信/聯通千兆雙線接入) http://mirrors.163.com/ubuntu/
搜狐 (山東聯通千兆接入) http://mirrors.sohu.com/ubuntu/
阿里雲 (北京萬網/浙江杭州阿里雲伺服器雙線接入) http://mirrors.aliyun.com/ubuntu/
詳情見:http://wiki.ubuntu.org.cn/模板:18.04source
3 更新
更改完成之後執行以下命令
1
2 |
apt update apt upgrade |
4 參考
4.1 Ubuntu18.04更換國內源
4.2 apt-get 軟體原始檔格式以及ubuntu 18.04更換阿里源 (源內容格式的原理)
4.3 ubuntu中文模板源
About Me
........................................................................................................................ ● 本文作者:小麥苗,部分內容整理自網路,若有侵權請聯絡小麥苗刪除 ● 本文在itpub、部落格園、CSDN和個人微 信公眾號( DB寶)上有同步更新 ● 本文itpub地址: http://blog.itpub.net/26736162 ● 本文部落格園地址: http://www.cnblogs.com/lhrbest ● 本文CSDN地址: https://blog.csdn.net/lihuarongaini ● 本文pdf版、個人簡介及小麥苗雲盤地址: http://blog.itpub.net/26736162/viewspace-1624453/ ● 資料庫筆試面試題庫及解答: http://blog.itpub.net/26736162/viewspace-2134706/ ● DBA寶典今日頭條號地址: http://www.toutiao.com/c/user/6401772890/#mid=1564638659405826 ........................................................................................................................ ● QQ群號: 230161599 、618766405 ● 微 信群:可加我微 信,我拉大家進群,非誠勿擾 ● 聯絡我請加QQ好友 ( 646634621 ),註明新增緣由 ● 於 2020-05-01 06:00 ~ 2020-05-30 24:00 在西安完成 ● 最新修改時間:2020-05-01 06:00 ~ 2020-05-30 24:00 ● 文章內容來源於小麥苗的學習筆記,部分整理自網路,若有侵權或不當之處還請諒解 ● 版權所有,歡迎分享本文,轉載請保留出處 ........................................................................................................................ ● 小麥苗的微店: https://weidian.com/s/793741433?wfr=c&ifr=shopdetail ● 小麥苗出版的資料庫類叢書: http://blog.itpub.net/26736162/viewspace-2142121/ ● 小麥苗OCP、OCM、高可用網路班: http://blog.itpub.net/26736162/viewspace-2148098/ ● 小麥苗騰訊課堂主頁: https://lhr.ke.qq.com/ ........................................................................................................................ 使用 微 信客戶端掃描下面的二維碼來關注小麥苗的微 信公眾號( DB寶)及QQ群(DBA寶典)、新增小麥苗微 信, 學習最實用的資料庫技術。
........................................................................................................................ |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-2693744/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- debian12 更換國內清華源
- 將Centos的yum源更換為國內的阿里雲(163)源CentOS阿里
- 設定國內映象(清華)源
- Rocky Linux:更換國內映象源Linux
- pip 換成國內阿里映象源阿里
- pip/pip3更換國內源
- 【PY】更換 pip 源到國內映象
- [PY] 更換 pip 源到國內映象
- Centos7 更換阿里源CentOS阿里
- Gradle更換阿里雲映象源Gradle阿里
- Windows下pip換成清華源Windows
- Centos7更換阿里映象源CentOS阿里
- Ubuntu apt-get和pip國內源更換Ubuntuapt-get
- Ubuntu16.04/18.04/20.04/22.04更換國內源Ubuntu
- Kali Linux 更換國內映象源詳細教程Linux
- Yarn 的安裝與更換國內映象源Yarn
- sbt更換阿里的maven倉庫源阿里Maven
- centos7 更換yum為阿里源或者別的源CentOS阿里
- winget 替換國內源
- HomeBrew切換國內源
- Rocky Linux搗鼓記錄(二):更換國內映象源Linux
- Linux環境更換阿里源(CentOS+Ubuntu)Linux阿里CentOSUbuntu
- Pip源設定(使用清華源)
- Debian更換源
- Mac-Homebrew 安裝/解除安裝/更換國內映象源Mac
- SBT編譯慢,更換國內阿里映象編譯阿里
- pip 清華源安裝
- pip更換映象源
- anaconda pip 安裝速度慢,更換阿里雲源阿里
- 軟路由openwrt中替換國內映象源(以阿里云為例)路由阿里
- Jetson Nano 更換映象源NaN
- Linux中更換yum源為阿里的詳細步驟Linux阿里
- ubuntu更換安裝源和pip映象源Ubuntu
- 最近清華源掛了,多找了幾個映象源
- pip安裝如何新增清華源
- Python pip設定為清華源Python
- pip更換資料來源
- Mac OS 下更換 Ruby 源Mac