Errors were encountered while processing: linux-image-2.6.35-24-generic linux-image-2.6.35-25-generic linux-image-generic E: Sub-process /usr/bin/dpkg returned an error code (1)

Asked by Joe Bob

I'm obviously no Ubuntu guru, it looks like I have multiple linux-images installed, I'm getting the infamous dpkg error when attempting to update my system:

Errors were encountered while processing: linux-image-2.6.35-24-generic linux-image-2.6.35-25-generic linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Of course there are lots of posts in forums about it, however, none of their solutions have worked for me. I've spent hours pouring through them so I figured I'd come here.

I went through the steps here:
https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

Here's what It got for me:

user@BlueThunder:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"
user@BlueThunder:~$ uname -a
Linux BlueThunder 2.6.35-23-generic #41-Ubuntu SMP Wed Nov 24 11:55:36 UTC 2010 x86_64 GNU/Linux
user@BlueThunder:~$ sudo rm /var/lib/apt/lists/lock
[sudo] password for user:
user@BlueThunder:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
user@BlueThunder:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
user@BlueThunder:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
user@BlueThunder:~$ sudo rm -rf /var/lib/dpkg/updates/*
user@BlueThunder:~$ sudo rm -rf /var/lib/apt/lists
user@BlueThunder:~$ sudo rm /var/cache/apt/*.bin
user@BlueThunder:~$ sudo mkdir /var/lib/apt/lists
user@BlueThunder:~$ sudo mkdir /var/lib/apt/lists/partial
user@BlueThunder:~$ LANG=C;sudo apt-get clean
user@BlueThunder:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
user@BlueThunder:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up linux-image-2.6.35-24-generic (2.6.35-24.42) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-24-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
 * dkms: running auto installation service for kernel 2.6.35-24-generic
 * nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
/etc/default/grub: 9: splash”: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-24-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.35-24-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-image-2.6.35-25-generic (2.6.35-25.44) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-25-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
 * dkms: running auto installation service for kernel 2.6.35-25-generic
 * nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
/etc/default/grub: 9: splash”: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-25-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.35-25-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-2.6.35-25-generic; however:
  Package linux-image-2.6.35-25-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
Setting up sip-communicator (1.0-alpha6-nightly.build.3273) ...
Errors were encountered while processing:
 linux-image-2.6.35-24-generic
 linux-image-2.6.35-25-generic
 linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
user@BlueThunder:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Get:1 http://dl.google.com stable Release.gpg [197B]
Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en
Get:2 http://dl.google.com stable Release [1347B]
Get:3 http://dl.google.com stable/main amd64 Packages [1073B]
Get:4 http://download.sip-communicator.org unstable/ Release.gpg [72B]
Ign http://download.sip-communicator.org/deb/ unstable/ Translation-en
Get:5 http://archive.canonical.com maverick Release.gpg [198B]
Ign http://archive.canonical.com/ubuntu/ maverick/partner Translation-en
Get:6 http://extras.ubuntu.com maverick Release.gpg [72B]
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en
Get:7 http://ppa.launchpad.net maverick Release.gpg [316B]
Ign http://ppa.launchpad.net/mystilleef/scribes-daily/ubuntu/ maverick/main Translation-en
Get:8 http://archive.ubuntu.com maverick Release.gpg [198B]
Ign http://archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en
Get:9 http://download.sip-communicator.org unstable/ Release [1580B]
Get:10 http://archive.canonical.com maverick Release [5925B]
Get:11 http://extras.ubuntu.com maverick Release [9762B]
Get:12 http://ppa.launchpad.net maverick Release [9755B]
Get:13 http://packages.medibuntu.org maverick Release.gpg [197B]
Ign http://archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Get:14 http://archive.ubuntu.com maverick-updates Release.gpg [198B]
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en
Get:15 http://archive.ubuntu.com maverick-security Release.gpg [198B]
Ign http://archive.ubuntu.com/ubuntu/ maverick-security/main Translation-en
Get:16 http://download.sip-communicator.org unstable/ Packages [3401B]
Ign http://archive.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-security/universe Translation-en
Get:17 http://archive.ubuntu.com maverick Release [39.8kB]
Get:18 http://archive.canonical.com maverick/partner amd64 Packages [6687B]
Get:19 http://ppa.launchpad.net maverick/main Sources [707B]
Ign http://packages.medibuntu.org/ maverick/free Translation-en
Get:20 http://extras.ubuntu.com maverick/main Sources [656B]
Get:21 http://ppa.launchpad.net maverick/main amd64 Packages [664B]
Get:22 http://archive.ubuntu.com maverick-updates Release [31.4kB]
Get:23 http://extras.ubuntu.com maverick/main amd64 Packages [700B]
Ign http://packages.medibuntu.org/ maverick/non-free Translation-en
Get:24 http://archive.ubuntu.com maverick-security Release [31.4kB]
Get:25 http://archive.ubuntu.com maverick/main Sources [829kB]
Get:26 http://packages.medibuntu.org maverick Release [6857B]
Get:27 http://packages.medibuntu.org maverick/free amd64 Packages [3257B]
Get:28 http://packages.medibuntu.org maverick/non-free amd64 Packages [6527B]
Get:29 http://archive.ubuntu.com maverick/restricted Sources [4370B]
Get:30 http://archive.ubuntu.com maverick/universe Sources [4179kB]
Get:31 http://archive.ubuntu.com maverick/multiverse Sources [151kB]
Get:32 http://archive.ubuntu.com maverick/main amd64 Packages [1491kB]
Get:33 http://archive.ubuntu.com maverick/restricted amd64 Packages [6002B]
Get:34 http://archive.ubuntu.com maverick/universe amd64 Packages [5771kB]
Get:35 http://archive.ubuntu.com maverick/multiverse amd64 Packages [180kB]
Get:36 http://archive.ubuntu.com maverick-updates/main Sources [82.7kB]
Get:37 http://archive.ubuntu.com maverick-updates/restricted Sources [778B]
Get:38 http://archive.ubuntu.com maverick-updates/universe Sources [29.5kB]
Get:39 http://archive.ubuntu.com maverick-updates/multiverse Sources [1504B]
Get:40 http://archive.ubuntu.com maverick-updates/main amd64 Packages [225kB]
Get:41 http://archive.ubuntu.com maverick-updates/restricted amd64 Packages [1802B]
Get:42 http://archive.ubuntu.com maverick-updates/universe amd64 Packages [94.2kB]
Get:43 http://archive.ubuntu.com maverick-updates/multiverse amd64 Packages [2700B]
Get:44 http://archive.ubuntu.com maverick-security/main Sources [25.7kB]
Get:45 http://archive.ubuntu.com maverick-security/restricted Sources [14B]
Get:46 http://archive.ubuntu.com maverick-security/universe Sources [9802B]
Get:47 http://archive.ubuntu.com maverick-security/multiverse Sources [649B]
Get:48 http://archive.ubuntu.com maverick-security/main amd64 Packages [87.2kB]
Get:49 http://archive.ubuntu.com maverick-security/restricted amd64 Packages [14B]
Get:50 http://archive.ubuntu.com maverick-security/universe amd64 Packages [45.0kB]
Get:51 http://archive.ubuntu.com maverick-security/multiverse amd64 Packages [1531B]
Fetched 13.4MB in 12s (1098kB/s)
Reading package lists... Done
W: Duplicate sources.list entry http://download.sip-communicator.org/deb/ unstable/ Packages (/var/lib/apt/lists/download.sip-communicator.org_deb_unstable_Packages)
W: You may want to run apt-get update to correct these problems
user@BlueThunder:~$ sudo dpkg --clear-avail
user@BlueThunder:~$ sudo dpkg --configure -a
Setting up linux-image-2.6.35-24-generic (2.6.35-24.42) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-24-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
 * dkms: running auto installation service for kernel 2.6.35-24-generic
 * nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
/etc/default/grub: 9: splash”: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-24-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.35-24-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-image-2.6.35-25-generic (2.6.35-25.44) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-25-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
 * dkms: running auto installation service for kernel 2.6.35-25-generic
 * nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
/etc/default/grub: 9: splash”: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-25-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.35-25-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-2.6.35-25-generic; however:
  Package linux-image-2.6.35-25-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-2.6.35-24-generic
 linux-image-2.6.35-25-generic
 linux-image-generic
user@BlueThunder:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up linux-image-2.6.35-24-generic (2.6.35-24.42) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-24-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
 * dkms: running auto installation service for kernel 2.6.35-24-generic
 * nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.35-24-generic /boot/vmlinuz-2.6.35-24-generic
/etc/default/grub: 9: splash”: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-24-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.35-24-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-image-2.6.35-25-generic (2.6.35-25.44) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-25-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
 * dkms: running auto installation service for kernel 2.6.35-25-generic
 * nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.35-25-generic /boot/vmlinuz-2.6.35-25-generic
/etc/default/grub: 9: splash”: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-25-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.35-25-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-2.6.35-25-generic; however:
  Package linux-image-2.6.35-25-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-2.6.35-24-generic
 linux-image-2.6.35-25-generic
 linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
user@BlueThunder:~$

Please let me know what else you need from me to help in troubleshooting this process. Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Joe Bob
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

You seem to have made an error when manually editing some of the grub config files.

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

I guess your editor has replaced the quotes " by wrong quotes ”

Look in your config files are rectify the quotes, they should be like this "

Revision history for this message
Joe Bob (fishes2004) said :
#2

Hey Manfred,

Thanks for the reply, it seems like the correct quotes are in the /etc/default/grub, line 9 reads:

GRUB_CMDLINE_LINUX=""

Here's all the uncommented code in that file:

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=~@~]quiet splash~@~]
GRUB_CMDLINE_LINUX=""

Thanks for the help, let me know what you think or if I'm missing something here.

Revision history for this message
Joe Bob (fishes2004) said :
#3

Ah, I did find the problem, you were right. This line here:

GRUB_CMDLINE_LINUX_DEFAULT=~@~]quiet splash~@~]

Should have been:

GRUB_CMDLINE_LINUX_DEFAULT=~"quiet splash"

I didn't even see that it was suppose to have quotes at first.

Thank you so much for the help!

Revision history for this message
Joe Bob (fishes2004) said :
#4

Sorry, I left a tilda ~ in the line, it should be:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"