Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Reinstall an old kernel?

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
circus78
Posts: 35
Joined: 2012-09-14 08:47

Reinstall an old kernel?

#1 Post by circus78 »

Hi, I am using:

Code: Select all

# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.11 (wheezy)
Release:        7.11
Codename:       wheezy
I just upgraded kernel and other packages:

Code: Select all

Start-Date: 2017-06-20  15:06:26
Commandline: apt-get upgrade
Upgrade: libc-bin:amd64 (2.13-38+deb7u11, 2.13-38+deb7u12), linux-image-3.2.0-4-amd64:amd64 (3.2.88-1, 3.2.89-1), linux-headers-3.2.0-4-amd64:amd64 (3.2.88-1, 3.2.89-1), locales:amd64 (2.13-38+deb7u11, 2.13-38+deb7u12), linux-headers-3.2.0-4-common:amd64 (3.2.88-1, 3.2.89-1), multiarch-support:amd64 (2.13-38+deb7u11, 2.13-38+deb7u12), libc6-dev:amd64 (2.13-38+deb7u11, 2.13-38+deb7u12), linux-libc-dev:amd64 (3.2.88-1, 3.2.89-1), libc-dev-bin:amd64 (2.13-38+deb7u11, 2.13-38+deb7u12), libc6:amd64 (2.13-38+deb7u11, 2.13-38+deb7u12)
End-Date: 2017-06-20  15:07:11
After this upgrade, one application stops working.
I would like to boot previous kernel.. how can I do that?
It seems that at moment I have just one kernel:

Code: Select all

# dpkg -l |grep linux-image
ii  linux-image-3.2.0-4-amd64          3.2.89-1                                amd64        Linux 3.2 for 64-bit PCs
ii  linux-image-amd64                  3.2+46                                  amd64        Linux for 64-bit PCs (meta-package)
Thank you

User avatar
orythem27
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: Reinstall an old kernel?

#2 Post by orythem27 »

circus78 wrote:linux-image-3.2.0-4-amd64:amd64 (3.2.88-1, 3.2.89-1)
linux-headers-3.2.0-4-amd64:amd64 (3.2.88-1, 3.2.89-1)
Maybe you can download the old package (3.2.88-1) from http://snapshot.debian.org/package/linu ... 4_3.2.88-1 and use `dpkg -i` to manually downgrade.
After downgrading, you can `apt-mark hold` the package to avoid it from being upgraded again.
circus78 wrote:After this upgrade, one application stops working.
Or, if possible, you could describe the problem and see if we can work around it. Maybe it's not related to the kernel.

circus78
Posts: 35
Joined: 2012-09-14 08:47

Re: Reinstall an old kernel?

#3 Post by circus78 »

Thank you orythem27, I just installed previous kernel, and now application is working again.
It seems that other people, with more recent Debian version, got same problems..

https://community.ubnt.com/t5/UniFi-Wir ... -p/1967180



Thank you

Bulkley
Posts: 6386
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: Reinstall an old kernel?

#4 Post by Bulkley »

circus78, for the future, always keep a spare kernel, one that you have used and meets your requirements. It makes it much easier when a new one causes problems and all you have to do is reboot into the old one. You will need to prevent the good kernel from being upgraded. See this for instructions on how to hold a package.

circus78
Posts: 35
Joined: 2012-09-14 08:47

Re: Reinstall an old kernel?

#5 Post by circus78 »

Bulkley wrote:circus78, for the future, always keep a spare kernel, one that you have used and meets your requirements. It makes it much easier when a new one causes problems and all you have to do is reboot into the old one. You will need to prevent the good kernel from being upgraded. See this for instructions on how to hold a package.

Hi Bulkley, is there a way to keep last n kernel, like in CentOS?

Code: Select all

# package-cleanup --oldkernels --count=2
I would like to install every upgrade as usual, I just want to keep at least 1 or 2 old kernel, for safety.
Thankyou

Post Reply