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)
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-
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:/
Here's what It got for me:
user@BlueThunder:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
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/
[sudo] password for user:
user@BlueThunder:~$ sudo cp -arf /var/lib/dpkg /var/lib/
user@BlueThunder:~$ sudo cp /var/lib/
user@BlueThunder:~$ sudo cp /var/lib/
user@BlueThunder:~$ sudo rm -rf /var/lib/
user@BlueThunder:~$ sudo rm -rf /var/lib/apt/lists
user@BlueThunder:~$ sudo rm /var/cache/
user@BlueThunder:~$ sudo mkdir /var/lib/apt/lists
user@BlueThunder:~$ sudo mkdir /var/lib/
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-
Running depmod.
update-initramfs: Generating /boot/initrd.
Examining /etc/kernel/
run-parts: executing /etc/kernel/
* dkms: running auto installation service for kernel 2.6.35-24-generic
* nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
/etc/default/grub: 9: splash”: not found
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing linux-image-
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
Examining /etc/kernel/
run-parts: executing /etc/kernel/
* dkms: running auto installation service for kernel 2.6.35-25-generic
* nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
/etc/default/grub: 9: splash”: not found
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing linux-image-
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.
linux-
Package linux-image-
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
Setting up sip-communicator (1.0-alpha6-
Errors were encountered while processing:
linux-
linux-
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
user@BlueThunder:~$ LANG=C;sudo apt-get update -o APT::Cache-
Get:1 http://
Ign http://
Get:2 http://
Get:3 http://
Get:4 http://
Ign http://
Get:5 http://
Ign http://
Get:6 http://
Ign http://
Get:7 http://
Ign http://
Get:8 http://
Ign http://
Ign http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Ign http://
Ign http://
Get:14 http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:15 http://
Ign http://
Get:16 http://
Ign http://
Ign http://
Ign http://
Get:17 http://
Get:18 http://
Get:19 http://
Ign http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Ign http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Get:50 http://
Get:51 http://
Fetched 13.4MB in 12s (1098kB/s)
Reading package lists... Done
W: Duplicate sources.list entry http://
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-
Running depmod.
update-initramfs: Generating /boot/initrd.
Examining /etc/kernel/
run-parts: executing /etc/kernel/
* dkms: running auto installation service for kernel 2.6.35-24-generic
* nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
/etc/default/grub: 9: splash”: not found
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing linux-image-
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
Examining /etc/kernel/
run-parts: executing /etc/kernel/
* dkms: running auto installation service for kernel 2.6.35-25-generic
* nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
/etc/default/grub: 9: splash”: not found
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing linux-image-
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-
linux-
linux-
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-
Running depmod.
update-initramfs: Generating /boot/initrd.
Examining /etc/kernel/
run-parts: executing /etc/kernel/
* dkms: running auto installation service for kernel 2.6.35-24-generic
* nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
/etc/default/grub: 9: splash”: not found
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing linux-image-
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
Examining /etc/kernel/
run-parts: executing /etc/kernel/
* dkms: running auto installation service for kernel 2.6.35-25-generic
* nvidia-current (260.19.06)... [ OK ]
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
/etc/default/grub: 9: splash”: not found
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing linux-image-
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.
linux-
Package linux-image-
dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-
linux-
linux-
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: