在安装好Ubuntu后,你会发现软件下载安装速度非常慢,甚至会出错,因为Ubuntu官方的源在国内访问的速度非常慢,但是我们可以更改系统的源为国内的一些源来提高速度(国内各大网站的源会定期和官方的源进行同步更新)
换源步骤
1.打开虚拟终端
快捷键:alt + ctrl + t
2.进入etc/apt文件夹
cd /etc/apt
3.备份sources.list文件
sudo cp sources.list sources.list.bak
4.编辑sources.list文件
sudo vi sources.list
文件内未修改的官方源↓
#deb cdrom:[Ubuntu 18.04.2 LTS _Bionic Beaver_ - Release amd64 (20190210)]/ bionic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any