Re: Issue with preseeded install - cannot skip apt media scanning

Steve McIntyre <[email protected]>
Newsgroups gmane.linux.debian.devel.boot,gmane.linux.debian.devel.cd
Message-ID <[email protected]>
Hi Jerzy,

You might be better off asking on the debian-boot mailing list (in CC).

On Sat, Oct 22, 2022 at 04:50:20PM +0200, Jerzy Patraszewski wrote:
>Hi debian-wizards,
>I'm seeking your wisdom, since I'm almost banging my head against the wall... 
>Any ideas how to get rid of the described error and achieve fully unattended 
>Debian install?
>Thanks in advance, any suggestion will be much appreciated!
>Jerzy 
>
>The issue:
>While using preseed file, regardless of any setting, debian installer (dialog)
>jumps off to interactive mode on error: "Apt configuration problem. An attempt
>to configure apt to install additional packages from the media failed". This
>happens just after installing the base system. After pressing continue - apt
>scans mirror correctly and the rest of the process goes unattended till the
>end. 
>
>
>Preseed file includes (whole file can be here: http://paste.debian.net/1257950/
>):
><...>
>d-i apt-setup/cdrom/set-first boolean false
>d-i apt-setup/cdrom/set-next boolean false
>d-i apt-setup/cdrom/set-failed boolean false
>
>apt-cdrom-setup apt-setup/cdrom/set-first       boolean false
>apt-cdrom-setup apt-setup/cdrom/set-next        boolean false
>apt-cdrom-setup apt-setup/cdrom/set-double      boolean false
>apt-cdrom-setup apt-setup/cdrom/set-failed      boolean false
><...>
>
>The boot command:
>auto=true priority=critical preseed/url=http://[IP:port]/debian-preseed.txt
>
>ISO file used for installation:
>debian-cd/current/amd64/iso-cd/debian-11.5.0-amd64-netinst.iso
>
>Additional info:
>From https://preseed.einval.com/debian-preseed/bullseye/amd64-main-full.txt
>it seems that only apt-setup/cdrom/set-failed should be sufficient:
>
>### Description: Scan extra installation media?
>#   An attempt to configure apt to install additional packages from the
>#   media failed.
>#   .
>#   Please check that the media has been inserted correctly.
># d-i apt-setup/cdrom/set-failed boolean true
>
>Unfortunately this does not work :/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.