How to Install Linux Kernel 6.4 in Ubuntu 22.04 | 23.04

Last updated: June 30, 2023 — 2 Comments

Linux Kernel 6.4 was released a few days ago. Ubuntu users can now install it from Kernel Mainline PPA.

Linux Kernel 6.4 features initial Apple M2 processors support, Realtek rtl8710bu/rtl8188gu, rtl8822bs, rtl8822cs and rtl8821cs WiFi hardware support, Turtle Beach and Qanba gaming controller support, and many Kye/Genius drawing tablets, such as EasyPen M406 / M506 / M406W, EasyPen 340, MousePen 508WX / 508X, and PenSketch T609A.

There are also tablet mode switching support for Lenovo Yoga notebooks, hardware sensor support for 100+ more ASUS desktop motherboards, Apple M1/M2 keyboard backlight support, initial WiFi support for Apple M1 Pro and Apple M1 Max devices, and better MSI laptops support.

How to Install Kernel 6.4 in Ubuntu 22.04+/Linux Mint 21

NOTE: The Mainline Kernel PPA is back with Kernel 6.4 packages. However, they are not appropriate for production use. Only install it for testing purpose or for specific drivers.

The Mainline Kernel PPA has built the packages for Ubuntu and  its based systems with modern 64-bit (amd64), arm64/armhf mobile, ppc64el and s390x CPU architecture types support.

1. User can select download the packages from the link page below:

For modern 64-bit (x86_64) PC/laptop, select download the amd64 build packages:

  1. linux-headers-6.4.0-060400-xxxxxx_all.deb
  2. linux-headers-6.4.0-060400-generic_xxx_amd64.deb
  3. linux-modules-6.4.0-060400-generic_xxx_amd64.deb
  4. linux-image-unsigned-6.4.0-060400-generic_xxx_amd64.deb

2. After downloading them, right click on blank area in Downloads page and select “Open in Terminal”. Finally, install the kernel packages via command:

sudo apt install ./linux*.deb

For other CPU architecture types (run uname -m to tell), select download and install the package between arm64/armhf, ppc64el and s390x builds.

For Ubuntu server, you can download and install the kernel packages by following commands:

cd /tmp/

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.4/amd64/linux-headers-6.4.0-060400-generic_6.4.0-060400.202306271339_amd64.deb

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.4/amd64/linux-headers-6.4.0-060400_6.4.0-060400.202306271339_all.deb

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.4/amd64/linux-image-unsigned-6.4.0-060400-generic_6.4.0-060400.202306271339_amd64.deb

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.4/amd64/linux-modules-6.4.0-060400-generic_6.4.0-060400.202306271339_amd64.deb

sudo dpkg -i *.deb

Once installed, restart your computer and verify by running uname -a command in terminal!

Uninstall Linux Kernel 6.4:

Restart your machine, and select boot with the previous kernel in boot menu under ‘Grub2 -> Advanced Option for Ubuntu’. Depends on your machine, you may have to press and hold ‘Shift’ or ‘Esc’ key while booting to show the Grub boot-menu.

Then run command to remove Linux Kernel 6.4:

sudo apt remove --autoremove linux-headers-6.4.0-060400 linux-modules-6.4.0-060400-generic

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: https://ko-fi.com/ubuntuhandbook1

2 responses to How to Install Linux Kernel 6.4 in Ubuntu 22.04 | 23.04

  1. Hmm.. should I try 6.4?
    I just upgraded to Ubuntu 23.04. The system locks up when I choose Kernel 6.2x from my GRUB menu. Luckily I still have one kernel 5.19 entrry in GRUB, and this boots OK.
    Should I try to install the 6.4 kernel, or be sensible and attempt to solve why the 6.27 version freezes just before Ubuntu asks for my ID & PWord?

    • 6.4 kernel is so far NOT for stable use for Ubuntu. You may install it for specific hardware issue or testing purpose. Since you keep 5.19 in your system, it easy to restore in case new Kernel’s not working properly.

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

*