deb822 sources are not supported (was: cannot create a local noble lxd runner)

Bug #2052639 reported by Simon Chopin
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Fix Released
Undecided
Nick Rosbrook

Bug Description

Hi there,

On current mantic, I cannot use autopkgtest-build-lxd to create a noble LXD runner:

$ autopkgtest-build-lxd ubuntu-daily:noble
Detected local apt proxy, using http://10.235.222.1:3142 as container proxy
Creating autopkgtest-prepare-nDq
Starting autopkgtest-prepare-nDq
Created symlink /<email address hidden> → /dev/null.
Container finished booting. Distribution Ubuntu, release noble, architecture amd64
Running setup script /usr/share/autopkgtest/setup-commands/setup-testbed...
awk: fatal: cannot open file `/etc/apt/sources.list' for reading: No such file or directory
sh: Attempting to set up Debian/Ubuntu apt sources automatically
Failed to auto-detect apt mirror; set $MIRROR explicitly

I'm guessing this is related to deb822?

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: autopkgtest 5.28ubuntu1 [modified: usr/bin/autopkgtest-build-lxd]
ProcVersionSignature: Ubuntu 6.5.0-15.15-generic 6.5.3
Uname: Linux 6.5.0-15-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: GNOME
Date: Wed Feb 7 15:33:18 2024
InstallationDate: Installed on 2021-07-05 (947 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
PackageArchitecture: all
ProcEnviron:
 LANG=fr_FR.UTF-8
 PATH=(custom, no user)
 SHELL=/usr/bin/zsh
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: autopkgtest
UpgradeStatus: Upgraded to mantic on 2023-09-13 (147 days ago)

Revision history for this message
Simon Chopin (schopin) wrote :
Revision history for this message
Simon Chopin (schopin) wrote :

For the record: since apparently I had some kind of local modification of usr/bin/autopkgtest-build-lxd I tried after reinstalling the package, to similar results. (and I can't remember what my modifications were...)

Revision history for this message
Paul Gevers (paul-climbing) wrote :

autopkgtest doesn't support deb822 at all. It requires lots of changes.

Revision history for this message
Nick Rosbrook (enr0n) wrote :

FWIW I am currently working on adding deb822 support to autopkgtest and will open the PR soon.

Paride Legovini (paride)
Changed in autopkgtest (Ubuntu):
status: New → Confirmed
Revision history for this message
Paride Legovini (paride) wrote (last edit ):
Revision history for this message
Dominik Viererbe (dviererbe) wrote :

autopkgtest-build-lxd works fine on my mantic system, but I have a related issue where I can not use `--apt-pocket proposed` flag with noble images, because noble images no longer have an /etc/apt/sources.list file.

@@@@@@@@@@@@@@@@@@@@ test bed setup
ERROR: "sh -ec
    sed -rn 's/^(deb|deb-src) +(\[.*\] *)?((http|https|file):[^ ]*) +([^ -]+) +(.*)$/\1 \2\3 \5-proposed \6/p' \
        /etc/apt/sources.list `ls /etc/apt/sources.list.d/*.list 2>/dev/null|| true` > \
        /etc/apt/sources.list.d/proposed.list
    for retry in 1 2 3; do
        apt-get --no-list-cleanup \
                -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/proposed.list \
                -o Dir::Etc::sourceparts=/dev/null \
                update 2>&1 && break || \
                if [ $retry = 3 ] ; then
                    return 1
                else
                    sleep 15
                fi
    done
    " failed with stderr "sed: can't read /etc/apt/sources.list: No such file or directory

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

As workaround using MIRROR=http://archive.ubuntu.com/ubuntu is enough to get things setup.

Indeed, it doesn't work fine with apt-cacher-ng though.

Paride Legovini (paride)
Changed in autopkgtest (Ubuntu):
status: Confirmed → In Progress
Paride Legovini (paride)
summary: - cannot create a local noble lxd runner
+ deb822 sources are not supported (was: cannot create a local noble lxd
+ runner)
Changed in autopkgtest (Ubuntu):
assignee: nobody → Nick Rosbrook (enr0n)
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopkgtest - 5.34ubuntu2

---------------
autopkgtest (5.34ubuntu2) noble; urgency=medium

  [ Paride Legovini ]
  * d/t/unshare: skip test (exit 77) if simple unshare command fails
  * gitlab-ci: do not include the salsa pipeline

  [ Florent 'Skia' Jacquet ]
  * tools/a-b-lxd: make sure the reboot happens when needed

 -- Paride Legovini <email address hidden> Wed, 17 Apr 2024 23:39:55 +0200

Changed in autopkgtest (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.