一键切换官方源命令:
cp -r /etc/apt/sources.list /etc/apt/sources.list.bak;echo -e "deb http://deb.debian.org/debian/ buster main contrib non-free\ndeb-src http://deb.debian.org/debian/ buster main contrib non-free\ndeb http://deb.debian.org/debian/ buster-updates main contrib non-free\ndeb-src http://deb.debian.org/debian/ buster-updates main contrib non-free\ndeb http://deb.debian.org/debian/ buster-backports main contrib non-free\ndeb-src http://deb.debian.org/debian/ buster-backports main contrib non-free\ndeb http://deb.debian.org/debian-security/ buster/updates main contrib non-free\ndeb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free" > /etc/apt/sources.list;cat /etc/apt/sources.list;apt-get update;
如果出现 Repository ‘http://security.debian.org/debian-security buster/updates InRelease’ changed its ‘Suite’ value from ‘stable’ to ‘oldstable’等类似的提示,输入以下命令解决
sudo apt-get --allow-releaseinfo-change update
sudo apt-get update --allow-releaseinfo-changesudo apt-get upgrade -y
原创文章,作者:中国IPv6网,如若转载,请注明出处:https://www.ipv6s.com/soft/202307193514.html