Unable to change base repository

Hello,

I’m using MAAS 3.6 installed via snap and I’m experiencing an issue with changing the base repository URL. I can successfully change the URL in the settings, and the system does use my custom repositories that I’ve added, but it also continues to include the default ubuntu.archive repository during commissioning and installation. This prevents successful installation since I’m trying to use only my custom repositories.

version: 3.6.0-17541-g.561fe1a3e

My repos:

[
    {
        "name": "Ubuntu extra architectures",
        "url": "http://ports.ubuntu.com/ubuntu-ports",
        "distributions": [],
        "disabled_pockets": [
            "updates",
            "security",
            "backports"
        ],
        "disabled_components": [
            "restricted",
            "universe",
            "multiverse"
        ],
        "disable_sources": true,
        "components": [],
        "arches": [
            "arm64"
        ],
        "key": "",
        "enabled": true,
        "id": 2,
        "resource_uri": "/MAAS/api/2.0/package-repositories/2/"
    },
    {
        "name": "UB24",
        "url": "http://<My_repo_URL>:8000/public",
        "distributions": [
            "noble-prod",
            "noble-updates-prod",
            "noble-security-prod"
        ],
        "disabled_pockets": [],
        "disabled_components": [],
        "disable_sources": true,
        "components": [
            "main"
        ],
        "arches": [
            "i386",
            "amd64"
        ],
        "key": "<KEY>",
        "enabled": true,
        "id": 3,
        "resource_uri": "/MAAS/api/2.0/package-repositories/3/"
    },
    {
        "name": "UB22",
        "url": "http://<My_repo_URL>:8000/public",
        "distributions": [
            "jammy-prod",
            "jammy-updates-prod",
            "jammy-security-prod"
        ],
        "disabled_pockets": [],
        "disabled_components": [],
        "disable_sources": true,
        "components": [
            "main"
        ],
        "arches": [
            "i386",
            "amd64"
        ],
        "key": "<KEY>",
        "enabled": true,
        "id": 4,
        "resource_uri": "/MAAS/api/2.0/package-repositories/4/"
    },
    {
        "name": "Ubuntu archive",
        "url": "http://<My_repo_URL>:8000/public",
        "distributions": [],
        "disabled_pockets": [
            "updates",
            "security",
            "backports"
        ],
        "disabled_components": [
            "restricted",
            "universe",
            "multiverse"
        ],
        "disable_sources": true,
        "components": [],
        "arches": [
            "amd64"
        ],
        "key": "<KEY>",
        "enabled": true,
        "id": 1,
        "resource_uri": "/MAAS/api/2.0/package-repositories/1/"
    }
]

Commissioning error:

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libevent-2.1-7t64 libsnmp-base libsnmp40t64
Suggested packages:
  snmp-mibs-downloader snmpd
The following NEW packages will be installed:
  libevent-2.1-7t64 libsnmp-base libsnmp40t64 lldpd
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 1617 kB of archives.
After this operation, 5458 kB of additional disk space will be used.
Get:1 http://<My_repo_URL>:8000/public noble/main amd64 libevent-2.1-7t64 amd64 2.1.12-stable-9ubuntu2 [145 kB]
Get:2 http://<My_repo_URL>:8000/public noble/main amd64 lldpd amd64 1.0.18-1build3 [200 kB]
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libsnmp-base all 5.9.4+dfsg-1.1ubuntu3.1
Ign:4 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libsnmp40t64 amd64 5.9.4+dfsg-1.1ubuntu3.1
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libsnmp-base all 5.9.4+dfsg-1.1ubuntu3.1
Ign:4 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libsnmp40t64 amd64 5.9.4+dfsg-1.1ubuntu3.1
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libsnmp-base all 5.9.4+dfsg-1.1ubuntu3.1
Ign:4 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libsnmp40t64 amd64 5.9.4+dfsg-1.1ubuntu3.1
Err:3 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libsnmp-base all 5.9.4+dfsg-1.1ubuntu3.1
  Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libsnmp40t64 amd64 5.9.4+dfsg-1.1ubuntu3.1
  Temporary failure resolving 'archive.ubuntu.com'
Fetched 345 kB in 7s (47.5 kB/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/n/net-snmp/libsnmp-base_5.9.4%2bdfsg-1.1ubuntu3.1_all.deb  Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/n/net-snmp/libsnmp40t64_5.9.4%2bdfsg-1.1ubuntu3.1_amd64.deb  Temporary failure resolving 'archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I’ve been able to solve the commissioning error with a script that deletes the file /etc/apt/sources.list.d/ubuntu.sources at the beginning of commissioning, but I don’t know how to fix the same issue during the start of the installation process.

Is there a way to completely disable or replace the default ubuntu.archive repository in the snap version of MAAS 3.6

Thank you!

Hey there, please open a bug on launchpad Bugs : MAAS