Ubuntu在包管理器之后预先退出

我正在尝试无人值守安装Ubuntu 17.04。 我有一个preseed文件,我正在将其合并到CD-ROM中,这似乎工作得很好。 但是,在程序包管理器部分运行后,预置只会退出到主菜单。 然后我必须选择完成安装 ,然后预置继续到最后并重新启动。 我的问题是 – 为什么预定的出现在这一点上,我怎样才能让它继续到最后?

我从日志中得到的唯一线索是这条线,但不确定它是什么意思……

Oct 25 17:24:42 main-menu[280]: INFO: Menu item 'apt-setup-udeb' succeeded but requested to be left unconfigured. 

预置文件:

 di preseed/late_command string in-target sed -i \'s/quiet splash/console=tty1 console=ttyS1,115200n8/g\' /boot/grub/grub.cfg di partman/early_command string umount /media di preseed/early_command string anna-install parted-udeb di preseed/early_command string i=`parted /dev/sda print| tail -n2 |head -c 2 |tail -c 1`; while [ $i -ge 3 ]; do echo "parted /dev/sda rm" $i; i=$((i-1)); done di keyboard-configuration/variant select English (US) di console-keymaps-at/keymap select us di keyboard-configuration/xkb-keymap select us di debconf/language string en di debian-installer/locale string en_US di debian-installer/language string en di time/zone string America/Los_Angeles di keyboard-configuration/xkb-keymap select us di console-setup/ask_detect boolean false di console-setup/layoutcode string us di netcfg/get_hostname string COTS-ETS di netcfg/choose_interface select eno1 di passwd/root-login boolean false di passwd/user-fullname string diag User di passwd/username string diag di passwd/user-password diag insecure di passwd/user-password-again diag insecure di user-setup/allow-password-weak boolean true di user-setup/encrypt-home boolean false di clock-setup/utc boolean true di debian-installer/language string en di debian-installer/country string US di debian-installer/locale string en_US.UTF-8 di localechooser/supported-locales multiselect en_US.UTF-8 ubiquity partman-lvm/device_remove_lvm boolean true ubiquity partman-md/device_remove_md boolean true di partman-auto/init_automatically_partition select biggest_free di partman/unmount_active boolean true di partman-partitioning/confirm_write_new_label boolean true di partman/choose_partition select finish di partman/confirm boolean true di partman/confirm_nooverwrite boolean true di grub-installer/only_debian boolean true di mirror/protocol string ftp di mirror/ftp/hostname string us.archive.ubuntu.com di mirror/ftp/directory string /ubuntu/ di mirror/ftp/proxy string di mirror/country string US di apt-setup/multiverse boolean true di apt-setup/restricted boolean true di apt-setup/universe boolean true di pkgsel/upgrade select none di finish-install/reboot_in_progress note 

我认为这是preseed退出时的相关日志:

 Oct 25 17:24:42 main-menu[280]: INFO: Menu item 'apt-setup-udeb' selected Oct 25 17:24:42 debconf: --> SETTITLE debian-installer/apt-setup-udeb/title Oct 25 17:24:42 debconf:  CAPB backup progresscancel Oct 25 17:24:42 debconf:  PROGRESS START 0 1200 apt-setup/progress/title Oct 25 17:24:42 debconf:  PROGRESS INFO apt-setup/progress/setup Oct 25 17:24:42 debconf:  SUBST apt-setup/progress/fallback SCRIPT setup Oct 25 17:24:42 debconf: Adding [SCRIPT] -> [setup] Oct 25 17:24:42 debconf:  PROGRESS INFO apt-setup/progress/fallback Oct 25 17:24:42 debconf:  GET apt-setup/multiarch Oct 25 17:24:42 debconf:  PROGRESS SET 100 Oct 25 17:24:42 debconf:  GET mirror/protocol Oct 25 17:24:42 debconf:  GET debconf/priority Oct 25 17:24:42 debconf:  GET debian-installer/locale Oct 25 17:24:42 debconf:  DATA debconf-apt-progress/preparing type text Oct 25 17:24:42 debconf:  DATA debconf-apt-progress/preparing description Please wait... Oct 25 17:24:42 debconf:  PROGRESS INFO debconf-apt-progress/preparing Oct 25 17:24:42 debconf:  PROGRESS SET 200 Oct 25 17:24:42 debconf:  PROGRESS SET 200 Oct 25 17:24:42 debconf:  PROGRESS INFO apt-setup/progress/mirror Oct 25 17:24:42 debconf:  GET apt-setup/use_mirror Oct 25 17:24:42 debconf:  SET apt-setup/use_mirror true Oct 25 17:24:42 debconf:  METAGET apt-setup/use/netinst_old description Oct 25 17:24:42 debconf:  PROGRESS SET 300 Oct 25 17:24:42 debconf:  PROGRESS STOP Oct 25 17:24:42 debconf:  CAPB backup Oct 25 17:24:42 debconf:  GET debconf/priority Oct 25 17:24:42 debconf:  X_SAVE Oct 25 17:24:43 debconf:  METAGET debian-installer/localechooser/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/brltty-udeb/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/console-setup-udeb/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/cdrom-detect/title Description Oct 25 17:24:43 debconf:  GET preseed/file Oct 25 17:24:43 debconf:  METAGET debian-installer/file-preseed/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/driver-injection-disk-detect/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/load-cdrom/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/ethdetect/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/netcfg/title Description Oct 25 17:24:43 debconf:  GET preseed/url Oct 25 17:24:43 debconf:  GET rescue/enable Oct 25 17:24:43 debconf:  METAGET debian-installer/user-setup-udeb/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/clock-setup/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/disk-detect/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/partman-base/title Description Oct 25 17:24:43 debconf:  GET live-installer/enable Oct 25 17:24:43 debconf:  METAGET debian-installer/live-installer/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/apt-setup-udeb/title Description Oct 25 17:24:43 debconf:  GET live-installer/enable Oct 25 17:24:43 debconf:  METAGET debian-installer/pkgsel/title Description Oct 25 17:24:43 debconf:  GET grub-installer/skip Oct 25 17:24:43 debconf:  METAGET debian-installer/grub-installer/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/nobootloader/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/finish-install/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/cdebconf-priority/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/cdrom-checker/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/save-logs/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/di-utils-shell/title Description Oct 25 17:24:43 debconf:  METAGET debian-installer/di-utils-reboot/title Description Oct 25 17:24:43 debconf:  GET preseed/url Oct 25 17:24:43 debconf:  SETTITLE debian-installer/main-menu-title Oct 25 17:24:43 debconf:  CAPB 

经过多次试验和错误,我终于找到了解决方案。 apt-cdrom-setup没有被加载,因此在此步骤停止了。 我通过anna加载了模块,它解决了我的问题。 我在这个旧的bug报告中找到了线索。

它说错误是固定的,但似乎不是。

 di anna/choose_modules apt-cdrom-setup