can not download from software center or synaptic package manager

Asked by Mark Botto

If I try to download from software center I get a message saying (previous installation hasn't been completed) The installation could have failed because of an error in the corresponding software package or it was cancelled in an unfriendly way. You have to repair this before you can install or remove any further software. And when I open synaptic package manager I get a message saying.(AN ERROR OCCURRED the following details are provided: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.
Also when I open the package manager I get a message saying (not all updates can be installed) run a partial upgrade ,which starts a program that goes as far as listing found linux generic -pae images .and then hangs there. Running $ sudo apt-get upgrade
gives this message--E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. When I run this in terminal it does the same as running the partial upgrade.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
mfauzirahman
Solved:
Last query:
Last reply:
Revision history for this message
Chris (fabricator4) said :
#1

You haven't specified what release you are running. Please provide the output from:

uname -a; lsb_release -a

It seems like the system lost power during an update.
First update the package lists:

sudo apt-get update

We might need to know what the stuck packages are. Please also provide the actual output of:

sudo dpkg --configure -a

Chris

Revision history for this message
Mark Botto (meebotto) said :
#2

I'm running Ubuntu 10.04.3 LTS and here is the output of sudo dpkg --configure -a kram@kram-laptop:~$ name -a; lsb_release -a
No command 'name' found, did you mean:
 Command 'named' from package 'bind9' (main)
 Command 'namei' from package 'util-linux' (main)
 Command 'lame' from package 'lame' (multiverse)
 Command 'cname' from package 'cfs' (universe)
 Command 'uname' from package 'coreutils' (main)
 Command 'mame' from package 'sdlmame' (multiverse)
name: command not found
LSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch:cxx-3.0-ia32:cxx-3.0-noarch:cxx-3.1-ia32:cxx-3.1-noarch:cxx-3.2-ia32:cxx-3.2-noarch:cxx-4.0-ia32:cxx-4.0-noarch:desktop-3.1-ia32:desktop-3.1-noarch:desktop-3.2-ia32:desktop-3.2-noarch:desktop-4.0-ia32:desktop-4.0-noarch:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch:graphics-3.1-ia32:graphics-3.1-noarch:graphics-3.2-ia32:graphics-3.2-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-3.2-ia32:printing-3.2-noarch:printing-4.0-ia32:printing-4.0-noarch:qt4-3.1-ia32:qt4-3.1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 10.04.3 LTS
Release: 10.04
Codename: lucid
kram@kram-laptop:~$ sudo dpkg --configure -a
[sudo] password for kram:
Setting up grub-pc (1.98-1ubuntu13) ...
Installation finished. No error reported.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-38-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-38-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-37-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-37-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-36-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-36-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-35-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-35-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-34-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-34-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-32-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-32-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-31-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-31-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-30-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-30-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-29-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-29-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-27-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-27-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-24-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-24-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-23-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-22-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-22-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-21-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-38-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-38-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-37-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-37-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-36-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-36-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-35-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-35-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-34-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-34-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-32-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-32-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-31-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-31-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-30-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-30-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-29-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-29-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-27-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-27-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-24-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-24-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-23-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-22-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-22-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-21-generic-pae

Revision history for this message
Chris (fabricator4) said :
#3

The command was 'uname', not 'name'. You can cut and paste into a terminal window to avoid any errors.

The dpkg --configure seemed to work fine - there's no errors in the output that you pasted here. The Linux images that it finds are what it is adding to the grub boot menu. You might like to delete some of the older kernels if want - just be careful not to delete the current one.

you can find out what kernel is currently running if you type the uname command correctly:

uname -a

I suggest you do a software update and see if there are any errors.
I'm not sure if you've done the package list update already today:

sudo apt-get update

then you can try to update the software packages:

sudo apt-get upgrade

Please post the full output with any error messages if it doesn't work.

Chris

Revision history for this message
Mark Botto (meebotto) said :
#4

kram@kram-laptop:~$ uname -a
Linux kram-laptop 2.6.32-37-generic-pae #81-Ubuntu SMP Fri Dec 2 22:24:22 UTC 2011 i686 GNU/Linux
kram@kram-laptop:~$ sudo apt-get update
[sudo] password for kram:
E: Lists directory /var/lib/apt/lists/partial is missing.
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
kram@kram-laptop:~$ sudo apt-get upgrade
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
kram@kram-laptop:~$

Revision history for this message
Chris (fabricator4) said :
#5

OK, now we're getting somewhere. I note that you're runnin kernel 2.6.32-37. The Current version is 2.6.32-38 so it probably hasn't managed to upgrade the kernel at this stage.

do the following in a terminal:

sudo mkdir -v /var/lib/apt/lists/partial/

and it should respond with the successful result:
"mkdir: created directory `/var/lib/apt/lists/partial'"

If it comes up with anything drastically different then stop and post the result here.
If it is successful, first make sure that all update programs like Software Center, aptitude, synaptic, dpkg etc are NOT running, then try the update command again. You can only have one update type program running at a time for obvious reasons.

sudo apt-get update

and post any error messages here.

Chris

Revision history for this message
Chris (fabricator4) said :
#6

Oops, I've got you doing the package update again (confusing terminology). To actually update all the packages on your system you need to do:

sudo apt-get upgrade

Chris

Revision history for this message
Mark Botto (meebotto) said :
#7

This is the output I getkram@kram-laptop:~$ sudo mkdir -v /var/lib/apt/lists/partial/
mkdir: cannot create directory `/var/lib/apt/lists/partial/': File exists
kram@kram-laptop:~$ sudo apt-get upgrade
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
kram@kram-laptop
after running sudo dpkg --configure -a I get kram@kram-laptop:~$ sudo mkdir -v /var/lib/apt/lists/partial/
mkdir: cannot create directory `/var/lib/apt/lists/partial/': File exists
kram@kram-laptop:~$ sudo apt-get upgrade
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
kram@kram-laptop:~$ sudo dpkg --configure -a
Setting up grub-pc (1.98-1ubuntu13) ...
Installation finished. No error reported.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-38-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-38-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-37-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-37-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-36-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-36-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-35-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-35-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-34-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-34-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-32-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-32-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-31-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-31-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-30-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-30-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-29-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-29-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-27-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-27-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-24-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-24-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-23-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-22-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-22-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-21-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-38-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-38-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-37-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-37-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-36-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-36-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-35-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-35-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-34-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-34-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-32-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-32-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-31-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-31-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-30-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-30-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-29-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-29-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-27-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-27-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-24-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-24-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-23-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-22-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-22-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-21-generic-pae
program stall after running this command

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

ok now run:

sudo dpkg --configure -a

what is output?

thanks

Revision history for this message
Chris (fabricator4) said :
#9

Ah, OK. I think you're saying it never completes the dpkg --configure: it just hangs?

It also appears to be a WUBI install, since it's using grub-pc. It might be good idea to check on how much room the filesystem has to work in. Please give the output of:

df

which might give us an idea if there is a problem with the virtual drive

Chris

Revision history for this message
Mark Botto (meebotto) said :
#10

Here is kram@kram-laptop:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 113908268 11032660 97089400 11% /
none 250228 248 249980 1% /dev
none 254452 596 253856 1% /dev/shm
none 254452 204 254248 1% /var/run
none 254452 0 254452 0% /var/lock
none 254452 0 254452 0% /lib/init/rw
kram@kram-laptop:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

Can you give the output of my command please

Thanks

Revision history for this message
Mark Botto (meebotto) said :
#12

kram@kram-laptop:~$ sudo dpkg --configure -a
[sudo] password for kram:
Setting up grub-pc (1.98-1ubuntu13) ...
Installation finished. No error reported.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-38-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-38-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-37-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-37-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-36-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-36-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-35-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-35-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-34-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-34-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-32-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-32-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-31-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-31-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-30-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-30-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-29-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-29-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-27-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-27-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-24-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-24-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-23-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-22-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-22-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-21-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-38-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-38-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-37-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-37-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-36-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-36-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-35-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-35-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-34-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-34-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-32-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-32-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-31-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-31-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-30-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-30-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-29-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-29-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-27-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-27-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-24-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-24-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-23-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-22-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-22-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-21-generic-pae
 This command always hangs at this point

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#13

Can you give the output of:

uname -a; dpkg -l | grep linux-image-2

Lets clear that lot up a bit

Revision history for this message
Mark Botto (meebotto) said :
#14

kram@kram-laptop:~$ uname -a; dpkg -l | grep linux-image-2
Linux kram-laptop 2.6.32-37-generic-pae #81-Ubuntu SMP Fri Dec 2 22:24:22 UTC 2011 i686 GNU/Linux
rc linux-image-2.6.31-16-generic-pae 2.6.31-16.53 Linux kernel image for version 2.6.31 on x86
rc linux-image-2.6.31-17-generic-pae 2.6.31-17.54 Linux kernel image for version 2.6.31 on x86
rc linux-image-2.6.31-19-generic-pae 2.6.31-19.56 Linux kernel image for version 2.6.31 on x86
rc linux-image-2.6.31-20-generic-pae 2.6.31-20.58 Linux kernel image for version 2.6.31 on x86
rc linux-image-2.6.31-21-generic-pae 2.6.31-21.59 Linux kernel image for version 2.6.31 on x86
ii linux-image-2.6.32-21-generic-pae 2.6.32-21.32 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-22-generic-pae 2.6.32-22.36 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-23-generic-pae 2.6.32-23.37 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-24-generic-pae 2.6.32-24.43 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-25-generic-pae 2.6.32-25.45 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-26-generic-pae 2.6.32-26.48 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-27-generic-pae 2.6.32-27.49 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-28-generic-pae 2.6.32-28.55 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-29-generic-pae 2.6.32-29.58 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-30-generic-pae 2.6.32-30.59 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-31-generic-pae 2.6.32-31.61 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-32-generic-pae 2.6.32-32.62 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-33-generic-pae 2.6.32-33.72 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-34-generic-pae 2.6.32-34.77 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-35-generic-pae 2.6.32-35.78 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-36-generic-pae 2.6.32-36.79 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-37-generic-pae 2.6.32-37.81 Linux kernel image for version 2.6.32 on x86
iF linux-image-2.6.32-38-generic-pae 2.6.32-38.83 Linux kernel image for version 2.6.32 on x86
kram@kram-laptop:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#15

ok if you run:

sudo dpkg -P linux-image-2.6.31-16-generic-pae
sudo dpkg -P linux-image-2.6.31-17-generic-pae
sudo dpkg -P linux-image-2.6.31-19-generic-pae
sudo dpkg -P linux-image-2.6.31-20-generic-pae
sudo dpkg -P linux-image-2.6.31-21-generic-pae
sudo apt-get --purge remove linux-image-2.6.32-21-generic-pae
sudo apt-get --purge remove linux-image-2.6.32-22-generic-pae
sudo apt-get --purge remove linux-image-2.6.32-23-generic-pae
sudo apt-get --purge remove linux-image-2.6.32-24-generic-pae
sudo apt-get --purge remove linux-image-2.6.32-25-generic-pae
sudo apt-get --purge remove linux-image-2.6.32-26-generic-pae
sudo apt-get --purge remove linux-image-2.6.32-27-generic-pae
sudo apt-get --purge remove linux-image-2.6.32-28-generic-pae
sudo apt-get --purge remove linux-image-2.6.32-29-generic-pae
sudo apt-get --purge remove linux-image-2.6.32-30-generic-pae
sudo apt-get --purge remove linux-image-2.6.32-31-generic-pae
sudo apt-get --purge remove linux-image-2.6.32-32-generic-pae
sudo apt-get --purge remove linux-image-2.6.32-33-generic-pae
sudo apt-get --purge remove linux-image-2.6.32-34-generic-pae
sudo apt-get --purge remove linux-image-2.6.32-35-generic-pae
sudo apt-get --purge remove linux-image-2.6.32-36-generic-pae

It will save space and clear up the Grub menu.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#16

Can you also give the output of:

sudo apt-get --reinstall install linux-image-2.6.32-38-generic-pae

Thanks

Revision history for this message
Mark Botto (meebotto) said :
#17

kram@kram-laptop:~$ udo apt-get --reinstall install linux-image-2.6.32-38-generic-pae
The program 'udo' is currently not installed. You can install it by typing:
sudo apt-get install udo
kram@kram-laptop:~$

Revision history for this message
Mark Botto (meebotto) said :
#18

kram@kram-laptop:~$ udo apt-get --reinstall install linux-image-2.6.32-38-generic-pae
The program 'udo' is currently not installed. You can install it by typing:
sudo apt-get install udo
kram@kram-laptop:~$ sudo apt-get install udo
[sudo] password for kram:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
kram@kram-laptop:~$ sudo dpkg --configure -a
Setting up grub-pc (1.98-1ubuntu13) ...
Installation finished. No error reported.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-38-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-38-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-37-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-37-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-36-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-36-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-35-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-35-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-34-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-34-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-32-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-32-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-31-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-31-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-30-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-30-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-29-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-29-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-27-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-27-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-24-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-24-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-23-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-22-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-22-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-21-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-38-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-38-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-37-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-37-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-36-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-36-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-35-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-35-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-34-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-34-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-32-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-32-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-31-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-31-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-30-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-30-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-29-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-29-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-27-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-27-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-24-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-24-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-23-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-22-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-22-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-21-generic-pae

Revision history for this message
Mark Botto (meebotto) said :
#19

SORRY ! I MISSED YOUR EARLIER REQUEST.HERE IT IS NOW. ONCE AGAIN THE TERMINAL HANG BEFORE IT COMPLETES.I HAVE TO FORCE QUIT ACCESS THE TERMINAL. kram@kram-laptop:~$ sudo dpkg -P linux-image-2.6.31-16-generic-pae
(Reading database ...
(Reading database ... 541597 files and directories currently installed.)
Removing linux-image-2.6.31-16-generic-pae ...
Purging configuration files for linux-image-2.6.31-16-generic-pae ...
Running postrm hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-38-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-38-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-37-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-37-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-36-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-36-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-35-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-35-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-34-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-34-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-32-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-32-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-31-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-31-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-30-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-30-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-29-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-29-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-27-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-27-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-24-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-24-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-23-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-22-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-22-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-21-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-38-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-38-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-37-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-37-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-36-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-36-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-35-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-35-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-34-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-34-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-32-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-32-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-31-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-31-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-30-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-30-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-29-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-29-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-27-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-27-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-24-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-24-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-23-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-22-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-22-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-21-generic-pae

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#20

Use the commands I gave earlier to remove the old kernels. They are unecessary and take up space, they also make this question really long.

Revision history for this message
Mark Botto (meebotto) said :
#21

To actionparsnip: ............ those commands are not working to remove the old kernels

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#22

Can you give the command and output of one of the lines I gave

Thanks

Revision history for this message
Mark Botto (meebotto) said :
#23

kram@kram-laptop:~$ sudo apt-get --purge remove linux-image-2.6.32-21-generic-pae
[sudo] password for kram:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
kram@kram-laptop:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#24

Not sure dude, there's a borked package some place. This is one of the huge weaknesses in package based distributions.

Revision history for this message
Mark Botto (meebotto) said :
#25

If there truly is a borked package,What are my options

Revision history for this message
Sam_ (and-sam) said :
#26

Did you ever try a clean-up in the past?
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove

sudo dpkg --configure -a
sudo apt-get update
sudo apt-get -f install

Again try apply removal as suggested in #15

Revision history for this message
Mark Botto (meebotto) said :
#27

Sam_(and-sam) This is the output for these commands.

Revision history for this message
Mark Botto (meebotto) said :
#28

Sam_(and-sam) This is the output for these commands. kram@kram-laptop:~$ sudo apt-get clean
[sudo] password for kram:
kram@kram-laptop:~$ sudo apt-get autoclean
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
kram@kram-laptop:~$ sudo apt-get autoremove
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
kram@kram-laptop:~$ sudo dpkg --configure -a
Setting up grub-pc (1.98-1ubuntu13) ...
Installation finished. No error reported.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-38-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-38-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-37-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-37-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-36-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-36-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-35-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-35-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-34-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-34-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-32-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-32-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-31-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-31-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-30-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-30-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-29-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-29-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-27-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-27-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-24-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-24-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-23-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-22-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-22-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-21-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-38-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-38-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-37-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-37-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-36-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-36-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-35-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-35-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-34-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-34-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-32-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-32-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-31-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-31-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-30-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-30-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-29-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-29-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-27-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-27-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-24-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-24-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-23-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-22-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-22-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-21-generic-pae
 As stated priorly the terminal halts at this stage

Revision history for this message
Sam_ (and-sam) said :
#29

Ok, thanks, now please, try one after one:
sudo apt-get purge linux-image-2.6.32-21-generic-pae
sudo apt-get purge linux-headers-2.6.32-21-generic-pae
sudo apt-get autoremove
sudo update-grub

Any errors?

Revision history for this message
Mark Botto (meebotto) said :
#30

HERE ARE THE RESULTS OF OF YOUR COMMANDSkram@kram-laptop:~$ sudo apt-get purge linux-image-2.6.32-21-generic-pae
[sudo] password for kram:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
kram@kram-laptop:~$ sudo apt-get purge linux-headers-2.6.32-21-generic-pae
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
kram@kram-laptop:~$ sudo apt-get autoremove
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
kram@kram-laptop:~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-38-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-38-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-37-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-37-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-36-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-36-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-35-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-35-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-34-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-34-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-32-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-32-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-31-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-31-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-30-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-30-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-29-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-29-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-27-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-27-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-24-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-24-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-23-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-22-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-22-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-21-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-38-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-38-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-37-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-37-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-36-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-36-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-35-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-35-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-34-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-34-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-32-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-32-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-31-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-31-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-30-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-30-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-29-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-29-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-27-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-27-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-24-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-24-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-23-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-22-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-22-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot

Revision history for this message
Sam_ (and-sam) said :
#31

Thanks.
Please run:
sudo dpkg --configure -a
sudo dpkg --clear-avail
sudo dpkg-reconfigure -a

Then again:
sudo apt-get purge linux-image-2.6.32-21-generic-pae
sudo apt-get purge linux-headers-2.6.32-21-generic-pae

Revision history for this message
Mark Botto (meebotto) said :
#32

Sam_(and-sam) ----sudo dpkg --configure -a ___________does not complete I have tried this command multiple times. this is the result whenever it runs. kram@kram-laptop:~$ sudo dpkg --configure -a
[sudo] password for kram:
Setting up grub-pc (1.98-1ubuntu13) ...
Installation finished. No error reported.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-38-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-38-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-37-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-37-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-36-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-36-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-35-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-35-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-34-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-34-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-32-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-32-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-31-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-31-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-30-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-30-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-29-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-29-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-27-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-27-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-24-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-24-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-23-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-22-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-22-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-21-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-38-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-38-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-37-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-37-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-36-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-36-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-35-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-35-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-34-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-34-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-32-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-32-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-31-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-31-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-30-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-30-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-29-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-29-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-27-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-27-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-24-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-24-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-23-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-23-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-22-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-22-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-21-generic-pae
                                                                                                                                                                                                                         I have let this command run for hours ,with no further info.when I try to close the terminal I get this warning!

There is still a process running in this terminal. Closing the terminal will kill it

Revision history for this message
Sam_ (and-sam) said :
#33

Thanks again for trying.
Seems it loops forever on generating grub.cfg.
No idea for a solution from my side. Hope someone else does.

The output of #10 states there is no separate /home partition (bad idea), I'd backup important data and reinstall from scratch. On new setup I'd create a separate /home, this way personal data will be kept on new installations.

Revision history for this message
oocevin (ccct007) said :
#34

Try a fresh install. Some times it the only thing to do.

ooseven

Revision history for this message
Best mfauzirahman (mfauzirahman) said :
#35

sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo rm -rf lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update

or try to install new kernel

Revision history for this message
Mark Botto (meebotto) said :
#36

Thanks mfauzirahman, that solved my question.