package linux-generic failed to install/upgrade: User postinst hook script [/sbin/update-grub] exited with value 10

Bug #297167 reported by Valmis
34
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

package linux-generic failed to install/upgrade with the following error:
User postinst hook script [/sbin/update-grub] exited with value 10

:: DIAGNOSTIC ::
Run the following command :
sudo DEBCONF_DEBUG=developer sh -x /usr/sbin/update-grub ; echo $?

And check for the lines:
-----------
debconf (developer): <-- X_LOADTEMPLATEFILE /var/lib/dpkg/info/ucf.templates ucf
debconf (developer): --> 10 failed to open /var/lib/dpkg/info/ucf.templates: No such file or directory
10
-----------

The file /var/lib/dpkg/info/ucf.templates is missing due to a broken ucf installation.

:: FIX ::
reinstall ucf:
sudo apt-get clean
sudo apt-get update
sudo apt-get install --reinstall ucf

Revision history for this message
Valmis (benjamin-heimlich) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

The cause of the failure is:
=====
Richte linux-image-2.6.24-19-generic ein (2.6.24-19.41) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.24-19-generic
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.24-19.34 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.24-19.34 was configured last, according to dpkg)
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.24-21-generic
Found kernel: /boot/vmlinuz-2.6.24-19-generic
Found kernel: /boot/memtest86+.bin
User postinst hook script [/sbin/update-grub] exited with value 10
dpkg: Fehler beim Bearbeiten von linux-image-2.6.24-19-generic (--configure):
=====

affecting to linux. likely dup of bug 235638

Is your /boot partition full ?

Could you please provide the output of df -P ?

Thanks.

Revision history for this message
Valmis (benjamin-heimlich) wrote : Re: [Bug 297167] Re: package linux-generic 2.6.24.21.23 failed to install/upgrade:Abhängigkeitsprobleme- lasse es unkonfiguriert

Hi, my partition is not full.

benni@Schwarzer-Kasten:~$ df -P
Dateisystem 1024‐Blöcke Benutzt Verfügbar Kapazit. Eingehängt
auf
/dev/sda1 236279456 8133680 216238000 4% /
varrun 1031504 104 1031400 1% /var/run
varlock 1031504 0 1031504 0% /var/lock
udev 1031504 44 1031460 1% /dev
devshm 1031504 68 1031436 1% /dev/shm
lrm 1031504 45040 986464
5% /lib/modules/2.6.24-19-generic/volatile
gvfs-fuse-daemon 236279456 8133680 216238000
4% /home/benni/.gvfs

Am Mittwoch, den 12.11.2008, 12:58 +0000 schrieb Jean-Baptiste
Lallement:
> Thanks for your report.
>
> The cause of the failure is:
> =====
> Richte linux-image-2.6.24-19-generic ein (2.6.24-19.41) ...
> Running depmod.
> update-initramfs: Generating /boot/initrd.img-2.6.24-19-generic
> Not updating initrd symbolic links since we are being updated/reinstalled
> (2.6.24-19.34 was configured last, according to dpkg)
> Not updating image symbolic links since we are being updated/reinstalled
> (2.6.24-19.34 was configured last, according to dpkg)
> Running postinst hook script /sbin/update-grub.
> Searching for GRUB installation directory ... found: /boot/grub
> Searching for default file ... found: /boot/grub/default
> Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
> Searching for splash image ... none found, skipping ...
> Found kernel: /boot/vmlinuz-2.6.24-21-generic
> Found kernel: /boot/vmlinuz-2.6.24-19-generic
> Found kernel: /boot/memtest86+.bin
> User postinst hook script [/sbin/update-grub] exited with value 10
> dpkg: Fehler beim Bearbeiten von linux-image-2.6.24-19-generic (--configure):
> =====
>
> affecting to linux. likely dup of bug 235638
>
> Is your /boot partition full ?
>
> Could you please provide the output of df -P ?
>
> Thanks.
>
> ** Changed in: linux (Ubuntu)
> Sourcepackagename: None => linux
> Status: New => Incomplete
>

Revision history for this message
Rayid R. Bahabri (bahabri) wrote : Re: package linux-generic 2.6.24.21.23 failed to install/upgrade: Abhängigkeitsprobleme - lasse es unkonfiguriert

i have the same issue & reported it here:

did you find how to resolve it?

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/305353

Changed in linux:
importance: Undecided → Medium
status: Incomplete → Confirmed
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Could you please provide the output of the following command :
sudo DEBCONF_DEBUG=developer sh -x /usr/sbin/update-grub ; echo $?

Changed in linux:
status: Confirmed → Incomplete
Revision history for this message
Rayid R. Bahabri (bahabri) wrote :

thank you for your kind follow up...

here is the out put i got

-----------
~$ sudo DEBCONF_DEBUG=developer sh -x /usr/sbin/update-grub ; echo $?
+ set -e
+ . /usr/share/debconf/confmodule
+ [ ! ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [ ]
+ exec /usr/share/debconf/frontend /usr/sbin/update-grub
debconf (developer): frontend started
debconf (developer): Trying to find a templates file..
debconf (developer): Trying /usr/sbin/update-grub.templates
debconf (developer): Trying /usr/share/debconf/templates/update-grub.templates
debconf (developer): Couldn't find a templates file.
debconf (developer): frontend running, package name is
debconf (developer): starting /usr/sbin/update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.24-22-generic
Found kernel: /boot/vmlinuz-2.6.24-19-generic
Found kernel: /boot/vmlinuz-2.6.24-16-generic
Found kernel: /boot/memtest86+.bin
debconf (developer): <-- X_LOADTEMPLATEFILE /var/lib/dpkg/info/grub.templates grub
debconf (developer): --> 0
debconf (developer): <-- X_LOADTEMPLATEFILE /var/lib/dpkg/info/ucf.templates ucf
debconf (developer): --> 10 failed to open /var/lib/dpkg/info/ucf.templates: No such file or directory
10

================

the directory is there:

$ ls -la /var/lib/dpkg/
total 5164
drwxr-xr-x 7 root root 4096 2008-12-06 15:50 .
drwxr-xr-x 57 root root 4096 2008-12-03 02:38 ..
drwxr-xr-x 2 root root 4096 2008-12-04 21:33 alternatives
-rw-r--r-- 1 root root 268820 2008-12-06 15:50 available
-rw-r--r-- 1 root root 268820 2008-12-05 04:43 available-old
-rw-r--r-- 1 root root 8 2008-04-22 20:49 cmethopt
-rw-r--r-- 1 root root 98 2008-07-05 08:12 diversions
-rw-r--r-- 1 root root 169 2008-07-05 08:12 diversions-old
drwxr-xr-x 2 root root 262144 2008-12-05 04:41 info
-rw-r----- 1 root root 0 2008-12-07 07:50 lock
drwxr-xr-x 2 root root 4096 2008-02-13 04:50 parts
-rw-r--r-- 1 root root 65 2008-04-22 21:01 statoverride
-rw-r--r-- 1 root root 30 2008-04-22 20:59 statoverride-old
-rw-r--r-- 1 root root 1478798 2008-12-06 15:50 status
-rw-r--r-- 1 root root 1446285 2008-10-28 19:58 status.backup
-rw-r--r-- 1 root root 1478798 2008-12-05 04:43 status-old
drwxr-xr-x 2 root root 4096 2008-12-05 01:09 triggers
drwxr-xr-x 2 root root 4096 2008-12-06 15:50 updates

thanks again...

Revision history for this message
Rayid R. Bahabri (bahabri) wrote :

ok, the directory is there but the file "ucf.templates" is not there!

Revision history for this message
Rayid R. Bahabri (bahabri) wrote :

cool, i've re-installed ucf and everything worked out perfectly

i'm using the new kernel

$ uname -a
Linux king-desktop 2.6.24-22-generic #1 SMP Mon Nov 24 18:32:42 UTC 2008 i686 GNU/Linux

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your feedback.

This has probably been caused by the previous upgrade error:
dpkg: serious warning: files list file for package `ucf' missing, assuming package has no files currently installed.

I'm closing this report, because you've fixed it with a re-installation of ucf

Thanks for your time and don't hesitate to submit any new bug.

Changed in linux:
status: Incomplete → Invalid
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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