Jerzy Patraszewski
2022-10-22 15:00:02 UTC
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
### 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 :/
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 :/