ubuntu 16.04更新源

本文提供了 Ubuntu 16.04 的官方更新源配置信息,包括主要的软件库、测试版源、源码库以及 Canonical 合作伙伴和附加组件的源。此外还提供了一个链接,用于获取更多版本的更新源。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ubuntu16.04更新源

deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
# 源码
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
# Canonical 合作伙伴和附加
deb http://archive.canonical.com/ubuntu/ xenial partner
deb http://extras.ubuntu.com/ubuntu/ xenial main

其他版本更新源可以使用一下地址中对应的源:

http://wiki.ubuntu.org.cn/Qref/Source

### 配置 Ubuntu 16.04 使用清华大学镜像 #### 备份原始 `sources.list` 文件 为了防止意外情况发生,在改之前先备份原有的 `sources.list` 文件。通过终端执行如下命令来创建备份: ```bash sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak ``` 此操作会将现有的 `/etc/apt/sources.list` 文件复制并重命名为 `sources.list.bak`,以便日后可以恢复原状[^4]。 #### 修改 `sources.list` 文件内容 接下来需要编辑 `/etc/apt/sources.list` 文件以指向清华大学的镜像服务器。可以通过图形界面或命令行工具完成这一步骤。这里推荐使用 nano 编辑器来进行修改: ```bash sudo nano /etc/apt/sources.list ``` 清空原有内容,并粘贴以下适用于 Ubuntu 16.04 的清华配置信息: ``` deb 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 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 ``` 保存文件后退出编辑器(如果使用的是nano,则按 Ctrl+X, 然后 Y 并回车确认)[^1]。 #### 更新软件包列表 最后更新本地APT缓存以使新的仓库生效。运行下列命令刷新可用软件包的信息: ```bash sudo apt-get update ``` 这样就完成了对Ubuntu 16.04系统的清华配置工作[^2]。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值