The latest version of the kernel is hopelessly broken for me so I want to pin back to an earlier version. The best way to do that seems to be to pin the linux-generic package to an earlier version.

But how do I determine the correct earlier version?

ETA: maybe I wasn't clear.

My machine is currently running linux-image-3.13.0-133-generic. linux-image-3.13.0-133-generic is broken. It hangs on uninterruble interrupts when accessing ext4 file systems. That's not acceptable. The latest kernel that I know worked was linux-image-3.13.0-125-generic. I'd like to pin it, but pinning linux-image-3.13.0-133-generic is pointless since it will never be upgraded anyway. What I really need to pin is linux-image-generic. I just don't know what version of linux-image-generic depends on linux-image-3.13.0-133-generic.

  • 1
    The correct is the version that your system boots with. – Pilot6 Oct 19 '17 at 16:53
  • You've missed the point. Maybe I wasn't clear. I've expanded my description. Maybe that will help. – Rich Pixley Oct 19 '17 at 21:18
  • Simply uninstall the kernel using the synaptic package manager, just make sure you have the previous kernel. sudo apt-get install linux=3.13.0-125 or something like that – userDepth Oct 19 '17 at 21:37
  • 1
    Possible duplicate of How can I avoid kernel updates? – Panther Oct 20 '17 at 2:20

Uninstall all kernel versions > 3.13.0-125-generic.

Then you put the kernel on hold. Speaking in broad strokes, pinning has to do with repository preferences not package preferences, or at least in this case it is far easier to put the kernel on hold.

See : How can I avoid kernel updates?

And https://help.ubuntu.com/community/PinningHowto

Pinning is a process that allows you to remain on a stable release of Ubuntu (or any other debian system) while grabbing packages from a more recent version.

Note however that the processes described below will only work if things like libc6 versions match, so you should probably not do this on an Ubuntu system. I strongly recommend you look at UbuntuBackports before doing this.

Pinning is used as a last resort and in some ways does the opposite of putting a package on hold. It marks the stable repositories as preferred and allows you to pull in a few packages . This can cause significant breakage however and should be done only as a last resort. backports, ppa, and compiling from source are all preferred to pinning.

If you do not understand the term "things like libc6 versions match" you should not be pinning . Note also the warning "you should probably not do this on an Ubuntu system."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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