-
Notifications
You must be signed in to change notification settings - Fork 908
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
Duplicated apt sources/list #4691
Comments
Thanks, @simondeziel, for reporting this and making cloud-init better. I can confirm this is reproducible in noble. Those warnings are not hard errors and apt works correctly, but having two sources of config could lead to conflicts / unexpected behavior / hard apt errors in the future. In addition to that, the warnings could be a concern for users, so I think this is a bug that has to be fixed. One possible simple and safe way to solve this would be, if features.APT_DEB822_SOURCE_LIST_FILE and /etc/apt/source.list is present, then do work with the classic sources lists and emit a warning informing the user about the fact that deb822 style has not been used. Another way would be to parse the info from |
Ubuntu downstream bug: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2045086. |
This seems to be an artifact of the image build process. The file /etc/apt/sources.list predates when cloud-init is run.
|
I concur, |
Bug report
For Noble, cloud-init adds
/etc/apt/sources.list.d/ubuntu.sources
but those are are already defined in/etc/apt/sources.list
. This leads apt to emit many warnings about sources being duplicated.Steps to reproduce the problem
Environment details
23.4-0ubuntu1
Ubuntu Noble Numbat (development branch)
cloud-init logs
cloud-init.tar.gz
The text was updated successfully, but these errors were encountered: