我正在尝试将 i386 Ubuntu 18.04.2 预置到具有 64 UEFI 位的 PC 上。
安装失败,安装程序尝试安装 grub-efi-amd64-signed。
如何预先配置 GRUB 以从 64 位 GRUB 引导 32 位操作系统。
从系统日志中,我看到了以下 grub 引用。
Feb 21 09:45:04 grub-installer: info: architecture: i386/efi
Feb 21 09:45:05 in-target: multiboot-doc grub-emu xorriso desktop-base
Feb 21 09:45:05 in-target: grub-common libfreetype6
Feb 21 09:45:05 in-target: Get:2 http://au.ubuntu.com/ubuntu bionic-updates/main i386 grub-common i386 2.02-2ubuntu8.12 [1,865 kB]
Feb 21 09:45:06 in-target: Selecting previously unselected package grub-common.^M
Feb 21 09:45:06 in-target: Preparing to unpack .../grub-common_2.02-2ubuntu8.12_i386.deb ...^M
Feb 21 09:45:06 debconf: --> DATA debconf-apt-progress/info description Installing grub-common (i386)
Feb 21 09:45:06 debconf: --> DATA debconf-apt-progress/info description Preparing grub-common (i386)
Feb 21 09:45:06 in-target: Unpacking grub-common (2.02-2ubuntu8.12) ...^M
Feb 21 09:45:06 debconf: --> DATA debconf-apt-progress/info description Unpacking grub-common (i386)
Feb 21 09:45:06 debconf: --> DATA debconf-apt-progress/info description Preparing to configure grub-common (i386)
Feb 21 09:45:06 in-target: Setting up grub-common (2.02-2ubuntu8.12) ...^M
Feb 21 09:45:06 debconf: --> DATA debconf-apt-progress/info description Configuring grub-common (i386)
Feb 21 09:45:06 debconf: --> DATA debconf-apt-progress/info description Configuring grub-common (i386)
Feb 21 09:45:06 debconf: --> DATA debconf-apt-progress/info description Installed grub-common (i386)
Feb 21 09:45:07 in-target: grub-common is already the newest version (2.02-2ubuntu8.12).
Feb 21 09:45:07 grub-installer: info: Identified partition label for /dev/sdb2: gpt
Feb 21 09:45:07 debconf: --> PROGRESS START 0 6 grub-installer/progress/title
Feb 21 09:45:07 debconf: --> SUBST grub-installer/progress/step_install GRUB grub2
Feb 21 09:45:07 debconf: Adding [GRUB] -> [grub2]
Feb 21 09:45:07 debconf: --> PROGRESS INFO grub-installer/progress/step_install
Feb 21 09:45:07 grub-installer: dpkg: warning: ignoring request to remove grub-pc-bin which isn't installed
Feb 21 09:45:07 grub-installer: dpkg: warning: ignoring request to remove grub-pc which isn't installed
Feb 21 09:45:07 grub-installer: dpkg: warning: ignoring request to remove grub-gfxpayload-lists which isn't installed
Feb 21 09:45:08 in-target: Package grub-efi-amd64-signed is not available, but is referred to by another package.
Feb 21 09:45:08 in-target: E: Package 'grub-efi-amd64-signed' has no installation candidate
Feb 21 09:45:09 grub-installer: info: Calling 'apt-install grub-efi-amd64-signed' failed
Feb 21 09:45:09 debconf: --> SUBST grub-installer/apt-install-failed GRUB grub-efi-amd64-signed
Feb 21 09:45:09 debconf: Adding [GRUB] -> [grub-efi-amd64-signed]
Feb 21 09:45:09 debconf: --> INPUT critical grub-installer/apt-install-failed
我在预种子期间创建了一个 EFI 文件系统
Disk /dev/sdb: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 514A7D7E-64A9-4E14-B8F2-4460D2DF8532
Device Start End Sectors Size Type
/dev/sdb1 2048 1050623 1048576 512M EFI System
/dev/sdb2 1050624 1550335 499712 244M Linux filesystem
/dev/sdb3 1550336 500117503 498567168 237.8G Linux LVM
在 preseed 环境中安装了以下软件包。
efibootmgr
grub-efi-amd64
grub-efi-amd64-bin
libefiboot1:i386
libefivar1:i386
ncurses-base
在预种子 chroot 中,如果我手动尝试安装 GRUB,它会因不支持 EFI 变量而失败
grub-install
Installing for x86_64-efi platform.
EFI variables are not supported on this system.
EFI variables are not supported on this system.
grub-install: error: efibootmgr failed to register the boot entry: No such file or directory.
关于我需要做什么才能使其正常工作的任何建议?
谢谢
电社