• Issue with preseeded install - cannot skip apt media scanning

    From Jerzy Patraszewski@21:1/5 to All on Sat Oct 22 17:00:02 2022
    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 :/

    <div dir="ltr">Hi <span class="gmail-il">debian</span>-wizards,<div>I&#39;m seeking your wisdom, since I&#39;m almost banging my head against the wall... </div><div>Any ideas how to get rid of the described error and achieve fully unattended <span
    class="gmail-il">Debian</span> install?</div><div>Thanks in advance, any suggestion will be much appreciated!</div><div>Jerzy </div><div><br></div><div>The issue:</div><div>While using preseed file, regardless of any setting, <span class="gmail-il">
    debian</span> installer (dialog) jumps off to interactive mode on error: &quot;Apt configuration problem. An attempt to configure apt to install additional packages from the media failed&quot;. 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. </div><div><br></div><div><br></div><div>Preseed file includes (whole file can be here: <a href="http://paste.debian.net/1257950/">http://paste.
    debian.net/1257950/</a>):</div><div>&lt;...&gt;</div>d-i apt-setup/cdrom/set-first boolean false<br>d-i apt-setup/cdrom/set-next boolean false<br>d-i apt-setup/cdrom/set-failed boolean false<br><br>apt-cdrom-setup apt-setup/cdrom/set-first      
    boolean false<br>apt-cdrom-setup apt-setup/cdrom/set-next        boolean false<br>apt-cdrom-setup apt-setup/cdrom/set-double      boolean false<br>apt-cdrom-setup apt-setup/cdrom/set-failed      boolean false<br><div>&lt;...&gt;</div><div><br></
    <div>The boot command:</div><div>auto=true priority=critical preseed/url=http://[IP:port]/<span class="gmail-il">debian</span>-preseed.txt<br></div><div><br></div><div>ISO file used for installation:</div><div><span class="gmail-il">debian</span>-<
    span class="gmail-il">cd</span>/current/amd64/iso-<span class="gmail-il">cd</span>/<span class="gmail-il">debian</span>-11.5.0-amd64-netinst.iso<br></div><div><br></div><div>Additional info:</div><div>From <a href="https://preseed.einval.com/debian-
    preseed/bullseye/amd64-main-full.txt" target="_blank">https://preseed.einval.com/<span class="gmail-il">debian</span>-preseed/bullseye/amd64-main-full.txt</a></div><div>it seems that only apt-setup/cdrom/set-failed should be sufficient:</div><div><pre
    style="white-space:pre-wrap;color:rgb(0,0,0)">### 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</pre></div><div>Unfortunately this does not work :/</div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jerzy Patraszewski@21:1/5 to All on Sat Oct 22 18:00:01 2022
    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: https://i.imgur.com/lKtgqyZ.png
    and error itself (from d-i): https://imgur.com/eZbMPTy.png

    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

    <div dir="ltr"><div class="gmail_default">Does anyone has a working preseed file for fully unattended Bullseye netinstall? :)</div><div class="gmail_default"><br></div><div class="gmail_default">Anyway, continuing:</div><div class="gmail_default">seems
    like list software purges some characters, ofc. boot command line is:</div><div class="gmail_default">auto=true priority=critical preseed/url=<a href="http://ip_address_colon_mark_port/debian-preseed.txt">http://ip_address_colon_mark_port/debian-preseed.
    txt</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">Additionally I uploaded console log screenshot here: <a href="https://i.imgur.com/lKtgqyZ.png">https://i.imgur.com/lKtgqyZ.png</a> </div><div class="gmail_default">and
    error itself (from d-i): <a href="https://imgur.com/eZbMPTy.png">https://imgur.com/eZbMPTy.png</a></div><div class="gmail_default"><br></div><div class="gmail_default">Commenting out (as follows) some of the options didn&#39;t help either:</div><div
    class="gmail_default"><br>d-i apt-setup/cdrom/set-first boolean false<br>d-i apt-setup/cdrom/set-next boolean false<br>d-i apt-setup/cdrom/set-failed boolean false<br>##d-i apt-setup/cdrom/set-double boolean false<br><br>##d-i apt-setup/use_mirror
    boolean true<br>##d-i apt-setup/non-free boolean true<br>##d-i apt-setup/contrib boolean true<br>##d-i apt-setup/disable-cdrom-entries boolean true<br><br>d-i tasksel/first multiselect SSH server<br><br></div><div class="gmail_default">netcfg  netcfg/
    target_network_config select ifupdown<br>bootstrap-base  base-installer/kernel/image select linux-image-amd64<br>d-i popularity-contest/participate  boolean false<br><br>##apt-cdrom-setup apt-setup/cdrom/set-first boolean false<br>##apt-cdrom-setup apt-
    setup/cdrom/set-next boolean false<br>##apt-cdrom-setup apt-setup/cdrom/set-double boolean false<br>##apt-cdrom-setup apt-setup/cdrom/set-failed boolean false<br><br>##apt-mirror-setup apt-setup/use_mirror boolean true<br>##apt-mirror-setup apt-setup/no_
    mirror boolean false<br>##apt-mirror-setup apt-setup/non-free boolean true<br>##apt-mirror-setup apt-setup/disable-cdrom-entries boolean true<br><br>##apt-setup-udeb apt-setup/services-select multiselect security, updates<br>##apt-setup-udeb apt-setup/
    security_host string <a href="http://security.debian.org">security.debian.org</a><br>##apt-setup-udeb apt-setup/disable-cdrom-entries boolean true<br>##apt-setup-udeb apt-setup/enable-source-repositories boolean false<br><br>###d-i pkgsel/include string
    openssh-server vim mc net-tools python3.9 sudo<br>###d-i pkgsel/upgrade select full-upgrade<br></div><div class="gmail_default"><br></div><div class="gmail_default">Best,</div><div class="gmail_default">Jerzy </div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Steve McIntyre@21:1/5 to Jerzy Patraszewski on Sat Oct 22 18:10:01 2022
    XPost: linux.debian.maint.boot

    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 :/
    --
    Steve McIntyre, Cambridge, UK. steve@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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)