Debian apt-get update更新报错 E: Repository 的解决方法

今天使用paypal赠送的10美元优惠撸了一台racknerd黑五768 MB KVM VPS套餐。安装Debian10的系统,一般Debian新系统都是没有安装curl命令的,因此在安装的时候提示错误,具体报错如下:

root@racknerd-742af4:~# apt-get update -y && apt-get install curl -y
Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
Reading package lists... Done       
E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
N: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Version' value from '10.1' to '10.13'
E: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
E: Repository 'http://deb.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

通过谷歌搜索可通过执行下方命令解决

apt-get update --allow-releaseinfo-change     //root账户
sudo apt-get update --allow-releaseinfo-change     //非root账户

还有报错请重复执行直到没有报错。
例:

root@racknerd-742af4:~# apt-get update --allow-releaseinfo-change
Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
Get:4 http://security.debian.org/debian-security buster/updates/main Sources [278 kB]
Get:5 http://security.debian.org/debian-security buster/updates/main amd64 Packages [402 kB]
Get:6 http://security.debian.org/debian-security buster/updates/main Translation-en [215 kB]
Get:7 http://deb.debian.org/debian buster/main Sources [7,852 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 Packages [7,909 kB]
Get:9 http://deb.debian.org/debian buster/main Translation-en [5,969 kB]
Get:10 http://deb.debian.org/debian buster-updates/main Sources.diff/Index [12.1 kB]
Ign:10 http://deb.debian.org/debian buster-updates/main Sources.diff/Index
Get:11 http://deb.debian.org/debian buster-updates/main amd64 Packages.diff/Index [12.1 kB]
Ign:11 http://deb.debian.org/debian buster-updates/main amd64 Packages.diff/Index
Get:12 http://deb.debian.org/debian buster-updates/main Translation-en.diff/Index [6,148 B]
Ign:12 http://deb.debian.org/debian buster-updates/main Translation-en.diff/Index
Get:13 http://deb.debian.org/debian buster-updates/main Sources [4,616 B]
Get:14 http://deb.debian.org/debian buster-updates/main amd64 Packages [8,788 B]
Get:15 http://deb.debian.org/debian buster-updates/main Translation-en [6,915 B]
Fetched 22.7 MB in 8s (2,896 kB/s)                                                                                                                 
Reading package lists... Done
N: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Version' value from '10.1' to '10.13'
N: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: Repository 'http://deb.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
root@racknerd-742af4:~# apt-get update --allow-releaseinfo-change
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Reading package lists... Done

By 行政