debian 10.0 sources.list更换源及自动更新

首先切换到root账号:

su root

由于很多编辑器权限不够建议使用gedit修改

gedit /etc/apt/sources.list

sudo apt edit-sources 或是 sudoedit /etc/apt/sources.list都可以
这是我的:
deb https://mirrors.ustc.edu.cn/debian unstable main contrib non-free
deb https://mirrors.ustc.edu.cn/debian experimental main contrib non-free

deb https://mirrors.ustc.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ buster-proposed-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free

deb https://mirrors.ustc.edu.cn/debiancn/ buster main
deb https://mirrors.ustc.edu.cn/deb-multimedia/ buster main non-free
前两个需要设置优先级权值 后两个需要下载各自keyring安装 如果不懂就只看中间四个好了 注意把版本号调成你自己需要的

以下是源方案二:

把其他的全部注释掉(#),用163的镜像,速度嗖嗖的。
deb http://mirrors.163.com/debian/ stretch main non-free contrib
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib

deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib

deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib

本站部分文章、资源来自互联网,版权归原作者及网站所有,如果侵犯了您的权利,请及时联系我站删除。邮箱:1103606138#qq.com

站点地图