可以先备份原源,也可以不用,哈哈
sudo cp /etc/apt/sources.list /etc/apt/sources_init.list
- 开始换源,打开源列表文档,编辑填入要换的源(推荐阿里源、网易源)
sudo gedit /etc/apt/sources.list
【阿里源】
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 h