When deploying Ubuntu 24.04 with MAAS, the contents of the repository are written to the following two files.
The MAAS that runs at my hand is version 3.5.7.
/etc/apt/sources.list
The apt line set in MAAS is written here
/etc/apt/sources.list.d/ubuntu.sources
This is the default of Ubuntu (for this reason, it may be connected to a repository that is not intended by the administrator)
Will this problem be fixed in future MAAS versions?
@ytooyama-virtualtech , what is the symptom that alerted you to this problem?
If you use the apt command, it will connect to archives.ubuntu.com and my mirror server.
Because it works like this, we edit and use one of the files after deploying using MAAS.
I thought there was a good way not to do this manual work, so I asked here.
/etc/apt/sources.list
http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu #The mirror in the My company
/etc/apt/sources.list.d/ubuntu.sources
archives.ubuntu.com #default
~$ sudo apt update
Hit:1 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-security InRelease
Hit:4 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-backports InRelease
Get:5 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Get:6 http://archive.ubuntu.com/ubuntu noble InRelease [256 kB]
Ign:7 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble/universe Translation-en
Ign:8 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble/multiverse Translation-en
Ign:9 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble/main Translation-en
Ign:10 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble/restricted Translation-en
Get:7 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble/universe Translation-en [5982 kB]
Get:11 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:8 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble/multiverse Translation-en [118 kB]
Get:9 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble/main Translation-en [513 kB]
Get:10 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble/restricted Translation-en [18.7 kB]
Ign:12 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-updates/universe Translation-en
Ign:13 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-updates/multiverse Translation-en
Ign:14 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-updates/main Translation-en
Ign:15 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-updates/restricted Translation-en
Get:12 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-updates/universe Translation-en [297 kB]
Get:13 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-updates/multiverse Translation-en [6772 B]
Get:14 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-updates/main Translation-en [272 kB]
Get:15 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-updates/restricted Translation-en [399 kB]
Ign:16 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-security/universe Translation-en
Ign:17 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-security/multiverse Translation-en
Ign:18 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-security/main Translation-en
Ign:19 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-security/restricted Translation-en
Get:16 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-security/universe Translation-en [195 kB]
Get:17 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-security/multiverse Translation-en [4288 B]
Get:18 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-security/main Translation-en [190 kB]
Get:19 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-security/restricted Translation-en [377 kB]
Get:20 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
Ign:21 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-backports/universe Translation-en
Ign:22 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-backports/main Translation-en
Get:21 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-backports/universe Translation-en [17.4 kB]
Get:22 http://172.17.1.12/apt-mirror/mirror/ja.archive.ubuntu.com/ubuntu noble-backports/main Translation-en [9152 B]
Get:23 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [1106 kB]
Get:24 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages [1401 kB]
Get:25 http://security.ubuntu.com/ubuntu noble-security/main Translation-en [190 kB]
Get:26 http://archive.ubuntu.com/ubuntu noble/main Translation-en [513 kB]
Get:27 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [21.5 kB]
Get:28 http://archive.ubuntu.com/ubuntu noble/main amd64 Components [464 kB]
Get:29 http://security.ubuntu.com/ubuntu noble-security/main amd64 c-n-f Metadata [8708 B]
Get:30 http://archive.ubuntu.com/ubuntu noble/main amd64 c-n-f Metadata [30.5 kB]
Get:31 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [881 kB]
Get:32 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages [15.0 MB]
Get:33 http://security.ubuntu.com/ubuntu noble-security/universe Translation-en [195 kB]
Get:34 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Components [52.3 kB]
Get:35 http://security.ubuntu.com/ubuntu noble-security/universe amd64 c-n-f Metadata [18.0 kB]
Get:36 http://archive.ubuntu.com/ubuntu noble/universe Translation-en [5982 kB]
Get:37 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [1685 kB]
Get:38 http://archive.ubuntu.com/ubuntu noble/universe amd64 Components [3871 kB]
Get:39 http://security.ubuntu.com/ubuntu noble-security/restricted Translation-en [377 kB]
Get:40 http://archive.ubuntu.com/ubuntu noble/universe amd64 c-n-f Metadata [301 kB]
Get:41 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Components [212 B]
Get:42 http://archive.ubuntu.com/ubuntu noble/restricted amd64 Packages [93.9 kB]
Get:43 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 c-n-f Metadata [468 B]
Get:44 http://archive.ubuntu.com/ubuntu noble/restricted Translation-en [18.7 kB]
Get:45 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Packages [18.5 kB]
Get:46 http://archive.ubuntu.com/ubuntu noble/restricted amd64 c-n-f Metadata [416 B]
Get:47 http://security.ubuntu.com/ubuntu noble-security/multiverse Translation-en [4288 B]
Get:48 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 Packages [269 kB]
Get:49 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Components [212 B]
Get:50 http://archive.ubuntu.com/ubuntu noble/multiverse Translation-en [118 kB]
Get:51 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 c-n-f Metadata [380 B]
Get:52 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 Components [35.0 kB]
Get:53 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 c-n-f Metadata [8328 B]
Get:54 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [1379 kB]
Get:55 http://archive.ubuntu.com/ubuntu noble-updates/main Translation-en [272 kB]
Get:56 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Components [175 kB]
Get:57 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 c-n-f Metadata [14.9 kB]
Get:58 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1473 kB]
Get:59 http://archive.ubuntu.com/ubuntu noble-updates/universe Translation-en [297 kB]
Get:60 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Components [377 kB]
Get:61 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 c-n-f Metadata [30.5 kB]
Get:62 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [1785 kB]
Get:63 http://archive.ubuntu.com/ubuntu noble-updates/restricted Translation-en [399 kB]
Get:64 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Components [212 B]
Get:65 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 c-n-f Metadata [492 B]
Get:66 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Packages [33.2 kB]
Get:67 http://archive.ubuntu.com/ubuntu noble-updates/multiverse Translation-en [6772 B]
Get:68 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Components [940 B]
Get:69 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 c-n-f Metadata [592 B]
Get:70 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 Packages [39.9 kB]
Get:71 http://archive.ubuntu.com/ubuntu noble-backports/main Translation-en [9152 B]
Get:72 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 Components [7076 B]
Get:73 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 c-n-f Metadata [272 B]
Get:74 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Packages [30.2 kB]
Get:75 http://archive.ubuntu.com/ubuntu noble-backports/universe Translation-en [17.4 kB]
Get:76 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Components [19.2 kB]
Get:77 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 c-n-f Metadata [1304 B]
Get:78 http://archive.ubuntu.com/ubuntu noble-backports/restricted amd64 Components [216 B]
Get:79 http://archive.ubuntu.com/ubuntu noble-backports/restricted amd64 c-n-f Metadata [116 B]
Get:80 http://archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 Components [212 B]
Get:81 http://archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 c-n-f Metadata [116 B]
Fetched 48.1 MB in 8s (6009 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
Hi @ytooyama-virtualtech
There is already a bug report about it: Bug #2093303 " Repositories are configured multiple times” : Bugs : MAAS . It is triaged and targeted to 3.7.x series. That means that a fix will land with one of the upcoming 3.7.x releases, but after 3.7.0.
1 Like
system
Closed
3 September 2025 07:36
5
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.