grub-probe fails with "no directory"

Bug #1516014 reported by Mark Dunn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

1)
Description: Ubuntu 14.04.3 LTS
Release: 14.04

2)
grub2 2.02~beta2-9ubuntu1.4
linux-image-3.13.0-68-generic 3.13.0-68.111
linux-image-extra-3.13.0-68-generic 3.13.0-68.111
linux-image-generic 3.13.0.68.74
linux-headers-3.13.0-68-generic 3.13.0-68.111

Aptitude full-upgrade upgraded kernel to 3.13.0-68. Kernel has been installed but grub.cfg is not updated properly, neither from post-install nor from a manually initiated update-grub. Tried reinstalling all of grub + kernel. Still doesn't work. Installing the kernel produces the following:

-----------------------------------------------------------------------------------------
The following NEW packages will be installed:
  linux-image-3.13.0-68-generic{a} linux-image-extra-3.13.0-68-generic{a} linux-image-generic
0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/51.8 MB of archives. After unpacking 146 MB will be used.
Do you want to continue? [Y/n/?]
Selecting previously unselected package linux-image-3.13.0-68-generic.
(Reading database ... 273362 files and directories currently installed.)
Preparing to unpack .../linux-image-3.13.0-68-generic_3.13.0-68.111_i386.deb ...
Done.
Unpacking linux-image-3.13.0-68-generic (3.13.0-68.111) ...
Selecting previously unselected package linux-image-extra-3.13.0-68-generic.
Preparing to unpack .../linux-image-extra-3.13.0-68-generic_3.13.0-68.111_i386.deb ...
Unpacking linux-image-extra-3.13.0-68-generic (3.13.0-68.111) ...
Selecting previously unselected package linux-image-generic.
Preparing to unpack .../linux-image-generic_3.13.0.68.74_i386.deb ...
Unpacking linux-image-generic (3.13.0.68.74) ...
Setting up linux-image-3.13.0-68-generic (3.13.0-68.111) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-68-generic /boot/vmlinuz-3.13.0-68-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-68-generic /boot/vmlinuz-3.13.0-68-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-68-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-68-generic /boot/vmlinuz-3.13.0-68-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-68-generic /boot/vmlinuz-3.13.0-68-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-68-generic /boot/vmlinuz-3.13.0-68-generic
Generating grub configuration file ...
grub-probe: error: not a directory.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-68-generic.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-68-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-68-generic:
 linux-image-extra-3.13.0-68-generic depends on linux-image-3.13.0-68-generic; however:
  Package linux-image-3.13.0-68-generic is not configured yet.

dpkg: error processing package linux-image-extra-3.13.0-68-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-3.13.0-68-generic; however:
  Package linux-image-3.13.0-68-generic is not configured yet.
 linux-image-generic depends on linux-image-extra-3.13.0-68-generic; however:
  Package linux-image-extra-3.13.0-68-generic is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
                            Errors were encountered while processing:
 linux-image-3.13.0-68-generic
 linux-image-extra-3.13.0-68-generic
 linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up linux-image-3.13.0-68-generic (3.13.0-68.111) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
initrd.img(/boot/initrd.img-3.13.0-68-generic
) points to /boot/initrd.img-3.13.0-68-generic
 (/boot/initrd.img-3.13.0-68-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-3.13.0-68-generic.postinst line 491.
vmlinuz(/boot/vmlinuz-3.13.0-68-generic
) points to /boot/vmlinuz-3.13.0-68-generic
 (/boot/vmlinuz-3.13.0-68-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-3.13.0-68-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-68-generic /boot/vmlinuz-3.13.0-68-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-68-generic /boot/vmlinuz-3.13.0-68-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-68-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-68-generic /boot/vmlinuz-3.13.0-68-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-68-generic /boot/vmlinuz-3.13.0-68-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-68-generic /boot/vmlinuz-3.13.0-68-generic
Generating grub configuration file ...
grub-probe: error: not a directory.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-68-generic.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-68-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-68-generic:
 linux-image-extra-3.13.0-68-generic depends on linux-image-3.13.0-68-generic; however:
  Package linux-image-3.13.0-68-generic is not configured yet.

dpkg: error processing package linux-image-extra-3.13.0-68-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-3.13.0-68-generic; however:
  Package linux-image-3.13.0-68-generic is not configured yet.
 linux-image-generic depends on linux-image-extra-3.13.0-68-generic; however:
  Package linux-image-extra-3.13.0-68-generic is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-3.13.0-68-generic
 linux-image-extra-3.13.0-68-generic
 linux-image-generic
-------------------------------------------------------------------------------

Updating grub manually produces the following:

Generating grub configuration file ...
grub-probe: error: not a directory.

Tags: trusty
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1516014

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: trusty
Revision history for this message
Mark Dunn (mark-dunn75) wrote :

I can run apport-collect, but it won't go through the proxy (I already tried http_proxy and https_proxy). Is there a way of doing this offline and then sending the report manually?

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Mark Dunn (mark-dunn75) wrote :

Checked with "grub-probe -v" today and got:

grub-probe: info: /dev/sda is a parent of /dev/sda.
grub-probe: info: opening hd0.
grub-probe: info: drive = 0.
grub-probe: info: the size of hd0 is 125045424.
grub-probe: error: unknown filesystem.

Changed type from ext4 to ext2 and grub-update works again. Looks like ext4-support for /boot has been stripped from grub-update (at least for trusty with 32 bit, my trusty machine with 64 bit does not have this problem, both have version 2.02~beta2-9ubuntu1.4)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.