Ubuntu 18.04换国内源
更换源前,先对本来的源文件做好备份。
1 | mv /etc/apt/sources.list /etc/apt/sourceslist-save |
备份完成后,我们就可再建立source.list
1 | vim /etc/apt/sources.list |
添加以下内容
1 | ##中科大源 |
然后执行以下命令:
1 | sudo apt update |
更改其他源:
阿里源
1 | deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse |
360源
1 | deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse |
清华源
1 | deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse |