Debian10更新源经常出问题,一键切换回官方源

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
Last modification:September 14, 2021
If you think my article is useful to you, please feel free to appreciate