赞
踩
本文为自己安装记录回顾用
下面的是ubuntu20.04Ubuntu 更换镜像源
Ubuntu默认的服务器是在国外,连接很慢。
更换成国内的镜像源,使用清华镜像源,连接就会快一点
下面介绍更换清华镜像源的方法
cd /etc/apt/
cp -a sources.list sources.backup.list
https://mirrors.tuna.tsinghua.edu.cn/
https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
查看ubuntu对应的版本方法:
cat /etc/issue
按照版本号需要在清华网站上选择相应的版本后再复制镜像源码
sudo gedit sources.list
# 默认注释了源码镜像以提高 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
# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
sudo apt-get update
现在我这里的速度,比之前快多了
https://blog.csdn.net/weixin_74239923/article/details/129913664
https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。