This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details

Hi,

I often see the following message when updating debian based server packages : This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

root@raspberrypi:~# apt-get update
Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Reading package lists... Done
E: Repository 'http://raspbian.raspberrypi.org/raspbian 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://archive.raspberrypi.org/debian buster InRelease' changed its 'Suite' value from 'testing' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

 

This message comes from the fact that there is already a new stable version of the operating system, and the one we are currently up to is already called “old-stable”.

Due to this error we cannot update the packages and 404 returns us.

The problem is solved by typing:

apt-get update --allow-releaseinfo-change

That’s it!