备份文件
cp /etc/apt/sources.list /etc/apt/sources.list.bak
新建配置文件并切换源地址
echo "" > /etc/apt/sources.list
echo "deb http://mirrors.aliyun.com/debian buster main" >> /etc/apt/sources.list ;
echo "deb http://mirrors.aliyun.com/debian-security buster/updates main" >> /etc/apt/sources.list ;
echo "deb http://mirrors.aliyun.com/debian buster-updates main" >> /etc/apt/sources.list;
更新apt-get指令
apt-get update
然后就可以正常使用apt install 安装命令