I deployed ubuntu 24.04 image to a server. The image is MAAS official image.
As a result, the below warning occurred when I ran “apt update” on the deployed server.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/ubuntu.sources:1
(And, there were similar warnings about other repositories. )
I confirmed /etc/apt/sources.list and /etc/apt/sources.list.d/ubuntu.sources. As a result, same repository was defined.
I couldn’t understand why this multiple definition occurs.
/etc/apt/sources.list contained in the following MAAS images is blank.
When the value of sources_list does not appear to be deb822 format, or stable distribution releases disable deb822 format, /etc/apt/sources.list will be written instead.
MAAS sources are not in deb822, but Noble defaults to this format, so the end result is that cloud-init creates new files instead of replacing the image source configuration