On Sat 01 Feb 2025 at 15:29:13 (+0000), Andrew M.A. Cater wrote: > On Fri, Jan 31, 2025 at 11:00:25PM -0600, David Wright wrote: > > On Fri 31 Jan 2025 at 23:30:52 (+0000), Andrew M.A. Cater wrote: > > > On Fri, Jan 31, 2025 at 02:55:56PM +0900, Mailing List wrote: > > > > > > > > This failure occurs during the "Select and install software" stage. The > > > > root cause is an attempt to install security updates from the security > > > > network repository *even when the user selects the default "No" to > > > > using a > > > > network mirror*. > > > > > > > > Steps to Reproduce: > > > > > > > 1. Boot the Debian 11.11 DVD ISO on an Internet-connected PC > > > > 2. Proceed through the installation process. > > > > 3. When prompted "Use a network mirror?", select the default "No". > > > > 4. Continue with the installation. > > > > 5. The installation will fail at the "Select and install software" > > > > step > > > > with the aforementioned error. > > > > > > > > Expected Behavior: > > > > > > > > The installation should succeed whether the user uses the default "No" > > > > to > > > > using a network mirror or manually sets a network mirror to use. > > > > > Right: I've just run through three installs of Debian 11.11.0 from DVD1: > > The medium was retrieved from cdimage.debian.org/archive at > http://cdimage.debian.org/cdimage/archive/11.11.0/amd64/iso-dvd/ as > http://cdimage.debian.org/cdimage/archive/11.11.0/amd64/iso-dvd/debian-11.11.0-amd64-DVD-1.iso > > I made three attempts to install, as follows: > > 1. One text mode install, network connected > > 2. One text mode expert install, network connected > > 3. One text mode install, network disconnected. > > All of these were done in kvm/qemu with virt-manager. > > (That shouldn't make a difference: it's how we test point releases and it > is a known quantity for me.) > > In each case, the install was done without selecting a network mirror. > > I can reproduce the problem when the network is connected. > > The expert install shows a little more detail - I can see the install > running through installing the base install then through tasksel where > I leave GNOME selected and then it fails as software is installed. > > On 3 - no network - it works perfectly, so my supposition that if there is > no network connection then the install proceeds entirely from the DVD is and > runs to completion is probably correct. > > After the successful install is finished, then the /etc/apt/sources.list > file is as follows:
(Presumably you mean attempt 3.) > # deb cdrom:[Debian GNU/Linux 11.11.0 _Bullseye_ - Official amd64 DVD > Binary-1 20240831-14:01]/ bullseye contrib main > > deb cdrom:[Debian GNU/Linux 11.11.0 _Bullseye_ - Official amd64 DVD Binary-1 > 20240831-14:01]/ bullseye contrib main > > # Line commented out by installer because it failed to verify: > #deb http://security.debian.org/debian-security bullseye-security main contrib > # Line commented out by installer because it failed to verify: > #deb-src http://security.debian.org/debian-security bullseye-security main > contrib > > # bullseye-updates, to get updates before a point release is made; > # see > https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports > # A network mirror was not selected during install. The following entries > # are provided as examples, but you should amend them as appropriate > # for your mirror of choice. > # > # deb http://deb.debian.org/debian/ bullseye-updates main contrib > # deb-src http://deb.debian.org/debian/ bullseye-updates main contrib > > So the only source that remains uncommented is the DVD and the other entries > are there and commented out, ready for use if the hash signs are deleted. > > I'm not sure this is a bug per se: if what you want is a fully offline > install, then you have to make sure that the machine is fully offline. What interests me is what the sources list was after run 2, particularly this line: #deb http://security.debian.org/debian-security bullseye-security main contrib If commented out, how did the installer manage (in the OP) to log: Jan 31 05:35:42 in-target: Get:1 http://security.debian.org/debian-security bullseye-security InRelease [27.2 kB] If not commented, then I would call that a bug: it allows the installer to use a mirror when told not to. > If you want a networked install, then the assumptions made in the > installer are probably that you will want to install using the available > network for all appropriate updates. If you're connected to a network, but you tell a program not to use it, then going ahead and using it is as bad as other programs that "call home" without permission. And we all condemn that. As I said, I can't replicate the problem on bookworm, but I've only tested the netinst. I'll leave the DVD for you. :) > The pathological case is where you want some network updates but not others. > > The Debian installer > The Debian installer code has grown up over many years and is fairly > convoluted: I haven't looked at the underlying code at all. > > Since bookworm is now the subject of LTS from Freexian, maybe address any ↑↑↑↑↑↑↑↑ bullseye. > request for changes to them. It's almost certain that the bug won't be > fixed by addressing any fault in the medium - the debian-cd crew wouldn't > address this for a release that's now out of main Debian security support. > > I'll now go and see if I can reproduce this in Bookworm. If I can, then I'll > suggest it as a problem for a possible fix in the next point release though > I can't promise anything. Cheers, David.