可能你在使用Debian时,安装或更新命令会出现和我一样的情况:

~# apt-get -y update
Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:2 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:3 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Reading package lists… Done
N: Repository ‘http://deb.debian.org/debian buster InRelease’ changed its ‘Version’ value from ‘10.1’ to ‘10.12’
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.
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:必须明确接受此存储库的更新才能应用此存储库。有关详细信息,请参阅 apt-secure(8) 联机帮助页。

 

解决办法:

输入

apt-get update --allow-releaseinfo-change

最后再次执行更新/你想安装的命令

如:

apt-get -y update && apt-get -y install sudo vim wget curl unzip

当然你自己可以在后面加上你需要的装的东西。