[lubuntu-devel] [Bug 2138456] [NEW] Third-party repositories may be synced with when running before_bootloader_context.conf
Aaron Rainbolt
2138456 at bugs.launchpad.net
Thu Jan 15 16:00:26 UTC 2026
Public bug reported:
The `before_bootloader_context.conf` needs to update the live system's
sources from the cdrom repo and the cdrom repo **only** in order to
install grub-efi and shim-signed during the installation process. The
file attempts to make sure only the cdrom repo is sync'd from by
removing all lines that start with `deb http` from /etc/apt/sources.list
first, but this fails on OEM images and remix ISOs that add third-party
repos under /etc/apt/sources.list.d. These repos will still be sync'd
from, which can result in an installation crash if one of the repos in
/etc/apt/sources.list.d is not accessible at installation time.
One easy fix is to simply add `-o Dir::Etc::sourceparts=-` to the `apt-
get update` line. That is unlikely to work when the ISO itself switches
to using deb822 sources files though, so a better long-term solution is
necessary.
** Affects: calamares-settings-ubuntu (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Lubuntu
Packages Team, which is subscribed to calamares-settings-ubuntu in
Ubuntu.
https://bugs.launchpad.net/bugs/2138456
Title:
Third-party repositories may be synced with when running
before_bootloader_context.conf
Status in calamares-settings-ubuntu package in Ubuntu:
New
Bug description:
The `before_bootloader_context.conf` needs to update the live system's
sources from the cdrom repo and the cdrom repo **only** in order to
install grub-efi and shim-signed during the installation process. The
file attempts to make sure only the cdrom repo is sync'd from by
removing all lines that start with `deb http` from
/etc/apt/sources.list first, but this fails on OEM images and remix
ISOs that add third-party repos under /etc/apt/sources.list.d. These
repos will still be sync'd from, which can result in an installation
crash if one of the repos in /etc/apt/sources.list.d is not accessible
at installation time.
One easy fix is to simply add `-o Dir::Etc::sourceparts=-` to the
`apt-get update` line. That is unlikely to work when the ISO itself
switches to using deb822 sources files though, so a better long-term
solution is necessary.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/calamares-settings-ubuntu/+bug/2138456/+subscriptions
More information about the Lubuntu-devel
mailing list