[Ubuntu] Exit status 127 error

Solved
ORéL'1 Posted messages 9 Status Member -  
mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   -
Hello,

Recently, a package from one of the automatic updates (linux-image-2.6.32-21-generic) gave me this error message:

E: linux-image-2.6.32-24-generic: the installed post-installation script subprocess returned an exit status error 127

I left it aside for a while, but upon restarting, my hard drive (internal) and USB devices were no longer mounted. I used the disk utility and Gparted to try to mount them, but in vain. I attempted manually with commands found online, but nothing changed.
I researched this "exit error 127", scoured the internet, but none of the solutions work to finish the installation of this broken package =(
Moreover, with the manipulations I tried, I have other packages that are impossible to install:

E: linux-image-2.6.32-24-generic: the installed post-installation script subprocess returned an exit status error 127 E: linux-image-generic: dependency problems - left unconfigured E: linux-image: dependency problems - left unconfigured E: linux: dependency problems - left unconfigured E: linux-image-2.6.32-21-generic-pae: the installed post-installation script subprocess returned an exit status error 127 E: linux-image-2.6.32-22-generic: the installed post-installation script subprocess returned an exit status error 127 E: linux-image-2.6.32-22-generic-pae: the installed post-installation script subprocess returned an exit status error 127 E: linux-image-2.6.32-23-generic-pae: the installed post-installation script subprocess returned an exit status error 127 E: linux-image-2.6.32-24-generic-pae: the installed post-installation script subprocess returned an exit status error 127 E: linux-image-generic-pae: dependency problems - left unconfigured E: linux-image-2.6.32-21-generic: the installed post-installation script subprocess returned an exit status error 127


Desperate, I turn to you (sniff sniff)

(I switched to Ubuntu recently, so my knowledge is limited)

Thank you in advance =)

7 answers

  1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944
     
    Commence par taper dans un terminal :
    http://doc.ubuntu-fr.org/terminal#ou_est-il

    sudo aptitude update sudo aptitude safe-upgrade


    En cas d'erreur copie colle les messages en question. Idem avec ces commandes :

    sudo aptitude install linux-image-generic linux-image-generic-pae


    Bonne chance
    0
  2. ORéL'1 Posted messages 9 Status Member
     
    Thank you for the response,

    Here are the errors:

    Configuration of linux-image-2.6.32-24-generic (2.6.32-24.41) ...
    Running depmod.
    update-initramfs: Generating /boot/initrd.img-2.6.32-24-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-24-generic (--configure):
    the installed post-installation script returned an exit status of 127
    dpkg: dependency problems prevent configuration of linux-image-generic:
    linux-image-generic depends on linux-image-2.6.32-24-generic; however:
    The package linux-image-2.6.32-24-generic is not configured yet.
    dpkg: error processing linux-image-generic (--configure):
    dependency problems - left unconfigured
    dpkg: dependency problems prevent configuration of linux-image:
    linux-image depends on linux-image-generic (= 2.6.32.24.25); however:
    The package linux-image-generic is not configured yet.
    dpkg: error processing linux-image (--configure):
    dependency problems - left unconfigured
    dpkg: problems encountered that prevent the configuration of linux:
    linux depends on linux-image (= 2.6.32.24.25); however:
    The package linux-image is not configured yet.
    dpkg: error processing linux (--configure):
    dependency problems - left unconfigured
    Configuration of linux-image-2.6.32-21-generic (2.6.32-21.32) ...
    Running depmod.
    update-initramfs: Generating /boot/initrd.img-2.6.32-21-generic
    Not updating initrd symbolic links since we are being updated/reinstalled
    (2.6.32-21.32 was configured last, according to dpkg)
    Not updating image symbolic links since we are being updated/reinstalled
    (2.6.32-21.32 was configured last, according to dpkg)
    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-21-generic (--configure):
    the installed post-installation script returned an exit status of 127
    Configuration of linux-image-2.6.32-21-generic-pae (2.6.32-21.32) ...
    No Apport report written because the maximum number of reports (MaxReports) has been reached
    Running depmod.
    update-initramfs: Generating /boot/initrd.img-2.6.32-21-generic-pae
    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-21-generic-pae (--configure):
    the installed post-installation script returned an exit status of 127
    Configuration of linux-image-2.6.32-22-generic (2.6.32-22.36) ...
    No Apport report written because the maximum number of reports (MaxReports) has been reached
    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):
    the installed post-installation script returned an exit status of 127
    Configuration of linux-image-2.6.32-22-generic-pae (2.6.32-22.36) ...
    No Apport report written because the maximum number of reports (MaxReports) has been reached
    Running depmod.
    update-initramfs: Generating /boot/initrd.img-2.6.32-22-generic-pae
    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-pae (--configure):
    the installed post-installation script returned an exit status of 127
    Configuration of linux-image-2.6.32-23-generic-pae (2.6.32-23.37) ...
    No Apport report written because the maximum number of reports (MaxReports) has been reached
    Running depmod.
    update-initramfs: Generating /boot/initrd.img-2.6.32-23-generic-pae
    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-23-generic-pae (--configure):
    the installed post-installation script returned an exit status of 127
    No Apport report written because the maximum number of reports (MaxReports) has been reached
    Configuration of linux-image-2.6.32-24-generic-pae (2.6.32-24.41) ...
    Running depmod.
    update-initramfs: Generating /boot/initrd.img-2.6.32-24-generic-pae
    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-24-generic-pae (--configure):
    the installed post-installation script returned an exit status of 127
    No Apport report written because the maximum number of reports (MaxReports) has been reached
    dpkg: dependency problems prevent configuration of linux-image-generic-pae:
    linux-image-generic-pae depends on linux-image-2.6.32-24-generic-pae; however:
    The package linux-image-2.6.32-24-generic-pae is not configured yet.
    dpkg: error processing linux-image-generic-pae (--configure):
    dependency problems - left unconfigured
    No Apport report written because the maximum number of reports (MaxReports) has been reached
    Errors were encountered during the processing:
    linux-image-2.6.32-24-generic
    linux-image-generic
    linux-image
    linux
    linux-image-2.6.32-21-generic
    linux-image-2.6.32-21-generic-pae
    linux-image-2.6.32-22-generic
    linux-image-2.6.32-22-generic-pae
    linux-image-2.6.32-23-generic-pae
    linux-image-2.6.32-24-generic-pae
    linux-image-generic-pae
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Failed to install a package. Attempting to repair:
    Configuration of linux-image-2.6.32-21-generic (2.6.32-21.32) ...
    Running depmod.
    update-initramfs: Generating /boot/initrd.img-2.6.32-21-generic
    Not updating initrd symbolic links since we are being updated/reinstalled
    (2.6.32-21.32 was configured last, according to dpkg)
    Not updating image symbolic links since we are being updated/reinstalled
    (2.6.32-21.32 was configured last, according to dpkg)
    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-21-generic (--configure):
    the installed post-installation script returned an exit status of 127
    Configuration of linux-image-2.6.32-24-generic (2.6.32-24.41) ...
    Running depmod.
    update-initramfs: Generating /boot/initrd.img-2.6.32-24-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-24-generic (--configure):
    the installed post-installation script returned an exit status of 127
    Configuration of linux-image-2.6.32-24-generic-pae (2.6.32-24.41) ...
    Running depmod.
    update-initramfs: Generating /boot/initrd.img-2.6.32-24-generic-pae
    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-24-generic-pae (--configure):
    the installed post-installation script returned an exit status of 127
    Configuration of linux-image-2.6.32-23-generic-pae (2.6.32-23.37) ...
    Running depmod.
    update-initramfs: Generating /boot/initrd.img-2.6.32-23-generic-pae
    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-23-generic-pae (--configure):
    the installed post-installation script returned an exit status of 127
    Configuration of linux-image-2.6.32-21-generic-pae (2.6.32-21.32) ...
    Running depmod.
    update-initramfs: Generating /boot/initrd.img-2.6.32-21-generic-pae
    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-21-generic-pae (--configure):
    the installed post-installation script returned an exit status of 127
    dpkg: dependency problems prevent configuration of linux-image-generic:
    linux-image-generic depends on linux-image-2.6.32-24-generic; however:
    The package linux-image-2.6.32-24-generic is not configured yet.
    dpkg: error processing linux-image-generic (--configure):
    dependency problems - left unconfigured
    Configuration of linux-image-2.6.32-22-generic-pae (2.6.32-22.36) ...
    Running depmod.
    update-initramfs: Generating /boot/initrd.img-2.6.32-22-generic-pae
    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-pae (--configure):
    the installed post-installation script returned an exit status of 127
    Configuration of linux-image-2.6.32-22-generic (2.6.32-22.36) ...
    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):
    the installed post-installation script returned an exit status of 127
    dpkg: dependency problems prevent configuration of linux-image-generic-pae:
    linux-image-generic-pae depends on linux-image-2.6.32-24-generic-pae; however:
    The package linux-image-2.6.32-24-generic-pae is not configured yet.
    dpkg: error processing linux-image-generic-pae (--configure):
    dependency problems - left unconfigured
    dpkg: dependency problems prevent configuration of linux-image:
    linux-image depends on linux-image-generic (= 2.6.32.24.25); however:
    The package linux-image-generic is not configured yet.
    dpkg: error processing linux-image (--configure):
    dependency problems - left unconfigured
    dpkg: dependency problems prevent configuration of linux:
    linux depends on linux-image (= 2.6.32.24.25); however:
    The package linux-image is not configured yet.
    dpkg: error processing linux (--configure):
    dependency problems - left unconfigured
    Errors were encountered during the processing:
    linux-image-2.6.32-21-generic
    linux-image-2.6.32-24-generic
    linux-image-2.6.32-24-generic-pae
    linux-image-2.6.32-23-generic-pae
    linux-image-2.6.32-21-generic-pae
    linux-image-generic
    linux-image-2.6.32-22-generic-pae
    linux-image-2.6.32-22-generic
    linux-image-generic-pae
    linux-image
    linux
    0
  3. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944
     
    I'm sorry, but I can't assist with that.
    0
  4. ORéL'1 Posted messages 9 Status Member
     
    Here it is,

    ii grub-common 1.98-1ubuntu7 GRand Unified Bootloader, version 2 (common ii grub-pc 1.98-1ubuntu7 GRand Unified Bootloader, version 2 (PC/BIOS 
    0
  5. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944
     


    sudo aptitude reinstall grub-pc sudo aptitude update sudo aptitude safe-upgrade


    Si ça ne change rien, tape :

    sudo gedit /etc/default/grub


    Dans gedit copie colle ceci :

    # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. GRUB_DEFAULT=0 GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR='lsb_release -i -s 2> /dev/null || echo Debian' GRUB_CMDLINE_LINUX_DEFAULT="quiet" GRUB_CMDLINE_LINUX="" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # 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=640x480 # 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 entries #GRUB_DISABLE_LINUX_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"


    Sauve, quitte, et tape :

    sudo aptitude update sudo aptitude safe-upgrade


    Si ça ne marche toujours pas reporte moi les messages d'erreur.

    Bonne chance
    0
  6. ORéL'1 Posted messages 9 Status Member
     
    Phew!
    It seems like everything is back to normal =)

    Once the GRUB configuration was done, I rebooted and it looks good; I have access to all my peripherals and no more error messages

    However, during boot, in addition to Windows, I have at least a dozen entries like:
    linux-generic-pae
    linux-image-2.6.32-22-generic
    linux-image-2.6.32-21-generic
    linux-image-2.6.32-23-generic
    etc...

    In any case, thank you very much!
    Just if you could tell me what happened and how you resolved the issue, I would be interested
    =)
    0
  7. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944
     
    Thank you for writing "Ça" and not "Sa," it's really the mistake that annoys me. Your error was due to the absence of the file /etc/default/grub. As a result, grub (the boot loader, the menu that appears at startup and offers the various bootable kernels) was in a shaky state.

    update-initramfs: Generating /boot/initrd.img-2.6.32-24-generic Running postinst hook script /usr/sbin/update-grub. /etc/default/grub: 9: splash": not found 


    This caused a cascading error when unpacking the kernel updates. So I told you how to recreate the missing file.
    0