users copy/pasting grub instructions from ubuntugeek blog for nvidia/fglrx fix end up with broken /etc/default/grub file

Bug #576296 reported by Miguel
22
This bug affects 6 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: grub2

I try to update the kernel to linux-image-2.6.32-22 (with the update manager) with Lucid Lynx with a 64bits architecture but the installation failed. On reboot, I did not have the new kernel option in the GRUB menu and appear a error log.

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: linux-image-2.6.32-22-generic 2.6.32-22.33
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic x86_64
Architecture: amd64
Date: Thu May 6 10:09:02 2010
ErrorMessage: el subproceso script post-installation instalado devolvió el código de salida de error 127
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
SourcePackage: grub2
Title: package linux-image-2.6.32-22-generic 2.6.32-22.33 failed to install/upgrade: el subproceso script post-installation instalado devolvió el código de salida de error 127

Revision history for this message
Miguel (miguel-duran-sindreu) wrote :
Revision history for this message
Oliver Grawert (ogra) wrote :

looks like your /etc/default/grub file is corrupt by either editing it manually or by a tool that edited it, can you attach this file please ?

Revision history for this message
Miguel (miguel-duran-sindreu) wrote : Re: [Bug 576296] Re: package linux-image-2.6.32-22-generic 2.6.32-22.33 failed to install/upgrade: el subproceso script post-installation instalado devolvió el código de salida de error 127
Download full text (3.8 KiB)

Hi again. First of all, thanks for the very fast response!. Okay, here is my
grub file:

--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
GRUB_CMDLINE_LINUX=" vga=758"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1280×1024

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to
Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entrys
#GRUB_DISABLE_LINUX_RECOVERY="true"

--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------

I did change manually the file as you said. What I did was to change the
line 9 "GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”" for:

"GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash nomodeset
video=uvesafb:mode_option=1280×1024-24,mtrr=3,scroll=ywrap”"

I also change the line 18 for:

GRUB_GFXMODE=1280×1024

I did this because it said in a forum that it was a way to see correctly the
logo of ubuntu at the login and logout. It also said to do further
configurations which I did, as it is said in:

http://www.ubuntugeek.com/known-ubuntu-10-04lucid-lynx-issuesbugs-with-workarounds.html

<http://www.ubuntugeek.com/known-ubuntu-10-04lucid-lynx-issuesbugs-with-workarounds.html>Afterwards,
i have tried to delete the new kernel with the command "sudo aptitude purge
linux-image-2.6.32-22-generic" (because with a "uname -r" command it said
that I was using the old one) but I begin to think that it wasnt a good idea
because it now also deleted the linux-image-generic.

Anyway, thanks for everything!!

2010/5/6 Oliver Grawert <email address hidden>

> looks like your /etc/default/grub file is corrupt by either editing it
> manually or by a tool that edited it, can you attach this file please ?
>
> --
> package linux-image-2.6.32-22-generic 2.6.32-22.33 failed to
> install/upgrade: el subproceso script post-installation instalado devolvió
> el código de salida de error 127
> https://bugs.launchpad.net/bugs/576296
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “grub2” package in Ubuntu: New
>
> Bug description:
> Binary package hint: grub2
>
> I try to update the kernel to linux-image-2.6.32-22 (with the update
> manager) with Lucid Lynx with a 64bits architecture but the installation
> failed. On reboot, I did not have the new kernel option in the GRUB menu and
> appear a error log.
>
> ProblemType: Package
> DistroRelease: Ubuntu 10.04
> Package: linux-image-2.6.32-22-generic 2.6.32-22.33
> ProcVe...

Read more...

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote : Re: package linux-image-2.6.32-22-generic 2.6.32-22.33 failed to install/upgrade: el subproceso script post-installation instalado devolvió el código de salida de error 127

The quotes you've pasted in your conf file are wrong.
The forum automatically converts " to ” which is not valid shell script. Replace ” with " and you're set.
I'm closing this report because that's not a bug with ubuntu.

Changed in grub2 (Ubuntu):
status: New → Invalid
Revision history for this message
Miguel (miguel-duran-sindreu) wrote : Re: [Bug 576296] Re: package linux-image-2.6.32-22-generic 2.6.32-22.33 failed to install/upgrade: el subproceso script post-installation instalado devolvió el código de salida de error 127

Okay! Thank you very much!

2010/5/6 Jean-Baptiste Lallement <email address hidden>

> The quotes you've pasted in your conf file are wrong.
> The forum automatically converts " to ” which is not valid shell script.
> Replace ” with " and you're set.
> I'm closing this report because that's not a bug with ubuntu.
>
> ** Changed in: grub2 (Ubuntu)
> Status: New => Invalid
>
> --
> package linux-image-2.6.32-22-generic 2.6.32-22.33 failed to
> install/upgrade: el subproceso script post-installation instalado devolvió
> el código de salida de error 127
> https://bugs.launchpad.net/bugs/576296
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “grub2” package in Ubuntu: Invalid
>
> Bug description:
> Binary package hint: grub2
>
> I try to update the kernel to linux-image-2.6.32-22 (with the update
> manager) with Lucid Lynx with a 64bits architecture but the installation
> failed. On reboot, I did not have the new kernel option in the GRUB menu and
> appear a error log.
>
> ProblemType: Package
> DistroRelease: Ubuntu 10.04
> Package: linux-image-2.6.32-22-generic 2.6.32-22.33
> ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
> Uname: Linux 2.6.32-21-generic x86_64
> Architecture: amd64
> Date: Thu May 6 10:09:02 2010
> ErrorMessage: el subproceso script post-installation instalado devolvió el
> código de salida de error 127
> InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
> SourcePackage: grub2
> Title: package linux-image-2.6.32-22-generic 2.6.32-22.33 failed to
> install/upgrade: el subproceso script post-installation instalado devolvió
> el código de salida de error 127
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/576296/+subscribe
>

Revision history for this message
Oliver Grawert (ogra) wrote :

changed the description to use this bug as a master for the ton of duplicates we get

summary: - package linux-image-2.6.32-22-generic 2.6.32-22.33 failed to
- install/upgrade: el subproceso script post-installation instalado
- devolvió el código de salida de error 127
+ users copy/pasting grub instructions from ubuntugeek blog for
+ nvidia/fglrx fix end up with broken /etc/default/grub file
Revision history for this message
Martin Tremblay (martinatremblay) wrote :

I have this same problem... but cannot edit or delete the grub file due to permissions issues.
How can I access as root so I can delete or edit the grub file?

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

@Martin: open a terminal and run
$ sudo gedit /etc/default/grub

But how did you broke it if you don't know how to edit it ? Are you sure you're facing the same problem ?

Revision history for this message
Martin Tremblay (martinatremblay) wrote :
Download full text (5.8 KiB)

Good point JB - I am almost positive I caused the same issue... but could be wrong

I have had problems with slow HD video playback, so I followed some instructions that made numerous changes on my system. (I don't recall the specific changes and cannot locate the site with the suggested changes)

Since following these instructions I have had problems updating or installing anything from "Ubuntu Software Center" or through the "update manager"

I consistently get "package operation failed" with the following details:

----------------------------------------------------------------------

installArchives() failed: Selecting previously deselected package libenet0debian1.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 196326 files and directories currently installed.)
Unpacking libenet0debian1 (from .../libenet0debian1_1.2.1-1_i386.deb) ...
Selecting previously deselected package blockattack.
Unpacking blockattack (from .../blockattack_1.3.1-4build1_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.UTF8.cache...
Processing triggers for desktop-file-utils ...
Processing triggers for menu ...
Processing triggers for python-support ...
Setting up linux-image-2.6.32-22-generic (2.6.32-22.35) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.32-22-generic
Running postinst hook script /usr/sbin/update-grub.
/etc/default/grub: 9: splash: not found
User postinst hook script [/usr/sbin/update-grub] exited with value 127
dpkg: error processing linux-image-2.6.32-22-generic (--configure):
 subprocess installed post-installation script returned error exit status 127
Setting up memtest86+ (4.00-2ubuntu3) ...
/etc/default/grub: 9: splash: not found
dpkg: error processing memtest86+ (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of ubuntu-standard:
 ubuntu-standard depends on memtest86+; however:
  Package memtest86+ is not configured yet.
dpkg: error processing ubuntu-standard (--configure):
 dependency problems - leaving unconfigured
Setting up grub-pc (1.98-1ubuntu6) ...
No apport report written because the error message indicates its a followup error from a previous failure.
/etc/default/grub: 9: splash: not found
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 127
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-2.6.32-22-generic; however:
  Package...

Read more...

Revision history for this message
Martin Tremblay (martinatremblay) wrote :

Than you JB for your assistance - this corrected an issue I have had for months!

Removing the ” and replacing with " in the following line in GRUB: GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
has corrected the error.

Prior to this I was unable to perform any updates without receiving the error:
/etc/default/grub: 9: splash: not found
User postinst hook script [/usr/sbin/update-grub] exited with value 127

This error limited my ability to update Ubuntu/Linux system to linux-image-2.6.32-22-generic

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.