Problems loading new kernel

Tim Frost timfrost at xtra.co.nz
Thu Oct 21 06:31:48 UTC 2010


Joep,

On Wed, 2010-10-20 at 11:10 +0200, Joep L. Blom wrote:

> 
> I'm updating ubuntu karmic (9.04) and although I know that it is
> maybe 
> more sensible to upgrade to Lucid I first want this problem solved.
> The problem is that when installing I get the post-install errors and
> in 
> the dpkg log I find the following lines:
> _______________________________________________________
> 2010-10-20 09:45:09 startup packages configure
> 2010-10-20 09:45:09 configure linux-headers-2.6.31-22-generic 
> 2.6.31-22.67 2.6.31-22.67
> 2010-10-20 09:45:09 status half-configured 
> linux-headers-2.6.31-22-generic 2.6.31-22.67
> 2010-10-20 09:45:10 configure linux-image-2.6.31-22-generic
> 2.6.31-22.67 
> 2.6.31-22.67
> 2010-10-20 09:45:10 status half-configured
> linux-image-2.6.31-22-generic 
> 2.6.31-22.67
> ____________________________________________________________
> In the update log I find:
> run-parts: execuring /etc/kernel/postinst.d/nvidia-common
> runparts: /etc/kernel/postinst.d/nvidia-common exited with return code
> 10

After installing the new kernel (linux-image-2.6.31-22-generic version
2.6.31-22.67 in your case), the scripts in
directory /etc/kernel/postinst.d are run to set up the new kernel.  The
script /etc/kernel/postinst.d/nvidia-common is returning exit code 10,
rather than exit code 0 for success.  Because the script is returning a
non-zero exit code, the post-install phase of the kernel configuration
is considered to have failed.

> failed to process /etc/kernel/postinst.d at 
> .../linux-image-2.6.41.22-generic.postinst line 1002
> 
> H^aAs anybody a clue how to prevent this error and how to install
> this 
> kernel. 

As I indicate above, the problem is with the return code from the
post-install script /etc/kernel/postinst.d/nvidia-common.  This has been
logged as a bug in launchpad (see
https://bugs.launchpad.net/ubuntu/+source/nvidia-common/+bug/601407)

The solution reported there is to re-install nvidia-common.  
 
> Which is also a re-install as uname -a gives as kernel 
> 2.6.31-22-generic so I don't know why update want to install this
> kernel.

It is an upgrade - you will find that the version number has changed.
Compare the current installed version, as reported in the third column
of the output of 'dpkg -l linux-image-2.6.31-22-generic' with the value
2.6.31-22.67, which is the version number of the package that is being
installed.  The last number should also be available at the start of the
output from 'uname -v' - for my maverick system I get:
uname -r: 2.6.35-22-generic
uname -v: #35-Ubuntu ..
and dpkg -l shows linux-image-2.6.35-22-generic 2.6.35-22.35



> Joep
> 
> 

Tim

-- 
Tim Frost <timfrost at xtra.co.nz>





More information about the ubuntu-users mailing list