源配置文件: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下载太慢,切换数据源
最新推荐文章于 2025-11-27 12:59:09 发布
本文指导如何备份并修改Ubuntu的源配置文件,移除默认源,替换为中国镜像,然后执行软件源更新,确保软件包下载速度提升。
6365

被折叠的 条评论
为什么被折叠?



