-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to install packages when cloud-init installs gpg to dearmor key #5223
Comments
This is required to configure apt when dependency is not installed. Fixes canonicalGH-5223
@AKorezin Thanks for reporting, and great analysis. I don't see how multiple |
@AKorezin I have a branch that might should fix this, if you'd like to test it. |
This is required to configure apt when dependency is not installed. Fixes canonicalGH-5223
Hello @holmanb.
I've built apt-get update
apt-get install make devscripts python3-yaml python3-jinja2 debhelper dh-python python3-configobj python3-debconf python3-jsonpatch python3-jsonschema python3-oauthlib python3-serial python3-passlib python3-pytest python3-pytest-cov python3-pytest-mock python3-responses python3-setuptools
git clone https://github.com/canonical/cloud-init
cd cloud-init
git fetch origin pull/5230/head:apt
git switch apt
make deb |
This is required to configure apt when a dependency is not installed. Co-authored-by: James Falcon <james.falcon@canonical.com> Fixes canonicalGH-5223
27a5398 works for me. |
Thanks for testing! I need to write up a unittest before it can merge. It might be a week or two before that happens, but it should happen soon. |
This is required to configure apt when dependency is not installed. Fixes GH-5223 Co-authored-by: James Falcon <james.falcon@canonical.com>
Bug report
If
gpg
is missing and cloud-init tries to install it to dearmor gpg public key, it won't update apt cache, thus breaking package installation.I noticed this problem while testing cloud images of ubuntu:24.04. It doesn't have gpg by default, so cloud-init installs it. After adding all sources, it tries to call
apt-get update
, buthelpers.py[DEBUG]: update-sources already ran (freq=once-per-instance)
.The problem could be reproduced on ubuntu:22.04 by removing
gpg
usingbootcmd
.Steps to reproduce the problem
user-data
Environment details
cloud-init logs
cloud-init.log
The text was updated successfully, but these errors were encountered: