Why is apt no longer updating the kernel?

Somehow I got a 12.04 server to stop updating the kernel. It’s stuck at 3.2.0-24-generic and doesn’t want to fetch any new updates. The new kernel at the moment is 3.2.0-29

apt-get clean && sudo apt-get autoremove 
apt-get -f install
apt-get update
apt-get dist-upgrade

Shows “0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.” There were no failed installs. /var/log/aptitude doesn’t show any errors

My sources.list:

###### Ubuntu Main Repos
deb http://ca.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise main restricted

###### Ubuntu Update Repos
deb http://ca.archive.ubuntu.com/ubuntu/ precise-security main restricted
deb http://ca.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise-security main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ precise-updates main restricted

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner

Anyone know what’s wrong?

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

You have probably removed linux metapackage by accident. If so, that should be fixed by:

sudo apt-get install linux

Further explanation:

Because of technical reasons it’s not wise for the kernels to be upgraded and replaced with the new one (i.e. let’s say if the new one fails you may still boot into the old one).
Thus they are packaged under the names like linux-image-3.2.0-24-generic.

So, if you upgrade the system, technically there is no update to this version! Unless you install the linux metapackage which always depends on the latest kernel, meaning that whenever an update to the kernel is available, linux will change version, and it will depend on the newer kernel, and thus the new kernel will be automatically installed.

Remember that your older kernel won’t be removed this way, which is a good thing. If you find anything odd you may boot into the old one (grub -> Previous versions or something like that) and remove the new kernel.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply