View Issue Details

IDProjectCategoryView StatusLast Update
0001704Kali LinuxGeneral Bugpublic2020-12-01 10:48
Reporterstaticn0de Assigned Torhertzog  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version1.0.9 
Fixed in Version1.1.0 
Summary0001704: Grub failed to install on /target/
Description

Attempting to install Kali Linux on an EFI machine without an Internet connection causes the Grub install to fail in the last stages.

The install will progress up until the grub install phase and then present the error 'Grub failed to install on /target/'. As the grub will not install, this is a fatal error.

Steps To Reproduce

Install Kali 1.0.9 (or 1.0.8) in an EFI based mode without an internet connection.

Install fails 100% of the time at the install grub phase with the grub-efi-amd64 file unable to be found.

Additional Information

I retrieved the log files from the installer to an external USB. The error is not a fail to install error but the installer can not find the grub-efi-amd64 files. Important log dump below.

I was able to bypass the error by creating a custom Kali ISO. Following the steps here: http://docs.kali.org/downloading/live-build-a-custom-kali-iso

Within the custom ISO, I edited live-build-config/config/package-lists/kali.list.chroot and added the following packages to the end of the file

grub-common
grub-efi
grub-efi-amd64

After I added this files, I built to ISO and installed Kali. No more grub failed to install error as the installer was able to find grub-efi-amd64

Aug 31 12:55:27 apt-setup: Writing new source list
Aug 31 12:55:27 apt-setup: Source list entries for this disc are:
Aug 31 12:55:27 apt-setup: deb cdrom:[Debian GNU/Linux 7.0 Kali - Official Snapshot amd64 LIVE/INSTALL Binary 20140822-15:33]/ kali contrib main no$
Aug 31 12:55:27 apt-setup: Repeat this process for the rest of the CDs in your set.
Aug 31 12:55:36 apt-setup: warning: /usr/lib/apt-setup/generators/50mirror returned error code 1; discarding output
Aug 31 12:55:37 in-target: Err http://security.kali.org kali/updates Release.gpg
Aug 31 12:55:37 in-target: Could not resolve 'security.kali.org'
Aug 31 12:55:37 in-target: Reading package lists...
Aug 31 12:55:37 in-target:
Aug 31 12:55:37 in-target: W: Failed to fetch http://security.kali.org/kali-security/dists/kali/updates/Release.gpg Could not resolve 'security.kali$
Aug 31 12:55:37 in-target:
Aug 31 12:55:37 in-target: W: Some index files failed to download. They have been ignored, or old ones used instead.
Aug 31 12:55:38 lilo-installer: LILO not usable on EFI PCs without BIOS compatibility; use grub-efi
Aug 31 12:55:38 main-menu[1017]: INFO: Menu item 'grub-installer' selected
Aug 31 12:55:38 grub-installer: info: architecture: amd64/efi
Aug 31 12:55:38 in-target: Reading package lists...
Aug 31 12:55:38 in-target:
Aug 31 12:55:38 in-target: Building dependency tree...
Aug 31 12:55:38 in-target:
Aug 31 12:55:38 in-target: Reading state information...
Aug 31 12:55:38 in-target:
Aug 31 12:55:38 in-target: Suggested packages:
Aug 31 12:55:38 in-target: multiboot-doc grub-emu xorriso
Aug 31 12:55:38 in-target: The following NEW packages will be installed:
Aug 31 12:55:38 in-target: grub-common
Aug 31 12:55:37 in-target:
Aug 31 12:55:37 in-target: W: Some index files failed to download. They have been ignored, or old ones used instead.
Aug 31 12:55:38 lilo-installer: LILO not usable on EFI PCs without BIOS compatibility; use grub-efi
Aug 31 12:55:38 main-menu[1017]: INFO: Menu item 'grub-installer' selected
Aug 31 12:55:38 grub-installer: info: architecture: amd64/efi
Aug 31 12:55:38 in-target: Reading package lists...
Aug 31 12:55:38 in-target:
Aug 31 12:55:38 in-target: Building dependency tree...
Aug 31 12:55:38 in-target:
Aug 31 12:55:38 in-target: Reading state information...
Aug 31 12:55:38 in-target:
Aug 31 12:55:38 in-target: Suggested packages:
Aug 31 12:55:38 in-target: multiboot-doc grub-emu xorriso
Aug 31 12:55:38 in-target: The following NEW packages will be installed:
Aug 31 12:55:38 in-target: grub-common
Aug 31 12:55:39 in-target: 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Aug 31 12:55:39 in-target: Need to get 0 B/1,533 kB of archives.
Aug 31 12:55:39 in-target: After this operation, 5,416 kB of additional disk space will be used.
Aug 31 12:55:39 in-target: Selecting previously unselected package grub-common.
Aug 31 12:55:39 in-target: (Reading database ...
Aug 31 12:55:39 in-target: 316430 files and directories currently installed.)
Aug 31 12:55:39 in-target: Unpacking grub-common (from .../grub-common_1.99-27+deb7u2_amd64.deb) ...
Aug 31 12:55:39 in-target: Processing triggers for man-db ...
Aug 31 12:56:17 in-target: Setting up grub-common (1.99-27+deb7u2) ...
Aug 31 12:56:29 in-target: Reading package lists...
Aug 31 12:56:29 in-target:
Aug 31 12:56:29 in-target: Building dependency tree...
Aug 31 12:56:29 in-target:
Aug 31 12:56:29 in-target: Reading state information...
Aug 31 12:56:29 in-target:
Aug 31 12:56:29 in-target: grub-common is already the newest version.
Aug 31 12:55:39 in-target: Need to get 0 B/1,533 kB of archives.
Aug 31 12:55:39 in-target: After this operation, 5,416 kB of additional disk space will be used.
Aug 31 12:55:39 in-target: Selecting previously unselected package grub-common.
Aug 31 12:55:39 in-target: (Reading database ...
Aug 31 12:55:39 in-target: 316430 files and directories currently installed.)
Aug 31 12:55:39 in-target: Unpacking grub-common (from .../grub-common_1.99-27+deb7u2_amd64.deb) ...
Aug 31 12:55:39 in-target: Processing triggers for man-db ...
Aug 31 12:56:17 in-target: Setting up grub-common (1.99-27+deb7u2) ...
Aug 31 12:56:29 in-target: Reading package lists...
Aug 31 12:56:29 in-target:
Aug 31 12:56:29 in-target: Building dependency tree...
Aug 31 12:56:29 in-target:
Aug 31 12:56:29 in-target: Reading state information...
Aug 31 12:56:29 in-target:
Aug 31 12:56:29 in-target: grub-common is already the newest version.
Aug 31 12:56:29 in-target: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Aug 31 12:56:29 grub-installer: info: Identified partition label for /dev/sda3: gpt
Aug 31 12:56:30 grub-installer: dpkg: warning: ignoring request to remove grub which isn't installed
Aug 31 12:56:30 grub-installer: dpkg: warning: ignoring request to remove grub-legacy which isn't installed
Aug 31 12:56:30 grub-installer: dpkg: warning: ignoring request to remove grub-pc-bin which isn't installed
Aug 31 12:56:30 grub-installer: dpkg: warning: ignoring request to remove grub-pc which isn't installed
Aug 31 12:56:30 in-target: Reading package lists...
Aug 31 12:56:30 in-target:
Aug 31 12:56:30 in-target: Building dependency tree...
Aug 31 12:56:30 in-target:
Aug 31 12:56:30 in-target: Reading state information...
Aug 31 12:56:30 in-target:
Aug 31 12:56:30 in-target: Package grub-efi is not available, but is referred to by another package.
Aug 31 12:56:30 in-target: This may mean that the package is missing, has been obsoleted, or
Aug 31 12:56:30 in-target: is only available from another source
Aug 31 12:56:30 in-target: However the following packages replace it:
Aug 31 12:56:29 grub-installer: info: Identified partition label for /dev/sda3: gpt
Aug 31 12:56:30 grub-installer: dpkg: warning: ignoring request to remove grub which isn't installed
Aug 31 12:56:30 grub-installer: dpkg: warning: ignoring request to remove grub-legacy which isn't installed
Aug 31 12:56:30 grub-installer: dpkg: warning: ignoring request to remove grub-pc-bin which isn't installed
Aug 31 12:56:30 grub-installer: dpkg: warning: ignoring request to remove grub-pc which isn't installed
Aug 31 12:56:30 in-target: Reading package lists...
Aug 31 12:56:30 in-target:
Aug 31 12:56:30 in-target: Building dependency tree...
Aug 31 12:56:30 in-target:
Aug 31 12:56:30 in-target: Reading state information...
Aug 31 12:56:30 in-target:
Aug 31 12:56:30 in-target: Package grub-efi is not available, but is referred to by another package.
Aug 31 12:56:30 in-target: This may mean that the package is missing, has been obsoleted, or
Aug 31 12:56:30 in-target: is only available from another source
Aug 31 12:56:30 in-target: However the following packages replace it:
Aug 31 12:56:30 in-target: grub2-common grub-common
Aug 31 12:56:30 in-target:
Aug 31 12:56:30 in-target: E
Aug 31 12:56:30 in-target: : Package 'grub-efi' has no installation candidate
Aug 31 12:56:30 grub-installer: info: Calling 'apt-install grub-efi' failed

Activities

rhertzog

rhertzog

2014-09-15 06:30

administrator   ~0002507

The live-build config has been updated to include those packages. Thanks for the report!

Issue History

Date Modified Username Field Change
2014-09-01 12:12 staticn0de New Issue
2014-09-15 06:30 rhertzog Note Added: 0002507
2014-09-15 06:30 rhertzog Assigned To => rhertzog
2014-09-15 06:30 rhertzog Status new => resolved
2014-09-15 06:30 rhertzog Resolution open => fixed
2014-09-15 06:30 rhertzog Fixed in Version => 1.1.0
2014-10-14 11:10 jukkapach1 Issue cloned: 0001780
2014-12-30 05:26 detrix Issue cloned: 0001991
2015-11-09 13:44 Mr.Joe Issue cloned: 0002836
2020-12-01 10:48 g0tmi1k Priority high => normal