package linux-image-2.6.31-15-generic 2.6.31-15.50 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #481689 reported by Romeo Bourassa
110
This bug affects 22 people
Affects Status Importance Assigned to Milestone
grub (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: grub

Update manager was performing an update. It could not find /boot/grub/menu.lst. It asked me if I wanted to generate one and gave me a choice "y/N". I chose no by default. This is the error I got.

E: linux-image-2.6.31-15-generic: subprocess installed post-installation script returned error exit status 1

E: linux-image-generic: dependency problems - leaving unconfigured

E: linux-generic: dependency problems - leaving unconfigured

Questions.

Where is the grub/menu.lst file?
Where is the xorg.conf file?

This is Ubuntu 9.10 Beta with daily updates.

ProblemType: Package
Architecture: i386
Date: Fri Nov 13 09:55:52 2009
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess installed post-installation script returned error exit status 1
NonfreeKernelModules: nvidia
Package: linux-image-2.6.31-15-generic 2.6.31-15.50
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
SourcePackage: grub
Title: package linux-image-2.6.31-15-generic 2.6.31-15.50 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Uname: Linux 2.6.31-11-generic i686

Revision history for this message
Romeo Bourassa (rdbourassa) wrote :
Revision history for this message
Francesco (fra-tocci) wrote :

I think the problem is a wrong package installed by default. I had the old "grub" metapackage installed instead of "grub2", although the package "grub-common" installed is version 1.97b4

Revision history for this message
Steve Langasek (vorlon) wrote :

Romeo,

Thank you for taking the time to report this issue and help to improve Ubuntu.

The problem here is that you have grub1 installed, when the version of grub installed with Ubuntu 9.10 is grub2. There were a number of bugs in this area that were resolved between beta and final release; can you tell us what packages are removed if you try to run 'sudo apt-get install grub-pc'?

Changed in grub (Ubuntu):
status: New → Incomplete
Revision history for this message
Vlad Losev (vlad) wrote :

I have the same problem. I had my system partition formatted into ext4 (this was a new install, not upgrade). The installer did not ask me which version of grub to install. After the installation I started seeing this message after each kernel upgrade.

sudo apt-get install grub-pc wants to remove installed package grub:

vlad@pea:~$ sudo apt-get install grub-pc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  desktop-base
The following packages will be REMOVED:
  grub
The following NEW packages will be installed:
  grub-pc
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0B/434kB of archives.
After this operation, 807kB of additional disk space will be used.
Do you want to continue [Y/n]?

Revision history for this message
Romeo Bourassa (rdbourassa) wrote : Re: [Bug 481689] Re: package linux-image-2.6.31-15-generic 2.6.31-15.50 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Download full text (5.3 KiB)

Dear Steve:

Here is the printout of my terminal when I ran the "sudo apt-get install grub-pc" command you ask me to do.

romeo@romeo-laptop:~$ sudo apt-get install grub-pc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  desktop-base
The following packages will be REMOVED:
  grub
The following NEW packages will be installed:
  grub-pc
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 434kB of archives.
After this operation, 807kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://mirror.cc.columbia.edu karmic-updates/main grub-pc 1.97~beta4-1ubuntu4 [434kB]
Fetched 434kB in 25s (17.0kB/s)
Preconfiguring packages ...
dpkg: grub: dependency problems, but removing anyway as you requested:
 startupmanager depends on grub-pc | grub; however:
  Package grub-pc is not installed.
  Package grub is to be removed.
(Reading database ... 334038 files and directories currently installed.)
Removing grub ...
Processing triggers for man-db ...
Selecting previously deselected package grub-pc.
(Reading database ... 333993 files and directories currently installed.)
Unpacking grub-pc (from .../grub-pc_1.97~beta4-1ubuntu4_i386.deb) ...
Processing triggers for man-db ...
Setting up grub-pc (1.97~beta4-1ubuntu4) ...
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0) /dev/sda
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-16-generic
Found initrd image: /boot/initrd.img-2.6.31-16-generic
Found linux image: /boot/vmlinuz-2.6.31-15-generic
Found initrd image: /boot/initrd.img-2.6.31-15-generic
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found linux image: /boot/vmlinuz-2.6.31-13-generic
Found initrd image: /boot/initrd.img-2.6.31-13-generic
Found linux image: /boot/vmlinuz-2.6.31-11-generic
Found initrd image: /boot/initrd.img-2.6.31-11-generic
Found memtest86+ image: /memtest86+.bin
done

romeo@romeo-laptop:~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-16-generic
Found initrd image: /boot/initrd.img-2.6.31-16-generic
Found linux image: /boot/vmlinuz-2.6.31-15-generic
Found initrd image: /boot/initrd.img-2.6.31-15-generic
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found linux image: /boot/vmlinuz-2.6.31-13-generic
Found initrd image: /boot/initrd.img-2.6.31-13-generic
Found linux image: /boot/vmlinuz-2.6.31-11-generic
Found initrd image: /boot/initrd.img-2.6.31-11-generic
Found memtest86+ image: /memtest86+.bin
done
romeo@romeo-laptop:~$

I hope this information helps you. I will see at the next update if this problem is solved.

Thanks for your help,

Romeo Bourassa

________________________________
From: Steve Langasek <email address hidden>
To: <email address hidden>
Sent: Sun, December 6, 2009 5:26:11 AM
Subject: [Bug 481689] Re: p...

Read more...

Revision history for this message
Steve Langasek (vorlon) wrote :

Removing grub is exactly what should happen, you'll find on the next update that this issue is now fixed for you.

It looks like you were affected by one of the bugs in the beta cycle that forced removal of grub-pc in favor of grub - since this bug is fixed, I'm closing this report.

Changed in grub (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Romeo Bourassa (rdbourassa) wrote :

Thanks!!!!

________________________________
From: Steve Langasek <email address hidden>
To: <email address hidden>
Sent: Mon, December 7, 2009 3:25:06 AM
Subject: [Bug 481689] Re: package linux-image-2.6.31-15-generic 2.6.31-15.50 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Removing grub is exactly what should happen, you'll find on the next
update that this issue is now fixed for you.

It looks like you were affected by one of the bugs in the beta cycle
that forced removal of grub-pc in favor of grub - since this bug is
fixed, I'm closing this report.

** Changed in: grub (Ubuntu)
       Status: Incomplete => Invalid

--
package linux-image-2.6.31-15-generic 2.6.31-15.50 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
https://bugs.launchpad.net/bugs/481689
You received this bug notification because you are a direct subscriber
of the bug.

Status in “grub” package in Ubuntu: Invalid

Bug description:
Binary package hint: grub

Update manager was performing an update. It could not find /boot/grub/menu.lst. It asked me if I wanted to generate one and gave me a choice "y/N". I chose no by default. This is the error I got.

E: linux-image-2.6.31-15-generic: subprocess installed post-installation script returned error exit status 1

E: linux-image-generic: dependency problems - leaving unconfigured

E: linux-generic: dependency problems - leaving unconfigured

Questions.

Where is the grub/menu.lst file?
Where is the xorg.conf file?

This is Ubuntu 9.10 Beta with daily updates.

ProblemType: Package
Architecture: i386
Date: Fri Nov 13 09:55:52 2009
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess installed post-installation script returned error exit status 1
NonfreeKernelModules: nvidia
Package: linux-image-2.6.31-15-generic 2.6.31-15.50
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
SourcePackage: grub
Title: package linux-image-2.6.31-15-generic 2.6.31-15.50 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Uname: Linux 2.6.31-11-generic i686

To unsubscribe from this bug, go to:
https://bugs.launchpad.net/ubuntu/+source/grub/+bug/481689/+subscribe

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.