Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having an issue with the current kernel and was recommended to install the newest mainline kernel. However, with only two kernel boot options (3.2.0-24 and 3.2.0-25) I'm afraid I'll lose the working v3.2.0-24 if I install the mainline Debian package.

Where can I set how many back-kernels are left on the system?

share|improve this question
up vote 1 down vote accepted

So long as the mainline kernel does not remove the previous ones (it shouldn't by default) by replacing them (and as I said it shouldn't normally do that), you previous kernels will remain intact.

You can manage the number of kernels you have by adding or removing kernels via the package manager. You can also set limits in grub I believe (but I don't remember off hand, so I would have to update my answer).

share|improve this answer
So, it appears I'm an idiot lol. I've always just looked at the linux-image-generic package. Never realized it was a meta-package... I always wondered why the number of installed kernels dropped from like 3-4 to 2, guess it was just a dependency change in the linux-image-generic metapackage. – Chuck R Jun 25 '12 at 23:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.