#978729 ERROR build/debian-cd: E: The value 'unstable' is invalid for APT::Default-Release as such a release is not available in the sources when building buster image

#978729#5
Date:
2020-12-30 23:35:27 UTC
From:
To:
I'm trying to build a custom Buster image. The host system is a Debian
Sid/unstable. When I run the build right after "make image-tree" is invoked in
/usr/share/simple-cdd/tools/build/debian-cd

ERROR build/debian-cd: E: The value 'unstable' is invalid for APT::Default-Release as such a release is not available in the sources when building buster image

because my local apt.conf has the default value set to 'unstable'. But my local
APT configuration IMHO shouldn't be of any concern to simple-cdd or debian-cd.
So I have to edit this file to make it work. Maybe it should create a temporary
apt.conf setting APT::Default-Release to the value used for the --dist switch?

Regards, Daniel


- -- System Information:
Debian Release: bullseye/sid
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.9.0-5-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages simple-cdd depends on:
ii  dctrl-tools         2.24-3+b1
ii  debian-cd           3.1.31
ii  lsb-release         11.1.0
ii  python3             3.9.1-1
ii  python3-simple-cdd  0.6.7
ii  reprepro            5.3.0-1.1
ii  rsync               3.2.3-3
ii  wget                1.20.3-1+b3

Versions of packages simple-cdd recommends:
ii  dose-distcheck  5.0.1-15+b3

Versions of packages simple-cdd suggests:
ii  qemu-system                 1:5.2+dfsg-3
ii  qemu-system-x86 [qemu-kvm]  1:5.2+dfsg-3

- -- no debconf information
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEvu1N7VVEpMA+KD3HS80FZ8KW0F0FAl/tDr8ACgkQS80FZ8KW
0F3oDA//Zyaf+FluNKau1LSxbdKaZ9RS+a0NGNpfjavlydkAo2tUYv+6pJbPlAhM
AoPlI8mC/PFkyTVWaf8nvJ49CbeGyxmtE+qRqMkOlE/dwXXRuRo2oay7udfx5Ajy
q+Tbjjah1zCNgmwf8u8TwnLTero3eqrKX5aDuytNpfcqZRcMqhC7I2gqp4zws/us
0M4d9n2LF7cX559prr7l43QKLVjExxfY8dZmJJkc13N0PJWOdp1nNBJ73eL6Stau
XzcV6wSocSQEtAkHOpLVHqfgMb7jx+3E6HsiVKNNC2o5BANn/kDAl/SgB3nNUOtq
hy9nUL8ruZydb93g1b5SJh3WcHuyihBktsYUaDku3IIo87tBiDmYubmLtBdj875h
r3pI3wC3yAnNrnRbXnFgQla75UPj19c6uFC9ACKLunKBbXMKK8vWdBADu4h5tx8G
VHkoz8DIB5nPZJfjZor+GWgzgHp9alPCKbjnXaNUJWjpA4u3uV9As4Mgcd9UVhS+
ElkYDZtgy0G/LUasREtQC0WgEcakDVawxbm/ZEJ2cFwYcRj8cx/L1jini8EJzVmm
ktWbCToH3T7ZLV3WA1/IpUjNAv8pdywn2YJj/hv6HaI950ZqiUEMDkR83UoLFdKr
epAQDRYYC3Gh4KToMSqRpDONGUxZeGUnaX1LsSrNdizxtnT4gTU=
=iVtn
-----END PGP SIGNATURE-----

#978729#10
Date:
2021-02-05 03:37:15 UTC
From:
To:
Control: reassign 978729 debian-cd

Reassigning to debian-cd, as simple-cdd is just calling debian-cd's
"make image-tree".

It might be possible for simple-cdd to workaround this or provide hooks
to workaround it, but seems better to have debian-cd not depend on local
apt configuration...


live well,
  vagrant