idealista/java_role

[BUG] Debian Buster based docker images issues

frantsao opened this issue · 0 comments

Description

After releasing Debian 11, apt update requires explicit approve of changes in repo configurations:

Steps to Reproduce

  1. run apt update

Expected behavior:
apt updates the package database

Actual behavior:
(output from Ansible)
'Failed to update apt cache: W: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 InRelease'' changed its ''Suite'' value from ''stable'' to ''oldstable'', W: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'', W: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'''

Reproduces how often:
Always.

Environment

  • The release version/s you are using:
  • OS: Debian Buster

Additional Information

Workaround: you can automate the change running apt update with this option:
apt-get update --allow-releaseinfo-change -y