Discussion:
Issue with preseeded install - cannot skip apt media scanning
(too old to reply)
Jerzy Patraszewski
2022-10-22 15:00:02 UTC
Permalink
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
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 :/
Jerzy Patraszewski
2022-10-22 16:00:01 UTC
Permalink
Does anyone has a working preseed file for fully unattended Bullseye
netinstall? :)

Anyway, continuing:
seems like list software purges some characters, ofc. boot command line is:
auto=true priority=critical preseed/url=
http://ip_address_colon_mark_port/debian-preseed.txt

Additionally I uploaded console log screenshot here:
Loading Image...
and error itself (from d-i): Loading Image...

Commenting out (as follows) some of the options didn't help either:

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
##d-i apt-setup/cdrom/set-double boolean false

##d-i apt-setup/use_mirror boolean true
##d-i apt-setup/non-free boolean true
##d-i apt-setup/contrib boolean true
##d-i apt-setup/disable-cdrom-entries boolean true

d-i tasksel/first multiselect SSH server

netcfg netcfg/target_network_config select ifupdown
bootstrap-base base-installer/kernel/image select linux-image-amd64
d-i popularity-contest/participate 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

##apt-mirror-setup apt-setup/use_mirror boolean true
##apt-mirror-setup apt-setup/no_mirror boolean false
##apt-mirror-setup apt-setup/non-free boolean true
##apt-mirror-setup apt-setup/disable-cdrom-entries boolean true

##apt-setup-udeb apt-setup/services-select multiselect security, updates
##apt-setup-udeb apt-setup/security_host string security.debian.org
##apt-setup-udeb apt-setup/disable-cdrom-entries boolean true
##apt-setup-udeb apt-setup/enable-source-repositories boolean false

###d-i pkgsel/include string openssh-server vim mc net-tools python3.9 sudo
###d-i pkgsel/upgrade select full-upgrade

Best,
Jerzy
Steve McIntyre
2022-10-22 16:10:01 UTC
Permalink
Hi Jerzy,

You might be better off asking on the debian-boot mailing list (in CC).
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 
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
<...>
auto=true priority=critical preseed/url=http://[IP:port]/debian-preseed.txt
debian-cd/current/amd64/iso-cd/debian-11.5.0-amd64-netinst.iso
From https://preseed.einval.com/debian-preseed/bullseye/amd64-main-full.txt
### 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 :/
--
Steve McIntyre, Cambridge, UK. ***@einval.com
"I can't ever sleep on planes ... call it irrational if you like, but I'm
afraid I'll miss my stop" -- Vivek Das Mohapatra
Loading...