[Tutorial] Upgrade your LMDE6 kernel (the correct way)

Write tutorials for LMDE here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post please read forum rules
Post Reply
User avatar
Michael_Hathaway
Level 4
Level 4
Posts: 313
Joined: Sat Oct 09, 2021 2:27 am
Location: Shebang, USA
Contact:

[Tutorial] Upgrade your LMDE6 kernel (the correct way)

Post by Michael_Hathaway »

Installing a newer kernel on LMDE 6

Foreword:
Linux Mint Debian Edition aka LMDE, is not just a Cinnamon desktop slapped on top of Debian. The whole OS is considerably more integrated than this. Keep this in mind when modifying the Linux Mint team's creation.

Please read everything before committing to the mod! Including my "Notes" in my third post below!

WARNING: Don't use these instructions if you use Nvidia proprietary drivers. You need to switch to open source drivers to keep from breaking your system. You can switch back to proprietary drivers after the mod.

LMDE 6 uses kernel release 6.1.XX. It will get security updates through Update Manager but no new releases, it will always be 6.1.XX. If you have very new hardware you may need to install a newer kernel release for all your hardware devices to work well.

For this you can use the Debian backports or Debian unstable repositories. At the time of this writing Debian backports has kernel version 6.5 and Debian unstable has version 6.6.13-1. Both of these repositories will get newer kernel releases over time.

Debian backports has software taken from the next Debian release, recompiled to work with the current Debian release. Debian unstable is where the development for Debian happens. Software from these repositories is not tested as extensively, may be incompatible with other software on your system and isn't directly managed by Debian's security team. You may not get security updates in a timely manner for kernels installed from these repositories.
Use these repositories at your own risk! Don't install a newer kernel release if you don't need to.

I'll gives instructions for both below. The instructions are for 64-bit installations. If you have a 32-bit installation replace all occurrences of -amd64 with -686 in the instructions. If you're unsure what your installation is run the command uname -r to see whether you have the -amd64 or -686 kernel.

You need to make a system snapshot with Timeshift before proceeding!

Using Debian backports:
This should be the preferred method if you need a newer kernel release.

Debian backports is enabled by default on LMDE 6 but no software is installed from backports unless explicitly told to do so. To install the Debian backports kernel you can simply run this command:

Code:

Code: Select all

sudo apt install -t bookworm-backports linux-image-amd64 linux-headers-amd64

Once you've installed the kernel from backports you will also be getting kernel updates from there (or from other configured repository if it has a newer kernel version). You get the kernel updates as per usual through Update Manager.

Reboot your system to start using the new kernel. After reboot you can check which kernel version you're using with command uname -v.
Last edited by Michael_Hathaway on Fri Feb 16, 2024 12:29 am, edited 3 times in total.
Enterprise Dual Xeon 8081 (112) @3.8Ghz, 16TB NVMe Raid, 387Gb ECC, AMD Pro W7700 16Gb
Debian Support. Deb 12/13 Trixie 6.7.9
Image
User avatar
Michael_Hathaway
Level 4
Level 4
Posts: 313
Joined: Sat Oct 09, 2021 2:27 am
Location: Shebang, USA
Contact:

Re: [How To] Upgrade your LMDE kernel (the correct way)

Post by Michael_Hathaway »

Using Debian unstable (aka "sid")

Forword: I do not recommend installing Debian Sid kernel for any reason other than testing purposes. It was extremely buggy when I did it and I am on one of the most stable servers available. Be really sure that you really need it before using Debian unstable!

Here things get very serious.

You need to make a system snapshot with Timeshift before proceeding!

Debian unstable is not enabled by default on LMDE 6. So in addition to configuring the system to install and update kernels from Debian unstable we'll also need to add the Debian unstable repository.

Run this command to open the text editor and create a new APT sources file:

Code:

Code: Select all

 EDITOR='xed -w' sudoedit /etc/apt/sources.list.d/unstable.list

Put the following in the file, this adds the Debian unstable repository:

Code:

Code: Select all

deb https://deb.debian.org/debian sid main contrib non-free

Save the file and close the text editor.
Run this command to open the text editor and create a new APT preferences file:

Code:

Code: Select all

EDITOR='xed -w' sudoedit /etc/apt/preferences.d/unstable.pref

Put the following in the file, this enables installing and updating the kernel from Debian unstable but makes it so no other software is installed or updated from Debian unstable:

Code:

Code: Select all

Package: *
Pin: release n=sid
Pin-Priority: 1
Package: linux-image-amd64 linux-headers-amd64
Pin: release n=sid
Pin-Priority: 100


Save the file and close the text editor.
Run apt update to refresh the package index cache and now you can install the kernel from unstable with command:

Code:

Code: Select all

 apt install -t unstable linux-image-amd64 linux-headers-amd64


Reboot your system to start using the new kernel.

After reboot you can check which kernel version you're using with command uname -v. If there is any problem with the new kernel you can boot the previous
Enterprise Dual Xeon 8081 (112) @3.8Ghz, 16TB NVMe Raid, 387Gb ECC, AMD Pro W7700 16Gb
Debian Support. Deb 12/13 Trixie 6.7.9
Image
User avatar
Michael_Hathaway
Level 4
Level 4
Posts: 313
Joined: Sat Oct 09, 2021 2:27 am
Location: Shebang, USA
Contact:

Re: [How To] Upgrade your LMDE kernel (the correct way)

Post by Michael_Hathaway »

Notes:

The reason for starting this in the first place was solely for the purpose of testing. I myself do not need a newer kernel for LMDE6, but I know that others will need at least testing to push the kernel to 6.5 or higher.

I was able to run this on my Xeon stable server. I figured if it didn't run here, it probably wouldn't run on consumer cpus.

Debian "Testing" or 6.5 works perfectly as tested. And I would leave it here if you do not require a newer kernel.

The unstable is buggy. This could be because of my Nvidia Qaudro video card drivers. I will test more once I get my Radeon card.

Also, I want to thank Xenopeek for helping me with the idea of punching LMDE 6 kernel upward for testing. I know that devs like Xeno cringe when I modify things like this. But I think that it is all part of testing and a good thing.


Kernel update LMDE 6:

https://packages.debian.org/sid/linux-image-amd64

Original article found here:

https://ezlinux.net/threads/installing- ... lmde-6.41/
Enterprise Dual Xeon 8081 (112) @3.8Ghz, 16TB NVMe Raid, 387Gb ECC, AMD Pro W7700 16Gb
Debian Support. Deb 12/13 Trixie 6.7.9
Image
User avatar
Michael_Hathaway
Level 4
Level 4
Posts: 313
Joined: Sat Oct 09, 2021 2:27 am
Location: Shebang, USA
Contact:

Re: [Tutorial] Upgrade your LMDE6 kernel (the correct way)

Post by Michael_Hathaway »

Screenshot from 2024-02-16 00-25-06.png
Enterprise Dual Xeon 8081 (112) @3.8Ghz, 16TB NVMe Raid, 387Gb ECC, AMD Pro W7700 16Gb
Debian Support. Deb 12/13 Trixie 6.7.9
Image
Post Reply

Return to “Tutorials”