1.切换到root用户,安装vim,修改镜像源文件
apt-get install vim
vim /etc/apt/sources.list
注释掉原有的内容,添加如下阿里云的镜像源
deb http://mirrors.aliyun.com/debian/ bullseye main contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye main contrib
deb http://mirrors.aliyun.com/debian/ bullseye-updates main contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main contrib
deb http://mirrors.aliyun.com/debian/ bullseye-backports main contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main contrib
deb http://mirrors.aliyun.com/debian/ bullseye-proposed-updates main contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-proposed-updates main contrib
最后:wq保存退出。
2.执行下列命令更新系统
apt-get update
3.安装sudo命令即可
apt-get install sudo
如果本文对您有所帮助,请关注微信公众号“捷创源科技”