You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As called out in #436 there's been some recent changes to GPG key locations and apt config. Additionally last year the filename for the apt config was changed to docker.list in #369.
The change to the GPG key location did cause some backwards compatibility issues that were addressed in #461 but it appears there are still some knock ons for longer running systems, specifically ones that ran on versions of the role before the name change due to the way Ansible's apt_repository works.
Specifically, while the file name is changed if the apt config already exists apt_repository appears to leave it be. This in turn means running on such a system results in the following config:
apt funny enough accepts this config, albeit with multiple configured multiple times warnings. Note that there's two entries here as the original GPG config was added previously.
The problem is when the config has been subsequently changed as what happened recently with the GPG path change. In this case apt_repository then detects a change and attempts to update the config but in the new file location as it's configured. This creates the following config as a result.
E: Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/ubuntu/ focal: /etc/apt/trusted.gpg.d/docker.asc !=
E: The list of sources could not be read.
For more graceful handling extending #461 to handle all previous versions of the file may be the best approach here for older users?
The text was updated successfully, but these errors were encountered:
As called out in #436 there's been some recent changes to GPG key locations and apt config. Additionally last year the filename for the apt config was changed to
docker.list
in #369.The change to the GPG key location did cause some backwards compatibility issues that were addressed in #461 but it appears there are still some knock ons for longer running systems, specifically ones that ran on versions of the role before the name change due to the way Ansible's
apt_repository
works.Specifically, while the file name is changed if the apt config already exists
apt_repository
appears to leave it be. This in turn means running on such a system results in the following config:apt
funny enough accepts this config, albeit with multipleconfigured multiple times
warnings. Note that there's two entries here as the original GPG config was added previously.The problem is when the config has been subsequently changed as what happened recently with the GPG path change. In this case
apt_repository
then detects a change and attempts to update the config but in the new file location as it's configured. This creates the following config as a result.apt
does not accept this:For more graceful handling extending #461 to handle all previous versions of the file may be the best approach here for older users?
The text was updated successfully, but these errors were encountered: