mmdebstrap with non-amd64 ubuntu
Hello!
I'm running into a problem I'd like yall's help with. For some reason,
ubuntu uses a different archive url for its non-amd64 arches
(ports.ubuntu.com instead of archive.ubuntu.com) so I can't get
mmdebstrap (and thus sbuild --chroot-mode=unshare) to work right. I see
this:
$ mmdebstrap --arch=amd64,arm64 noble tst
...
I: automatically chosen mode: unshare
I: chroot architecture amd64 is equal to the host's architecture
I: finding correct signed-by value...
I: automatically chosen format: directory
I: running apt-get update...
Get:1 http://archive.ubuntu.com/ubuntu noble InRelease [256 kB]
Get:2 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Ign:3 http://security.ubuntu.com/ubuntu noble-security/main arm64 Packages
Get:4 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:5 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [1270 kB]
Ign:6 http://archive.ubuntu.com/ubuntu noble/main arm64 Packages
Get:7 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages [1401 kB]
Ign:8 http://archive.ubuntu.com/ubuntu noble-updates/main arm64 Packages
Get:9 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [1573 kB]
Err:3 http://security.ubuntu.com/ubuntu noble-security/main arm64 Packages
404 Not Found [IP: 185.125.190.82 80]
Ign:3 http://security.ubuntu.com/ubuntu noble-security/main arm64 Packages
Err:3 http://security.ubuntu.com/ubuntu noble-security/main arm64 Packages
404 Not Found [IP: 185.125.190.82 80]
Ign:3 http://security.ubuntu.com/ubuntu noble-security/main arm64 Packages
Err:3 http://security.ubuntu.com/ubuntu noble-security/main arm64 Packages
404 Not Found [IP: 185.125.190.82 80]
Ign:6 http://archive.ubuntu.com/ubuntu noble/main arm64 Packages
Ign:8 http://archive.ubuntu.com/ubuntu noble-updates/main arm64 Packages
Ign:6 http://archive.ubuntu.com/ubuntu noble/main arm64 Packages
Ign:8 http://archive.ubuntu.com/ubuntu noble-updates/main arm64 Packages
Ign:6 http://archive.ubuntu.com/ubuntu noble/main arm64 Packages
Ign:8 http://archive.ubuntu.com/ubuntu noble-updates/main arm64 Packages
Ign:6 http://archive.ubuntu.com/ubuntu noble/main arm64 Packages
Ign:8 http://archive.ubuntu.com/ubuntu noble-updates/main arm64 Packages
Err:6 http://archive.ubuntu.com/ubuntu noble/main arm64 Packages
404 Not Found [IP: 185.125.190.81 80]
Err:8 http://archive.ubuntu.com/ubuntu noble-updates/main arm64 Packages
404 Not Found [IP: 185.125.190.81 80]
Fetched 4753 kB in 4s (1225 kB/s)
...
The logic that deals with the mirror URLs is apparently in
/usr/share/debootstrap/scripts/gutsy
And the sources.list that ends up being used is:
deb [signed-by="/usr/share/keyrings/ubuntu-archive-keyring.gpg"] http://archive.ubuntu.com/ubuntu noble main
deb [signed-by="/usr/share/keyrings/ubuntu-archive-keyring.gpg"] http://archive.ubuntu.com/ubuntu noble-updates main
deb [signed-by="/usr/share/keyrings/ubuntu-archive-keyring.gpg"] http://security.ubuntu.com/ubuntu noble-security main
I'm sure this is a known issue. Suggestions about how to fix it?
Thanks
Reply to: