Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Apt update issue #480

Closed
FMotalleb opened this issue Dec 3, 2024 · 0 comments
Closed

Apt update issue #480

FMotalleb opened this issue Dec 3, 2024 · 0 comments

Comments

@FMotalleb
Copy link
Contributor

This issue happened on my Ubuntu nobel servers
the fix is straightforward: adding signed-by=/etc/apt/keyrings/docker.asc to apt source file
Error:

Failed to update apt cache:
W:Updating from such a repository can't be done securely, and is therefore disabled by default.,
W:See apt-secure(8) manpage for repository creation and user configuration details.,
W:GPG error: http://nexus.local:8081/repository/docker-linux/ubuntu noble InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8,
E:The repository 'http://nexus.local:8081/repository/docker-linux/ubuntu noble InRelease' is not signed.

Fix:

# in vars
docker_apt_repository: "deb [arch={{ docker_apt_arch }}{{' signed-by=/etc/apt/keyrings/docker.asc' if add_repository_key is not failed}}] {{ docker_repo_url }}/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} {{ docker_apt_release_channel }}"
FMotalleb added a commit to FMotalleb/ansible-role-docker that referenced this issue Dec 3, 2024
geerlingguy added a commit that referenced this issue Dec 3, 2024
docs(apt-sign-key): addressing a fix for #480
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant