grub error in linux-image-2.6.31-17-generic postinst blocking package installation

Bug #509200 reported by Aman
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Binary package hint: grub

whenever i try to install any new software va Synaptec or whenever i try to run update i get the following :-
i thought it has only affected my PC but now my laptop has got this problem too :-

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 154386 files and directories currently installed.)
Preparing to replace xserver-xorg-video-intel 2:2.9.0-1ubuntu2 (using .../xserver-xorg-video-intel_2%3a2.9.0-1ubuntu2.1_i386.deb) ...
Unpacking replacement xserver-xorg-video-intel ...
Processing triggers for man-db ...
Setting up linux-image-2.6.31-17-generic (2.6.31-17.54) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.31-17-generic
Running postinst hook script /usr/sbin/update-grub.
/etc/default/grub: 7: splash”: not found
User postinst hook script [/usr/sbin/update-grub] exited with value 127
dpkg: error processing linux-image-2.6.31-17-generic (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-2.6.31-17-generic; however:
  Package linux-image-2.6.31-17-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 2.6.31.17.30); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image:
 linux-image depends on linux-image-generic (= 2.6.31.17.30); however:
  Package linuxNo 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.
                                                                   No apport report written because MaxReports is reached already
                                                 -image-generic is not configured yet.
dpkg: error processing linux-image (--configure):
 dependency problems - leaving unconfigured
Setting up grub-pc (1.97~beta4-1ubuntu4.1) ...
/etc/default/grub: 7: splash”: not found
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 127
Setting up cpp-4.4 (4.4.1-4ubuntu9) ...
No apport report written because MaxReports is reached already
                                                              Setting up libgomp1 (4.4.1-4ubuntu9) ...

Setting up gcc-4.4 (4.4.1-4ubuntu9) ...
Setting up xserver-xorg-video-intel (2:2.9.0-1ubuntu2.1) ...

Setting up g++-4.4 (4.4.1-4ubuntu9) ...
Setting up libstdc++6-4.4-dev (4.4.1-4ubuntu9) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 linux-image-2.6.31-17-generic
 linux-image-generic
 linux-generic
 linux-image
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up linux-image-2.6.31-17-generic (2.6.31-17.54) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.31-17-generic
Running postinst hook script /usr/sbin/update-grub.
/etc/default/grub: 7: splash”: not found
User postinst hook script [/usr/sbin/update-grub] exited with value 127
dpkg: error processing linux-image-2.6.31-17-generic (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-2.6.31-17-generic; however:
  Package linux-image-2.6.31-17-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
Setting up grub-pc (1.97~beta4-1ubuntu4.1) ...
/etc/default/grub: 7: splash”: not found
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 2.6.31.17.30); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image:
 linux-image depends on linux-image-generic (= 2.6.31.17.30); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-image (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-2.6.31-17-generic
 linux-image-generic
 grub-pc
 linux-generic
 linux-image

Revision history for this message
Aman (gaur-aman) wrote :

i have tried doing
sudo apt-get -f install
but did not help

i have tried removing these half configured/installed packages from the status file
/var/lib/dpkg/status

but it does not help whenever i try using update manager the problem comes again
Plz Help

Revision history for this message
rww (rww-deactivatedaccount) wrote :

(apologies for any repeat emails, I misread)

summary: - Unable to install synaptec and Update Manager
+ Error in grub-pc postinst blocking package installation
summary: - Error in grub-pc postinst blocking package installation
+ grub error in linux-image-2.6.31-17-generic postinst blocking package
+ installation
affects: grub (Ubuntu) → grub2 (Ubuntu)
Revision history for this message
Aman (gaur-aman) wrote :

how do we solve it????

Revision history for this message
Monkey (monkey-libre) wrote :

Try with the next command in the Terminal and report the output:
sudo dpkg --configure -a

Thank You for making Ubuntu better.

Changed in grub2 (Ubuntu):
status: New → Incomplete
Revision history for this message
Colin Watson (cjwatson) wrote :

The terminal log says:

  %s

It seems that you've edited /etc/default/grub in a way that made its syntax invalid. You need to edit it again and fix it. You can test whether you've got it right using 'sh -n /etc/default/grub', which should produce no output if the file has valid syntax.

Bug 484499 is about the fact that the upgrade crashed rather than warning you about this and giving you the opportunity to fix it.

Revision history for this message
Colin Watson (cjwatson) wrote :

Sorry, buggy script. That last message should have read as follows:

The terminal log says:

  /etc/default/grub: 7: splash”: not found

It seems that you've edited /etc/default/grub in a way that made its syntax invalid. You need to edit it again and fix it. You can test whether you've got it right using 'sh -n /etc/default/grub', which should produce no output if the file has valid syntax.

Bug 484499 is about the fact that the upgrade crashed rather than warning you about this and giving you the opportunity to fix it.

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.