Here is *a* fix/workaround that I'd expect to work for existing releases
and focal

$ diff -u /etc/schroot/setup.d/90apt-sources.dist 
/etc/schroot/setup.d/90apt-sources
--- /etc/schroot/setup.d/90apt-sources.dist     2020-04-17 14:26:50.510749407 
-0400
+++ /etc/schroot/setup.d/90apt-sources  2020-04-17 14:27:40.814787763 -0400
@@ -113,6 +113,13 @@
         APT_COMPONENTS="$comps"
     fi
 
+    # LAUNCHPAD_SERIES comes from schroot config 'launchpad.series'
+    if [ -n "$LAUNCHPAD_SERIES" ] &&
+        [ -n "$APT_COMPONENTS" -o -z "$APT_POCKETS" ]; then
+        echo "Setting one-line sources.list (LP: #1873507)"
+        echo "deb http://archive.ubuntu.com/ubuntu/ ${LAUNCHPAD_SERIES} main 
restricted universe multiverse" > "$sources"
+    fi
+
     if [ -n "$APT_POCKETS" ]; then
         echo "setting apt pockets to 'release $APT_POCKETS' in sources.list"
         awk -v pockets="$APT_POCKETS" '

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1872163

Title:
  focal chroots broken due to change in sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbuild-launchpad-chroot/+bug/1872163/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to