如何在Debian系统中更换软件源为国内镜像源
先备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
再编辑
sudo nano /etc/apt/sources.list
添加国内源(可删除文件内所有源)
deb http://mirrors.163.com/debian/ buster main non-free contrib deb http://mirrors.163.com/debian/ buster-updates main non-free contrib # deb http://mirrors.163.com/debian/ buster-backports main non-free contrib deb-src http://mirrors.163.com/debian/ buster main non-free contrib # deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
最后更新
sudo apt-get update && sudo apt-get upgrade
通过以上步骤,您已经成功将Debian系统的软件源更换为国内镜像源。
点击链接加入群聊三群:751529538
点击链接加入群聊二群:376877156
点击链接加入群聊【路由器交流群:622891808已满】
本站附件分享,如果附件失效,可以去找找看
饿了么红包
于2024-11-17发布