11

I need my Ubuntu to be stable as I rely on it heavily for my business and uni. I needed to update my google cloud sdk so I run sudo apt upgrade as I have done for the last year with no issues. After reboot, my dual screen monitor stopped working and the main display freezing and I lost access to my virtualbox.

I am losing about $50 an hour while this is broken so I am happy to pay some one $100US an hour so I can have a stable system again. Is it possible to stop Ubuntu from upgrading the kernel itself?

Really angry actually that Ubuntu would release such a broken and untested kernel on an LTS system.

Daniel T
  • 4,594
  • On the grub screen if you click on advanced you should be able to boot to previous kernel. See if that works. (if you didn't /don't want the HWE packages you should of installed from the 20.04.1 image & you'd never see them https://releases.ubuntu.com/20.04/ – doug Jan 09 '21 at 07:01
  • 1
    This is not true, I did install from the 20.04.1 image. HWE track is now the default. Are you saying I should have installed the server version?

    Ubuntu Desktop flavour now always tracks HWE kernel (hardware enablement). It means that from 20.04.2 release Ubuntu Desktop will gain new major kernel versions every 6 months through to summer of 2022. Now what has happened the automatic update to the hwe 5.8 broke my system even thought the 20.04.2 hasn't been released yet.

    Ubuntu shouldn't have released a broken untested 5.8 on the automatic update track.

    –  Jan 09 '21 at 07:57
  • You can rescue your file system via chroot using external live usb or live dvd. I rescued my system many times in the past. https://help.ubuntu.com/community/LiveCdRecovery – kenn Jan 09 '21 at 12:02
  • As a sidenote, if your system really is mission critical, Ubuntu is the wrong choice. Get yourself an Enterprise-grade distro, which deliberately avoids cutting-edge stuff for precisely this reason. – Asteroids With Wings Jan 09 '21 at 15:28
  • 1
    @AsteroidsWithWings ok noted, I was under the impression Ubuntu LTS was Enterprise grade. –  Jan 09 '21 at 18:47
  • @RickElsum To be fair, I think that's the intention with the LTS stream. But, as you can see, it doesn't really work out that way. In my mind, Ubuntu is for home use and always will be. – Asteroids With Wings Jan 09 '21 at 19:50
  • I can confirm the 20.04.1 receives the HWE new kernel version. This seems like a change to how it was done in the past and what I expected. – wesinat0r Jan 13 '21 at 15:37

2 Answers2

12

It is easy to stop Ubuntu 20.04 from installing the 5.8 kernel.

Remove HWE meta packages by running:

sudo apt install linux-generic
sudo apt-get remove linux-{image,headers}-generic-hwe-'*'

If you also remove the already installed 5.8 kernel packages, it'll stick with the 5.4 kernels. They will get updates (bug fixes and security) till the end of life of the 20.04 release.

Daniel T
  • 4,594
Pilot6
  • 90,100
  • 91
  • 213
  • 324
  • 2
    I've done this and it works. Thank you very much. Just one further question: now that I'm back to kernel 5.4 (apparently linux-generic brought back version 5.4.0-60) will I still be getting updates for the branch 5.4.0-x ... ? On the other hand: is this a common practice for an LTS version of ubuntu? I've been reading several posts and it seems that the change from 5.4 -> 5.8 has brought a lot of trouble to many people ... – Lucas Aimaretto Jan 10 '21 at 22:50
  • @LucasAimaretto To answer your question: *YES*. As of Yesterday (March 1, 2024) Ubuntu released kernel version 5.4.270: https://kernel.ubuntu.com/mainline/v5.4.270/ – WinEunuuchs2Unix Mar 03 '24 at 01:41
7

This latest 5.8 update has caused a lot of issues for a lot of people. The most critical being breaking:

  • Graphics Drivers
  • Virtualbox no longer working. You can fix this by downloading straight from virtualbox.org but then that breaks Python.
  • WIFI Stops working

I solved this issue and future instability by disabling the HWE track and sticking to the GA Kernel 5.4.

As per here. Disable HWE and continue with GA kernal of 16.04?

Reference:

https://www.reddit.com/r/Ubuntu/comments/ks9lb9/was_the_hwe_kernel_upgrade_to_version_58_supposed/

Why am I getting an error every time I install something using apt-get install?

how to fix a non-existent executable path causing "ubuntu internal error"?

Dell XPS 9575 + Ubuntu 20.04.1: Keyboard/trackpad unresponsive on boot

20.04 can't connect to 5Ghz wifi after update

Cant install bcwml-kernel-source in kernel 5.8.0

  • 6
    Please write the method you have used in more detail. Currently answer contains only links, so it is not reproducible. – N0rbert Jan 09 '21 at 10:16
  • I have already spent hours sorting this problem out with no help from here or anyone else. This update has cost me money. Read the links like I had to its not that hard –  Jan 09 '21 at 10:53
  • 6
    @RickElsum It's not about what's "hard", it's about having a self-contained answer that will survive into the future. That's how Stack Exchange works! Wouldn't it be nice if you were able to avoid others having to spend hours sorting the problem out with no help from here or anyone else? – Asteroids With Wings Jan 09 '21 at 15:28
  • I did by linking exactly this. If you actually read my post, I stated I fixed it by switching to GA kernel and removing the HWE, with a link of how it is done. What is the point of retyping out a fix when someone else already done it? –  Jan 09 '21 at 18:45
  • Are there bug reports for the linux 5.8 kernel / nvidia issue? And are there any workarounds on Ubuntu like installing a mainline kernel? – Alex Jan 10 '21 at 03:29