Hello Everybody!

I just installed ubuntu 9.10 on my lappy and everytime I update/install I get an error report regarding my kernel. The queer thing is that it is a report regarding a kernel that I am not using. This I can't understand. So, I hope you can enlighten me on how to remove this kernel that gives an error report.

Here is a sample of an output when I tried to install gparted.

Code:
jun@jun-laptop:~$ uname -r
2.6.31-14-generic


jun@jun-laptop:~$ sudo apt-get install gparted
[sudo] password for jun: 
Sorry, try again.
[sudo] password for jun: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  dmraid kpartx libdmraid1.0.0.rc15
Suggested packages:
  xfsprogs reiserfsprogs reiser4progs jfsutils ntfsprogs
The following NEW packages will be installed:
  dmraid gparted kpartx libdmraid1.0.0.rc15
0 upgraded, 4 newly installed, 0 to remove and 2 not upgraded.
4 not fully installed or removed.
Need to get 627kB of archives.
After this operation, 4,395kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ph.archive.ubuntu.com karmic/main libdmraid1.0.0.rc15 1.0.0.rc15-11ubuntu3 [112kB]
Get:2 http://ph.archive.ubuntu.com karmic/main dmraid 1.0.0.rc15-11ubuntu3 [36.6kB]
Get:3 http://ph.archive.ubuntu.com karmic/main gparted 0.4.5-2ubuntu1 [451kB]
Get:4 http://ph.archive.ubuntu.com karmic/main kpartx 0.4.8-14ubuntu2 [27.9kB] 
Fetched 627kB in 14s (42.0kB/s)                                                
Selecting previously deselected package libdmraid1.0.0.rc15.
(Reading database ... 136796 files and directories currently installed.)
Unpacking libdmraid1.0.0.rc15 (from .../libdmraid1.0.0.rc15_1.0.0.rc15-11ubuntu3_i386.deb) ...
Selecting previously deselected package dmraid.
Unpacking dmraid (from .../dmraid_1.0.0.rc15-11ubuntu3_i386.deb) ...
Selecting previously deselected package gparted.
Unpacking gparted (from .../gparted_0.4.5-2ubuntu1_i386.deb) ...
Selecting previously deselected package kpartx.
Unpacking kpartx (from .../kpartx_0.4.8-14ubuntu2_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for desktop-file-utils ...
Setting up linux-image-2.6.31-17-generic (2.6.31-17.54) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.31-17-generic
Running postinst hook script /usr/sbin/update-grub.
/etc/default/grub: 11: nomodeset: not found
User postinst hook script [/usr/sbin/update-grub] exited with value 127
dpkg: error processing linux-image-2.6.31-17-generic (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-2.6.31-17-generic; however:
  Package linux-image-2.6.31-17-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 2.6.31.17.30); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
Setting up grub-pc (1.97~beta4-1ubuntu4.1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                    /etc/default/grub: 11: nomodeset: not found
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 127
No apport report written because MaxReports is reached already
                                                              Setting up libdmraid1.0.0.rc15 (1.0.0.rc15-11ubuntu3) ...

Setting up dmraid (1.0.0.rc15-11ubuntu3) ...
update-initramfs: deferring update (trigger activated)

Setting up gparted (0.4.5-2ubuntu1) ...

Setting up kpartx (0.4.8-14ubuntu2) ...

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.31-17-generic
Errors were encountered while processing:
 linux-image-2.6.31-17-generic
 linux-image-generic
 linux-generic
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
jun@jun-laptop:~$
By the way, I can install the packages but only I am getting this error report from the said kernel.

Thanks!