Fedora: how to downgrade (remove) the newest kernel because of a bad update?
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Fedora: how to downgrade (remove) the newest kernel because of a bad update?
Hello,
I have an kernel version: kernel-5.8.18-300.fc33.x86_64.. This one is still working.
This week shutdown and the kernel has been updated/or new kernel has been installed: kernel-5.9.8-200.fc33.x86_64
Next day I boot my system and I got the message: "Oeps there went something wrong... ask you're system administrator", when I boot from the new kernel version.
But now, what is the best way to solve this:
Must I try to install the the version 5.9.8-200 again? But how? And without damaging the "kernel-5.8.18-300.fc33.x86_64" version, which is still working.
Or can I remove the new kernel, so that I downgrade to the version which is still working. And try to update again?
Or... is there another solution, what I don't know?
Hmmm. I used solve that sort of thing by ignoring yum/dnf/whatever, and using rpm. Read man rpm.
They have all sorts of useful options: --nodeps, --force --ignore-this, --ignore-that, etc.
I had to use -ignorearch or somesuch because at the time I had an AMD 80586-133-P75 cpu which went in a 486 boartd, ran at 133Mhz, and roughly equalled a P75. But it read it as a '486
The package manager can remove the newer kernel if that's what you want. Boot from the older one and just remove the new one. You can try reinstalling the newer kernel and the firmware and see if that helps. I would suspect utdated firmware, which can happen if the kernel is put into the repo without all the firmware being updated to match. That should be resolved soon, though. This won't affect the older kernel, it will remain available and working unless you do something truly strange to it.
But... I'm not so familiar with Linux. I use to learn working with Linux.
I'm booting from the older working version. Now I'm searching how can SAVE remove the new ones, by the package manager?
In the meantime a second new kernel is 'installed' which is not working.
Is there a way to find the issue why the kernel is not working? Is there an advanced way to see the core dump maybe?
I'd say the laziest way to downgrade is not to, but to upgrade again. Fedora often do that, and bugfix it fairly fast when the kernel pukes and everybody starts bellyaching.
I have found the issue: It is the NVIDIA card which I have: VGA controller NVIDIA GT215M - GeForce GTS 360M (rev a2) in my Thosiba Qosmio laptop.
My version of the driver was Nvidia driver 340.108 which I had installed a year ago when I started with Linux. I have installed Nvidia driver because I had little issue's on the screen when I switch with a window or moving a window than kind pixels were twinkeling. (I hope that you have an idea what I mean)
So I thought I need to replace the Nouveau driver. I found this:
That guy 'JR' did for me at least a very good job and the site is maintained till 15 january 2021. Now I can startup fedora version 5.9.11-200.fc33.x86_64 (and version 5.9.10-200.fc33.x86_64 as well).
The only thing were I'm afraid for, do I have to this after every fedora update now? I don't think that Nvidia is maintaining this driver...
Or does somebody have a better idea to maintain this?
The only thing were I'm afraid for, do I have to this after every fedora update now? I don't think that Nvidia is maintaining this driver...
I have used previous Nvidia drivers, and if you run an update, usually you don't have to update.
If you update Mesa, or the kernel modules, then you do. Now I know Nvidia had a habit or releasing new kernel very regularly, half of which ended in catastrophe, box not booting, etc. Perhaps they have improved. It's rare to need a kernel update anyhow, unless it's some important security fix.
It's rare to need a kernel update anyhow, unless it's some important security fix.
Say what ?. Aren't we talking Fedora here ?.
In similar situations I simply boot the previous kernel rather than the latest - I have one machine that I don't allow to upgrade at all, but I enforce manual upgrades. Each to their own.
I have an kernel version: kernel-5.8.18-300.fc33.x86_64.. This one is still working.
This week shutdown and the kernel has been updated/or new kernel has been installed: kernel-5.9.8-200.fc33.x86_64
Next day I boot my system and I got the message: "Oeps there went something wrong... ask you're system administrator", when I boot from the new kernel version.
But now, what is the best way to solve this:
Must I try to install the the version 5.9.8-200 again? But how? And without damaging the "kernel-5.8.18-300.fc33.x86_64" version, which is still working.
Or can I remove the new kernel, so that I downgrade to the version which is still working. And try to update again?
Or... is there another solution, what I don't know?
Nico
The issue is likely sorted at this point, however this is a typical example of rolling/bleeding-edge distros disrupting work. Since no other member has posted anything about avoiding such a scenario in future, here's my two cents on preventing/limiting a recurrence.
1. Use a stable distro as host and move the experimental/rolling/bleeding edge OS as Guest OS. Choose your poison wisely (vmware/virtualbox/kvm/xen etc)
2. Assign as much of resources (cpu/disk/ram) as you can so the guest does not choke when you are using it. This depends on the use case though.
3. Turn off automatic updates and run them manually periodically (unless of course, its a spctre/meltdown type of scenario from few years back!).
4. For critical machines/workflows, test the kernel first, before putting it in action full time.
5. Frequent Backups of data.
It's a long time since I used Fedora, but normally when a new kernel is installed the old one is left in place just in case you have to boot from it. I did hear recently of Nvidia drivers having problem with a specific kernel, and the solution is obviously to stick with the previous one and await a new one. There's no rush to remove the difficult kernel if you aren't using it — it might just get re-installed in your next update!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.