Ubuntu-18.04更改安裝源為國內源


Ubuntu-18.04更改安裝源為國內源

 

  環境查看

  修改源文件

1
/ etc / apt / sources. list

  備份配置文件后把文件內容替換如下

1
2
3
4
5
6
7
8
9
10
11
12
13
14
deb http: / / mirrors.aliyun.com / ubuntu /  bionic main restricted universe multiverse
deb - src http: / / mirrors.aliyun.com / ubuntu /  bionic main restricted universe multiverse
 
deb http: / / mirrors.aliyun.com / ubuntu /  bionic - security main restricted universe multiverse
deb - src http: / / mirrors.aliyun.com / ubuntu /  bionic - security main restricted universe multiverse
 
deb http: / / mirrors.aliyun.com / ubuntu /  bionic - updates main restricted universe multiverse
deb - src http: / / mirrors.aliyun.com / ubuntu /  bionic - updates main restricted universe multiverse
 
deb http: / / mirrors.aliyun.com / ubuntu /  bionic - proposed main restricted universe multiverse
deb - src 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 - backports main restricted universe multiverse

  源來源於:https://opsx.alibaba.com/mirror 找到Ubuntu查看幫助

  更新

1
2
sudo apt - get update
sudo apt - get upgrade


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM