On 07/04/2025 at 23:04, Holger Wansing wrote:
Am 7. April 2025 20:23:09 MESZ schrieb Pascal Hambourg <pas...@plouf.fr.eu.org>:
Still rely on an installation image as only source will not work for the long
future.
You will for sure end up with the situation, where a package you need is not on
the CD/DVD image, and then you have to switch to a debian online mirror anyway.
Am I right with this, or do I miss something?
It sounds like you are missing BW's point. Package update is not
affected. Let me try to detail a bit more.
After installing Debian from a DVD installation image and a network
mirror, /etc/apt/sources.lists looks like this:
----
deb cdrom:[Debian GNU/Linux 12.10.0 "Bookworm" - Official amd64 DVD with
firmware 20250315-10:09] bookworm contrib main non-free-firmware
deb http://deb.debian.org/debian/ bookworm main contrib non-free-firmware
----
With this configuration, if the candidate version of a package is
present in the installation media, then apt requires to fetch it from an
optical drive. If the original installation DVD is inserted, then apt
successfully fetches the package from it. Otherwise apt endlessly asks
for the DVD:
----
Media change: please insert the disc labeled
'Debian GNU/Linux 12.10.0 "Bookworm" - Official amd64 DVD with
firmware 20250315-10:09'
in the drive '/media/cdrom/' and press [Enter]
----
The user must comment out the "cdrom" entry in /etc/apt/sources.list to
prevent apt from asking to insert the DVD.
Some suggestions to avoid this:
- disable all "cdrom" sources at the end of the installation, not only
incomplete ones (netinst, live...)
- disable "cdrom" sources if the installation device is not an optical
disc (USB flash drive, loop-mounted ISO file...)
- prompt the user whether to keep or disable "cdrom" sources
- put "cdrom" sources after network sources in /etc/apt/sources.list