大家好,我是宗同学,今天折腾debian12.10时遇到个问题,就是安装面板的时候网速特别慢,原因已经查到,记录一下。
听歌
更换国内源
传统软件源:
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
源路径:/etc/apt/sources.list
打开源路径
命令:nano /etc/apt/sources.list
进入list后缀文件之后删掉里面的内容,粘贴清华的源保存即可。
实验
保存源之后,我们在终端输入 sudo apt update后回车,速度就起来了。
结尾
本人是在虚拟机中实验,在生产环境中一定要注意备份你们的数据哦,不然一切都白费了。此次记录又是一个知识的提升。
评论