源配置文件:sudo vim /etc/apt/sources.list
1、修改之前备份一下
cp /etc/apt/sources.list /etc/apt/sources.list_backup
2、源文件内容替换:清除文件内容gg, dG
deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb http://cn.archive.ubuntu.com/ubuntu/ xenial universe
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
3、更新软件源
sudo apt-get update
ubuntu下载太慢,切换数据源
最新推荐文章于 2023-01-23 16:59:33 发布