Linux修改下載源
阿新 • • 發佈:2021-01-11
技術標籤:Linux
Linux上下載大的點的軟體都把人等的崩潰。都是從國外的網站下載,在我大天朝你們懂的,所以就把他的源給換一下,我覺得還是阿里牛逼!!!!多謝馬粑粑了!
首先我需要搞清楚是哪個發行版的Linux的第幾個版本,對應版本去找源
我本次在虛擬機器上裝的是ubuntu20.04TLS
阿里雲ubuntu源路徑,根據版本去查詢對應的
https://developer.aliyun.com/mirror/ubuntu
備份原始檔案
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo su獲得超級管理員許可權 編輯sources.list,刪除之前的連結,將阿里雲的連結貼上進去,儲存
vim /etc/apt/sources.list
更新源(前面已經獲得超級管理員許可權)
apt-get update
apt-get update
好了,完成。現在下載槓槓的!
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