修改Ubuntu源為阿里鏡像


Ubuntu全版本(14 16 18)更換阿里源 傳送門

備份之前的源文件

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup  # 備份源列表

添加阿里源

vi /etc/apt/sources.list

 輸入:,$d刪除之前的源

 1 #添加以下內容
 2 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
 3 deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
 4 
 5 deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
 6 deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
 7 
 8 deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
 9 deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
10 
11 deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
12 deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
13 
14 deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
15 deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

 

更新軟件列表

sudo apt-get update && apt-get upgrade 


免責聲明!

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



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