ubuntu 16.04 apt-get 更新使用清华镜像源

Posted pclover11

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu 16.04 apt-get 更新使用清华镜像源相关的知识,希望对你有一定的参考价值。

1 备份系统配置

sudo cp /etc/apt/sources.list /etc/apt/source.list.bak

2 编辑配置

sudo vi /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

# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse

修改完保存,进行更新

sudo apt-get update

 

以上是关于ubuntu 16.04 apt-get 更新使用清华镜像源的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu 16.04 安装玩QQ后,更新或apt-get报错

Ubuntu16.04更新软件源,执行apt-get update时出现“The following signatures couldn't be verified”错误

有关ubuntu16.04进行sudo apt-get update更新时出现:‘N: 无法安全地用该源进行更新,所以默认禁用该源。’等问题解决方案

在Ubuntu Kylin 16.04 LTS 上源码方式安装odoo

ubuntu 16.04安装docker

Ubuntu 16.04 apt-get搭建LAMP环境