[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How does one restore the original stable linux-image after it has been removed and purged?




From: The Wanderer <wanderer@fastmail.fm>
To: Debian-user List <debian-user@lists.debian.org>
Sent: Thursday, May 29, 2014 11:19 PM
Subject: Re: How does one restore the original stable linux-image after it has been removed and purged?

> Although this should work, it's unnecessarily complicated if all you want to do is remove a single linux-image package. This looks like it's
> designed to remove all kernel packages except the one for the kernel that's currently running.

You're right. The command that I copied from a Google search removes ALL kernel packages except the most current one.

> First, check to see whether the old version is still available through your configured repositories:

> $ apt-get update
> $ apt-cache policy linux-image-3.2.0-4-amd64

> If you're in luck, you'll see something like the following:



> ========
> linux-image-3.2.0-4-amd64:

> Installed: 3.2.57-3
> Candidate: 3.2.57-3
> Version table:
> 3.2.57-3 0
> 500 http://ftp.us.debian.org/debian/ stable/main amd64 Packages
> ========

> If that is the case, then you should be able to reinstall the old kernel easily, like any other package:

> $ apt-get install linux-image-3.2.0-4-amd64

> It's not guaranteed that you will get *exactly* the same version as before; for example, if kernel security updates have been released and
> packaged for Debian stable, you may get a kernel that includes those as well. However, at worst, you will get the same kernel that someone
> doing a new install today would get.

Thanks for the clarification.


Reply to: