ubuntu16.04软件源
时间: 2023-08-25 14:12:49 浏览: 114
ubuntu 软件更新源
Ubuntu 16.04 的软件源可以通过以下步骤进行配置:
1. 打开终端,输入以下命令备份原有软件源文件:
```
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
2. 修改软件源文件 /etc/apt/sources.list,将原有内容注释掉,添加如下内容:
```
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
```
3. 保存文件并退出。
4. 运行以下命令更新软件源:
```
sudo apt-get update
```
这样,你就可以使用清华源的 Ubuntu 16.04 软件源了。
阅读全文