首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无头安装:无法安装busybox-initramfs

无头安装:无法安装busybox-initramfs
EN

Ask Ubuntu用户
提问于 2017-08-25 18:09:52
回答 1查看 2.6K关注 0票数 1

我正在尝试建立一个在一些盒子上安装Ubuntu的方法。这些机箱是从内部MMC存储器启动的x86机器。我希望该方法尽可能自动化,因为我们可能有大量的盒子来安装它;我的主要目标是使机器在安装后处于一致状态。我发现了问题,但这两个答案都解决不了这个问题。

我使用一个预置文件来自动化安装步骤;安装似乎通过分区步骤工作,但是它失败了,出现了一个令人沮丧的模糊错误消息。以下是我认为相关的/var/log/syslog中的行:

代码语言:javascript
复制
Aug 25 17:46:07 base-installer: apt-install or in-target is already running, so you cannot run either of
Aug 25 17:46:07 base-installer: them again until the other instance finishes. You may be able to use
Aug 25 17:46:07 base-installer: 'chroot /target ...' instead.
Aug 25 17:46:07 in-target: Unexpected error; command not executed: 'sh -c debconf-apt-progress --no-progress --logstderr --     apt-get -q -y --no-remove install busybox-initramfs'
Aug 25 17:46:07 base-installer: error: exiting on error base-installer/kernel/failed-package-install

下面是我正在使用的预置文件:

代码语言:javascript
复制
# no splash and be verbose
d-i debian-installer/splash boolean false
d-i debian-installer/quiet  boolean false

# installer locale
d-i debian-installer/locale string en_US

# keyboard
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/xkb-keymap select us

# network
d-i hw-detect/load_firmware boolean true
d-i netcfg/choose_interface select enp1s0
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/disable_dhcp boolean true
d-i netcfg/confirm_static boolean true
d-i netcfg/get_ipaddress string my-lan-ip
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string my-lan-gateway
d-i netcfg/get_nameservers string my-nameserver
d-i netcfg/get_hostname string my-hostname
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/hostname string my-hostname

# software mirror
d-i mirror/protocol string http
d-i mirror/country string manual
d-i mirror/http/hostname string archive.ubuntu.com
d-i mirror/http/directory string /ubuntu
d-i mirror/http/proxy string my-http-proxy
d-i mirror/suite string xenial

# accounts
d-i passwd/root-login boolean false
d-i passwd/username string myuser
d-i passwd/user-fullname string Some Full Name
d-i passwd/user-password-crypted password my-encrypted-password
d-i user-setup/encrypt-home boolean false

# clock
d-i clock-setup/utc boolean true
d-i time/zone string US/Eastern
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string my-ntp-server

# partitioning
d-i partman-auto/disk string /dev/mmcblk0
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/choose_recipe select multi
d-i partman/default_filesystem string ext4
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/mount_style select uuid

# installation
d-i live-installer/net-image string /install/filesystem.squashfs
d-i base-installer/kernel/image string linux-image-generic

# apt
d-i apt-setup/restricted boolean true
d-i apt-setup/universe boolean true
d-i apt-setup/backports boolean true

# package selection
tasksel tasksel/first multiselect standard
d-i pkgsel/include string a few packages
d-i pkgsel/upgrade select safe-upgrade
d-i pkgsel/language-packs multiselect en
d-i pkgsel/update-policy select unattended-upgrades
popularity-contest popularity-contest/participate boolean false
d-i pkgsel/updatedb boolean true

# bootloader
d-i grub-installer/only_debian boolean true
d-i grub-installer/bootdev  string /dev/mmcblk0

# finishing
d-i debian-installer/exit/poweroff boolean true
d-i finish-install/reboot_in_progress note

我使用的是USB驱动器上的预置文件,UbuntuServer16.04.3映像被写入它,并修改了文件isolinux/txt.cfg以使用我的预置文件。安装是成功的,当我做一个正常的安装,所以我相信这是一个问题的预置文件。

请注意,这些框不能访问internet;它们必须使用HTTP代理进行apt。我已经确认HTTP代理工作正常,并在预设文件中正确地指定了它。

我已经尝试重写ISO图像,这仍然会导致同样的错误.

我的预置文件有问题导致安装失败吗?

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2017-08-25 21:16:07

结果发现,syslog中还有另一个有趣的错误,我错过了:

代码语言:javascript
复制
Aug 25 21:03:12 live-installer: /usr/bin/ckbcomp: Can not find file "symbols/en" in any known directory
Aug 25 21:03:12 base-installer: warning: /usr/lib/post-base-installer.d/25live-installer-console-setup returned error code 1

这就是我修改后的txt.cfg的样子:

代码语言:javascript
复制
default my-installation
LABEL my-installation
  menu label ^my custom installation
  kernel /install/vmlinuz
  append  file=/cdrom/preseed/my-installation.seed debian-installer/locale=en_US locale=en_US console-setup/ask_detect=false keyboard-configuration/layoutcode=en console-setup/layoutcode=en netcfg/choose_interface=enp1s0 initrd=/install/initrd.gz ramdisk_size=16384 root=/dev/ram rw quiet

我从应答中得到了“我们”指令(它是用来跳过键盘提示的),但结果是它应该是'us',而不是'en‘。更改这将导致ckbcomp命令成功,这将导致成功的系统安装。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/949826

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档