1、 备份原来的源(好习惯)
cd /etc/apt/
cp sources.list sources.list.bak
2、换源 gedit /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# 源码
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
3、更新源和软件
sudo apt-get update 更新源
sudo apt-get upgrade 更新软件
4、重启
5、效果
进入 目录 /etc/apt , 双击 sources.list

本文提供了一步一步指导,教你如何将Ubuntu系统的软件源更换为阿里云镜像源,并完成更新和重启操作,确保系统和软件包能快速稳定地获取。
999

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



