Packer, virtualbox-iso debian 11.5.0 netinst apt configuration problem

Viewed 18

I am currently trying to automate the installation of vm on my windows virtualbox using packer. Everything works well with ubuntu, oracle linux, windows server. Whereas I have the following error message on the debian installer, do you know a way to prevent it, or resolve it?

Thanks for your time.

Debian installer error message

[!] Configure the package manager
apt configuration problem
An attempt to configure apt to install additionnal package from the media failed.

Preseed file used with net installer

## preseed file

choose-mirror-bin mirror/http/proxy string
d-i apt-setup/use_mirror boolean true
d-i base-installer/kernel/override-image string linux-server
d-i clock-setup/utc boolean true
d-i clock-setup/utc-auto boolean true
d-i finish-install/reboot_in_progress note
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i keymap select us
d-i mirror/country string manual
d-i mirror/http/directory string /debian
d-i mirror/http/hostname string httpredir.debian.org
d-i mirror/http/proxy string


# Disk partioning configuration
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/choose_recipe select atomic
d-i partman-auto/method string lvm
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm_write_new_label boolean true

d-i partman/mount_style select uuid


d-i passwd/root-login boolean false
d-i passwd/root-password-again password vagrant
d-i passwd/root-password password vagrant
d-i passwd/user-fullname string vagrant
d-i passwd/user-uid string 1000
d-i passwd/user-password password vagrant
d-i passwd/user-password-again password vagrant
d-i passwd/username string vagrant
d-i pkgsel/include string sudo
d-i pkgsel/install-language-support boolean false
d-i pkgsel/update-policy select none
d-i pkgsel/upgrade select full-upgrade
d-i time/zone string UTC
d-i user-setup/allow-password-weak boolean true
d-i user-setup/encrypt-home boolean false
apt-cdrom-setup apt-setup/cdrom/set-first boolean false
apt-mirror-setup apt-setup/use_mirror boolean true
popularity-contest popularity-contest/participate boolean false
tasksel tasksel/first multiselect standard, ssh-server

d-i debconf/frontend select noninteractive


# Set OS locale
# Keyboard selection.
d-i keymap select fr
d-i debian-installer/language string en
d-i debian-installer/country string FR
d-i console-keymaps-at/keymap select fr
d-i debian-installer/locale string en_GB.UTF-8
d-i keyboard-configuration/xkb-keymap select fr(latin9)

d-i console-setup/variant FR
d-i console-setup/layout FR
d-i console-setup/layoutcode string fr
# for Debian 7 and later
d-i keymap select fr



# Bootloader options
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i grub-installer/bootdev string /dev/*da
0 Answers
Related