-
Notifications
You must be signed in to change notification settings - Fork 883
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
apt sources changes ignored while installing the packages #5707
Comments
Hello! Thank you for filing a bug. Would you be able to provide the cloud-config you used or at least the relevant portion of the cloud config? |
Thank you for a quick reply. Attaching the failing part |
Pasting the contents here for easier visibility: #cloud-config
apt:
sources:
docker.list:
source: deb [arch=amd64] https://download.docker.com/linux/ubuntu $RELEASE stable
keyid: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
package_update: true
package_upgrade: true
packages:
- curl
- ca-certificates
- docker-ce
- docker-ce-cli
- containerd.io
- docker-buildx-plugin
- docker-compose-plugin |
Hey @Unb0rn, I ran this locally and I was unable to reproduce the issue locally using your provided cloud-config on both 22.04 and 24.04 LXD containers. Would you mind explaining what you meant by "Logging in to the machine and installing the packages works fine (the repo is added correctly)". My understanding of this is that you launched the instance, waited for cloud-init to finish, then ssh'ed into the instance and ran It is very strange to see that your cloud-init version is 23.X when you are on noble (24.04), which should be running cloud-init 24.X. Do you have any insight into why this is the case? If not, no worries. Due to conflicting dependencies, I am unable to install cloud-init 23.X on an ubuntu 24.04 container so I am unable to test that locally to see if that is the issue. Given that the cloud-init version installed is not compatible and not intended to be used on Noble, this falls outside the bounds of expected use cases for cloud-init. But with that being said, we would still like to know more about Yandex Cloud and do our best to support various cloud platforms where reasonable. So any context you can provided is incredibly valuable. Also, would you mind providing the result of running Thanks in advance! :D |
I also can confirm on latest ubuntu image I see the proper ordering which looks to write /etc/apt sources files, call apt-get update and apt-get dist-upgrade, and finally install the requested packages.
|
You're absolutely right! |
As this is not reproducible from our side and the reporter is going to collect more info about the issue, I am going to mark it as incomplete in the meantime. |
Bug report
I'm trying to install docker (almost as per official instructions)
But after adding the docker repo,
package_update
seems to ignore the changes to repos config and installing packages likedocker-ce-cli
results in:I found almost the same issue on severfault that has never been resolved. Is this a bug? Is there any known workaround?
Steps to reproduce the problem
Environment details
cloud-init logs
cloud-init.tar.gz
The text was updated successfully, but these errors were encountered: