Ubuntu preseed 在软件包管理器后退出

Ubuntu preseed 在软件包管理器后退出

我正在尝试无人值守安装 Ubuntu 17.04。我有一个预置文件,我正在将其合并到 CD-ROM 中,这似乎在某种程度上运行良好。然而,在包管理器部分运行后,预置文件会退出并返回主菜单。然后我必须选择完成安装然后预置继续到最后并重新启动。我的问题是 - 为什么预置在此时退出?我怎样才能让它继续到最后?

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

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

预置文件:

d-i preseed/late_command string in-target sed -i \'s/quiet splash/console=tty1 console=ttyS1,115200n8/g\' /boot/grub/grub.cfg

d-i partman/early_command string umount /media                                                      
d-i preseed/early_command string anna-install parted-udeb                                           
d-i 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            

d-i keyboard-configuration/variant select English (US)                                              
d-i console-keymaps-at/keymap select us                                                             
d-i keyboard-configuration/xkb-keymap select us                                                     
d-i debconf/language string en                                                                      
d-i debian-installer/locale string en_US                                                            
d-i debian-installer/language string en                                                             
d-i time/zone string America/Los_Angeles                                                            
d-i keyboard-configuration/xkb-keymap select us                                                     
d-i console-setup/ask_detect boolean false                                                          
d-i console-setup/layoutcode string us                                                              
d-i netcfg/get_hostname string COTS-ETS                                                             
d-i netcfg/choose_interface select eno1                                                             
d-i passwd/root-login boolean false                                                                 
d-i passwd/user-fullname string diag User                                                           
d-i passwd/username string diag                                                                     
d-i passwd/user-password diag insecure                                                              
d-i passwd/user-password-again diag insecure                                                        
d-i user-setup/allow-password-weak boolean true                                                     
d-i user-setup/encrypt-home boolean false     
d-i clock-setup/utc boolean true                                                                    
d-i debian-installer/language string en                                                             
d-i debian-installer/country string US                                                              
d-i debian-installer/locale string en_US.UTF-8                                                      
d-i localechooser/supported-locales multiselect en_US.UTF-8                                         
ubiquity partman-lvm/device_remove_lvm boolean true                                                 
ubiquity partman-md/device_remove_md boolean true                                                   
d-i partman-auto/init_automatically_partition select biggest_free                                   
d-i partman/unmount_active boolean true                                                             
d-i partman-partitioning/confirm_write_new_label boolean true                                       
d-i partman/choose_partition select finish                                                          
d-i partman/confirm boolean true                                                                    
d-i partman/confirm_nooverwrite boolean true                                                        
d-i grub-installer/only_debian boolean true                                                         
d-i mirror/protocol string ftp                                                                      
d-i mirror/ftp/hostname string us.archive.ubuntu.com                                                
d-i mirror/ftp/directory string /ubuntu/                                                            
d-i mirror/ftp/proxy string                                                                         
d-i mirror/country string US                                                                        
d-i apt-setup/multiverse boolean true                                                               
d-i apt-setup/restricted boolean true                                                               
d-i apt-setup/universe boolean true       
d-i pkgsel/upgrade select none                                                                      
d-i 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: <-- 0 OK
Oct 25 17:24:42 debconf: --> CAPB backup progresscancel
Oct 25 17:24:42 debconf: <-- 0 multiselect backup progresscancel align escape plugin-detect-keyboard plugin-terminal
Oct 25 17:24:42 debconf: --> PROGRESS START 0 1200 apt-setup/progress/title
Oct 25 17:24:42 debconf: <-- 0 OK
Oct 25 17:24:42 debconf: --> PROGRESS INFO apt-setup/progress/setup
Oct 25 17:24:42 debconf: <-- 10 apt-setup/progress/setup does not exist
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: <-- 0
Oct 25 17:24:42 debconf: --> PROGRESS INFO apt-setup/progress/fallback
Oct 25 17:24:42 debconf: <-- 0 OK
Oct 25 17:24:42 debconf: --> GET apt-setup/multiarch
Oct 25 17:24:42 debconf: <-- 0 i386
Oct 25 17:24:42 debconf: --> PROGRESS SET 100
Oct 25 17:24:42 debconf: <-- 0 OK
Oct 25 17:24:42 debconf: --> GET mirror/protocol
Oct 25 17:24:42 debconf: <-- 0 ftp
Oct 25 17:24:42 debconf: --> GET debconf/priority
Oct 25 17:24:42 debconf: <-- 0 high
Oct 25 17:24:42 debconf: --> GET debian-installer/locale
Oct 25 17:24:42 debconf: <-- 0 en_US.UTF-8
Oct 25 17:24:42 debconf: --> DATA debconf-apt-progress/preparing type text
Oct 25 17:24:42 debconf: <-- 0 OK
Oct 25 17:24:42 debconf: --> DATA debconf-apt-progress/preparing description Please wait...
Oct 25 17:24:42 debconf: <-- 0 OK
Oct 25 17:24:42 debconf: --> PROGRESS INFO debconf-apt-progress/preparing
Oct 25 17:24:42 debconf: <-- 0 OK
Oct 25 17:24:42 in-target: Reading package lists...
Oct 25 17:24:42 in-target: 
Oct 25 17:24:42 debconf: --> PROGRESS SET 200
Oct 25 17:24:42 debconf: <-- 0 OK
Oct 25 17:24:42 debconf: --> PROGRESS SET 200
Oct 25 17:24:42 debconf: <-- 0 OK
Oct 25 17:24:42 debconf: --> PROGRESS INFO apt-setup/progress/mirror
Oct 25 17:24:42 debconf: <-- 0 OK
Oct 25 17:24:42 debconf: --> GET apt-setup/use_mirror
Oct 25 17:24:42 debconf: <-- 0 
Oct 25 17:24:42 debconf: --> SET apt-setup/use_mirror true
Oct 25 17:24:42 debconf: <-- 0 value set
Oct 25 17:24:42 debconf: --> METAGET apt-setup/use/netinst_old description
Oct 25 17:24:42 debconf: <-- 10 apt-setup/use/netinst_old doesn't exist
Oct 25 17:24:42 debconf: --> PROGRESS SET 300
Oct 25 17:24:42 debconf: <-- 0 OK
Oct 25 17:24:42 apt-setup: /usr/lib/apt-setup/generators/50mirror.ubuntu backed up
Oct 25 17:24:42 debconf: --> PROGRESS STOP
Oct 25 17:24:42 debconf: <-- 0 OK
Oct 25 17:24:42 debconf: --> CAPB backup
Oct 25 17:24:42 debconf: <-- 0 multiselect backup progresscancel align escape plugin-detect-keyboard plugin-terminal
Oct 25 17:24:42 debconf: --> GET debconf/priority
Oct 25 17:24:42 debconf: <-- 0 high
Oct 25 17:24:42 main-menu[280]: INFO: Menu item 'apt-setup-udeb' succeeded but requested to be left unconfigured.
Oct 25 17:24:42 debconf: --> X_SAVE
Oct 25 17:24:43 debconf: <-- 0 OK
Oct 25 17:24:43 debconf: --> METAGET debian-installer/localechooser/title Description
Oct 25 17:24:43 debconf: <-- 0 Choose language
Oct 25 17:24:43 debconf: --> METAGET debian-installer/brltty-udeb/title Description
Oct 25 17:24:43 debconf: <-- 10 debian-installer/brltty-udeb/title doesn't exist
Oct 25 17:24:43 main-menu[280]: INFO: Falling back to the package description for brltty-udeb
Oct 25 17:24:43 debconf: --> METAGET debian-installer/console-setup-udeb/title Description
Oct 25 17:24:43 debconf: <-- 0 Configure the keyboard
Oct 25 17:24:43 debconf: --> METAGET debian-installer/cdrom-detect/title Description
Oct 25 17:24:43 debconf: <-- 0 Detect and mount CD-ROM
Oct 25 17:24:43 debconf: --> GET preseed/file
Oct 25 17:24:43 debconf: <-- 0 file:///mnt/iso/ubuntu-server.seed
Oct 25 17:24:43 debconf: --> METAGET debian-installer/file-preseed/title Description
Oct 25 17:24:43 debconf: <-- 0 Load debconf preconfiguration file
Oct 25 17:24:43 debconf: --> METAGET debian-installer/driver-injection-disk-detect/title Description
Oct 25 17:24:43 debconf: <-- 0 Detect virtual driver disks from hardware manufacturer
Oct 25 17:24:43 debconf: --> METAGET debian-installer/load-cdrom/title Description
Oct 25 17:24:43 debconf: <-- 0 Load installer components from CD
Oct 25 17:24:43 debconf: --> METAGET debian-installer/ethdetect/title Description
Oct 25 17:24:43 debconf: <-- 0 Detect network hardware
Oct 25 17:24:43 debconf: --> METAGET debian-installer/netcfg/title Description
Oct 25 17:24:43 debconf: <-- 0 Configure the network
Oct 25 17:24:43 debconf: --> GET preseed/url
Oct 25 17:24:43 debconf: <-- 0 
Oct 25 17:24:43 debconf: --> GET rescue/enable
Oct 25 17:24:43 debconf: <-- 0 false
Oct 25 17:24:43 debconf: --> METAGET debian-installer/user-setup-udeb/title Description
Oct 25 17:24:43 debconf: <-- 0 Set up users and passwords
Oct 25 17:24:43 debconf: --> METAGET debian-installer/clock-setup/title Description
Oct 25 17:24:43 debconf: <-- 0 Configure the clock
Oct 25 17:24:43 debconf: --> METAGET debian-installer/disk-detect/title Description
Oct 25 17:24:43 debconf: <-- 0 Detect disks
Oct 25 17:24:43 debconf: --> METAGET debian-installer/partman-base/title Description
Oct 25 17:24:43 debconf: <-- 0 Partition disks
Oct 25 17:24:43 debconf: --> GET live-installer/enable
Oct 25 17:24:43 debconf: <-- 0 true
Oct 25 17:24:43 debconf: --> METAGET debian-installer/live-installer/title Description
Oct 25 17:24:43 debconf: <-- 0 Install the system
Oct 25 17:24:43 debconf: --> METAGET debian-installer/apt-setup-udeb/title Description
Oct 25 17:24:43 debconf: <-- 0 Configure the package manager
Oct 25 17:24:43 debconf: --> GET live-installer/enable
Oct 25 17:24:43 debconf: <-- 0 true
Oct 25 17:24:43 debconf: --> METAGET debian-installer/pkgsel/title Description
Oct 25 17:24:43 debconf: <-- 0 Select and install software
Oct 25 17:24:43 debconf: --> GET grub-installer/skip
Oct 25 17:24:43 debconf: <-- 0 false
Oct 25 17:24:43 debconf: --> METAGET debian-installer/grub-installer/title Description
Oct 25 17:24:43 debconf: <-- 0 Install the GRUB boot loader on a hard disk
Oct 25 17:24:43 debconf: --> METAGET debian-installer/nobootloader/title Description
Oct 25 17:24:43 debconf: <-- 0 Continue without boot loader
Oct 25 17:24:43 debconf: --> METAGET debian-installer/finish-install/title Description
Oct 25 17:24:43 debconf: <-- 0 Finish the installation
Oct 25 17:24:43 debconf: --> METAGET debian-installer/cdebconf-priority/title Description
Oct 25 17:24:43 debconf: <-- 0 Change debconf priority
Oct 25 17:24:43 debconf: --> METAGET debian-installer/cdrom-checker/title Description
Oct 25 17:24:43 debconf: <-- 0 Check the CD-ROM(s) integrity
Oct 25 17:24:43 debconf: --> METAGET debian-installer/save-logs/title Description
Oct 25 17:24:43 debconf: <-- 0 Save debug logs
Oct 25 17:24:43 debconf: --> METAGET debian-installer/di-utils-shell/title Description
Oct 25 17:24:43 debconf: <-- 0 Execute a shell
Oct 25 17:24:43 debconf: --> METAGET debian-installer/di-utils-reboot/title Description
Oct 25 17:24:43 debconf: <-- 0 Abort the installation
Oct 25 17:24:43 debconf: --> GET preseed/url
Oct 25 17:24:43 debconf: <-- 0 
Oct 25 17:24:43 debconf: --> SETTITLE debian-installer/main-menu-title
Oct 25 17:24:43 debconf: <-- 0 OK
Oct 25 17:24:43 debconf: --> CAPB

答案1

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

它说错误已经修复,但似乎并没有。

d-i anna/choose_modules string apt-cdrom-setup

相关内容