wrong apt sources.list after plaintext install with canary image

Bug #2033109 reported by Steve Langasek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-desktop-installer
Invalid
Critical
Unassigned
livecd-rootfs (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

After install with the 20230825.2 canary image a classic install (no tpm fde) has a wrong /etc/apt/sources.list:

$ cat /mnt/1/etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu mantic main restricted
deb http://archive.ubuntu.com/ubuntu mantic-security main restricted
deb http://archive.ubuntu.com/ubuntu mantic-updates main restricted
$

The correct sources.list after install should be much more complete including annotations:

$ cat /mnt/2/etc/apt/sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu mantic main restricted
# deb-src http://archive.ubuntu.com/ubuntu mantic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu mantic-updates main restricted
# deb-src http://archive.ubuntu.com/ubuntu mantic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu mantic universe
# deb-src http://archive.ubuntu.com/ubuntu mantic universe
deb http://archive.ubuntu.com/ubuntu mantic-updates universe
# deb-src http://archive.ubuntu.com/ubuntu mantic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu mantic multiverse
# deb-src http://archive.ubuntu.com/ubuntu mantic multiverse
deb http://archive.ubuntu.com/ubuntu mantic-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu mantic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu mantic-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu mantic-backports main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu mantic-security main restricted
# deb-src http://archive.ubuntu.com/ubuntu mantic-security main restricted
deb http://archive.ubuntu.com/ubuntu mantic-security universe
# deb-src http://archive.ubuntu.com/ubuntu mantic-security universe
deb http://archive.ubuntu.com/ubuntu mantic-security multiverse
# deb-src http://archive.ubuntu.com/ubuntu mantic-security multiverse
$

Tags: fde

Related branches

Steve Langasek (vorlon)
tags: added: fde
Changed in ubuntu-desktop-installer:
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

The fix for this is to "touch config/universe-enabled" in the "canary)" section of the big switch in auto/config.

(Looking at the code, I think non-root layers are probably configured with universe enabled -- which isn't great!)

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 2033109] Re: wrong apt sources.list after plaintext install with canary image

On Sun, Aug 27, 2023 at 09:44:17PM -0000, Michael Hudson-Doyle wrote:
> (Looking at the code, I think non-root layers are probably configured
> with universe enabled -- which isn't great!)

FWIW I examined the canary image and didn't find any sources.list in the
upper layers.

--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer https://www.debian.org/
<email address hidden> <email address hidden>

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

> FWIW I examined the canary image and didn't find any sources.list in the
> upper layers.

Well sure the sources.list files should be identical between the layers in their final form on the ISO but lb's "chroot" steps should only have access to packages in main.

Steve Langasek (vorlon)
Changed in livecd-rootfs (Ubuntu):
status: New → Fix Committed
Changed in ubuntu-desktop-installer:
status: Triaged → Invalid
Changed in livecd-rootfs (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package livecd-rootfs - 23.10.26

---------------
livecd-rootfs (23.10.26) mantic; urgency=medium

  [ Łukasz 'sil2100' Zemczak ]
  * Update the enhanced-sb layer model to not preinstall the printing snaps,
    per changes to seeds. Live layer model not changed as it will go away
    soon per our staged changes.

  [ Michael Hudson-Doyle ]
  * Use a traditional seed.yaml style seed for the canary installer's live

 -- Łukasz 'sil2100' Zemczak <email address hidden> Mon, 28 Aug 2023 12:13:38 +0200

Changed in livecd-rootfs (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.