Ubuntu16.04换源
时间: 2023-11-08 14:05:14 浏览: 97
Ubuntu16.04更换国内镜像源(亲测有效)
Ubuntu 16.04换源的步骤如下:
1.备份原来的源列表文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2.打开源列表文件
sudo gedit /etc/apt/sources.list
3.将原来的内容注释掉,添加新的源地址
#阿里云源
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
4.更新源列表
sudo apt-get update
5.升级软件包
sudo apt-get upgrade
阅读全文