Ubuntu – Wrong kernel version returned by uname Ubuntu 16.04.1 LT

aptdpkgkernel

uname -a returns:

  Linux decebal-mobile 4.2.0-35-generic #40-Ubuntu SMP Tue Mar 15 22:15:45 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

but E: Package 'linux-headers-4.2.0-35-generic' has no installation candidate
and my machine says linux headers version is at linux-headers-4.4.0-21-generic.

I have seen a similar problem described in a forum.

How can I update that?

Best Answer

You can fix this by

sudo apt install linux-generic

That will install the correct kernel.

Related Question