problem: if the name of the DEBIAN distribution has changed (e.g. testing-version changes from “bullseye” to “bookworm”), aptitude denies the update procedure. It requests a manual command to proceed.
solution: execute the command apt-get update --allow-releaseinfo-change (it updates the file /etc/apt/sources.list). Afterwards it is possible to run the update.