zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Linux系统换清华源

2023-04-18 14:29:00 时间
3、更新 sudo apt-get update

4、复制相应linux版本支持的通道,此处为ubuntu20.04LTS,如果是其他版本清复制相对应的

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

5 .sudo vim /etc/apt/sources.list,进入界面

按insert插入上面复制的通道,然后 按esc  输入:wq(注意是冒号然后wq),然后敲回车

 

5,完成,sudo apt-get update 查询以下通道就是清华通道了