← Back to team overview

kernel-packages team mailing list archive

[Bug 1516014] [NEW] grub-probe fails with "no directory"

 

Public bug reported:

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.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1516014

Title:
   grub-probe fails  with "no directory"

Status in linux package in Ubuntu:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1516014/+subscriptions


Follow ups