• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Installing Mainline kernels under Ubuntu


Here For Good!
Oct 6, 2007
5,861 (1.05/day)
Nelson B.C. Canada
System Name Blacknet- System2 Blacknet 2
Processor Xeon 1680 v2- System2 Xeon 2699 v3
Motherboard Asus P9X79 Deluxe- System2 Asrock X99 Extreme4/3.1
Cooling Noctua D14- System2 Deepcool watercooling AIO
Memory 32 GBs DDR3 1866- System2 32GBS DDR4 2133 Highly tightened....
Video Card(s) GTX 980Ti - System2 Sapphire RX 570
Storage 4x SSDs = 1.750TB 2xStorage Drives=8TB - System2 Samsung 850 Pro 512GB, Samsung 860 Evo 500
Display(s) 2x 24" 1080 displays - System2 27" 1440 display
Case Antec 1200- System2 Some Deepcool case with full glass side panel... what were they thinking...
Audio Device(s) Asus Xonar U7 MKII
Power Supply EVGA 750 Watt- System2 EVGA 750 Watt
Mouse Logitech G900 Chaos Spectrum
Keyboard Ducky
Software Kubuntu 22.04, Windows 10
Benchmark Scores It's linux baby!
You would think it would be simple right? Nope. To install initially it is pretty simple.. I just use the mainline ppa, which you can add using:
sudo add-apt-repository ppa:cappelikan/ppa
sudo apt update
sudo apt install mainline

Then it will show up in System in your menu and you can run it.
You can run it and install newest kernel 5.17.3... however you will have issues when you try to boot it.
No video driver. Either after this, or before, you must make sure you have the nvidia dkms module loaded,
or it can't compile the driver for the new kernel. At this point you should have driver series 510 installed.
So then, do a : sudo apt install nvidia-driver-510 nvidia-dkms-510
Reboot, and you should be able to boot the new kernel with no issues.
Fought with this for a few days until I figured it out.... And please, beginners to linux... do not try this! Only for experienced users.
Last edited:
Dec 23, 2012
1,677 (0.45/day)
Somewhere Over There!
System Name Gen2
Processor Ryzen R9 5950X
Motherboard Asus ROG Crosshair Viii Hero Wifi
Cooling Lian Li 360 Galahad
Memory G.Skill Trident Z RGB 64gb @ 3600 Mhz CL14-13-13-24 1T @ 1.45V
Video Card(s) Sapphire RX 6900 XT Nitro+
Storage Seagate 520 1TB + Samsung 970 Evo Plus 1TB + lots of HDD's
Display(s) Samsung Odyssey G7
Case Lian Li PC-O11D XL White
Audio Device(s) Onboard
Power Supply Super Flower Leadex SE Platinum 1000W
Mouse Xenics Titan GX Air Wireless
Keyboard Kemove Snowfox 61
Software Main: Gentoo+Arch + Windows 11
Benchmark Scores Have tried but can't beat the leaders :)
Just one thing I dont like about ubuntu is the PPA. While its true that there have been no malicious codes (known) added in personal PPA's, its still kinda risky