如果我們有選擇的是國外云服務(wù)器,老蔣習(xí)慣的是安裝Ubuntu18.04鏡像,但是在安裝軟件的時(shí)候速度比較慢,主要因?yàn)槭窍到y(tǒng)源是服務(wù)器商家自帶的國外源。我們可以將換成國內(nèi)的源,速度會(huì)提高不少。在這里,我們可以選擇這四個(gè)Ubuntu 18.04源之一,然后替換到服務(wù)器。
第一、4個(gè)Ubuntu 18.04源
1、阿里云源
#添加阿里源
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、中科大源
##中科大源
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src 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-src 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-src 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-src 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-proposed main restricted universe multiverse
3、163源
##163源
deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
4、清華源
##清華源
deb https://mirrors.tuna./ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna./ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna./ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.tuna./ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna./ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.tuna./ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna./ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.tuna./ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.tuna./ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.tuna./ubuntu/ bionic-proposed main restricted universe multiverse
第二、如何替換源
1、備份/etc/apt/sources.list
cp /etc/apt/sources.list /etc/apt/sources.list.bak
備份原來的文件,以防止錯(cuò)誤我們還可以恢復(fù)。
2、修改源文件
我們?cè)谏厦婺夸浳募刑鎿Q上面的四個(gè)源之一。
3、更新源
sudo apt-get update
sudo apt-get upgrade
最后,我們執(zhí)行更新,如果沒有報(bào)錯(cuò)說明已經(jīng)更換完成。 原文:https://www./ubuntu-source.html
本文出處:老蔣部落 ? 4個(gè)國內(nèi)Ubuntu 18.04源備選替換國外服務(wù)器提高軟件安裝速度 | 歡迎分享( 公眾號(hào):老蔣玩運(yùn)營 )
|