美文网首页
ubuntu 配置清华源

ubuntu 配置清华源

作者: Koap | 来源:发表于2019-04-24 15:20 被阅读0次

1. 更改配置文件

sudo apt update 
# 刚安装的ubuntu没有 vim
sudo apt install vim
# 更改 apt源文件
sudo vi /etc/apt/sources.list

2. 替换内容

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse

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

3. 更新apt

sudo apt-get update

清华镜像站各种源的帮助:
https://mirror.tuna.tsinghua.edu.cn/help/AOSP/

相关文章

网友评论

      本文标题:ubuntu 配置清华源

      本文链接:https://www.haomeiwen.com/subject/rzeggqtx.html