Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Newer "mainline" versions of the kernel are available from the Ubuntu kernel team, e.g. 3.4 and 3.5, while Ubuntu 12.04 is on 3.2.

  • What are the mainline kernels?
  • Are they better than my existing kernel?
  • What are the pros and cons of upgrading to a mainline kernel?
  • Will I easily be able to go back?
share|improve this question

1 Answer 1

up vote 22 down vote accepted

Upgrading to a mainline kernel is usually not a good idea

Most of the basic information in this answer is from the Mainline Builds wiki

1. They are provided only for testing and are unsupported

  • The mainline kernels are built from the latest unmodified "mainline" Linux kernel sources.
  • The Ubuntu kernel team provides these only for testing and debugging purposes, to see whether issues have been fixed "upstream", i.e. by the Linux kernel developers.
  • They are therefore not supported and must be used at your own risk; you can report possible bugs to kernel.org via kernel-oops, or if you want a faster solution, try posting to the Linux Kernel Mailing List

2. They will often break drivers, especially Nvidia/AMD and wireless (Broadcom)

  • The mainline kernels do not include any Ubuntu-provided drivers or patches
  • This means no binary drivers for graphics, wireless, etc. are provided
  • If you try installing binary drivers downloaded directly from the manufacturers, there is a very good chance they will not work because the mainline headers may be incompatible.
    • This will be especially true for non-LTS versions after 12.04 (12.10, 13.04, ...), because the mainline kernels are built using the last LTS toolchain (compilers, etc.), which is generally older than the toolchain on the latest non-LTS release.

3. You should only install these if you believe they may fix a critical problem you are having with the current kernel

  • Newer kernels sometimes contain fixes for a hardware or filesystem problem you may have. For example, the internal HD4000 graphics on the latest Intel Ivy Bridge CPUs occasionally froze, a bug which was fixed in kernels 3.3.6 and newer.
  • You can try installing a mainline kernel in these circumstances, and see if it helps your problem.
  • If it does, you should consider upgrading to the latest Ubuntu+1 kernel instead, which does have binary drivers available for it.

4. If you install a mainline or other newer kernel, you can still choose to use your old (stable) kernel by selecting it at boot-time:

  • Keep Shift pressed after turning on your computer.
  • You will see the Grub menu as shown below. User the down arrow to go to "Previous Linux Versions" and press Enter

    enter image description here

  • Select the option which has a version of x.x.x-generic, NOT one that has x.x.x-yyyyyy-generic and press Enter. This is usually the first option unless you have installed multiple mainline/custom kernels.

    enter image description here

share|improve this answer
    
While this is very true, the 3.4 kernel does offer improved hardware support if you are running recent CPUs and GPUs as noted at kernelnewbies.org/Linux_3.4. Some people did have issues with the default kernel in Ubuntu 12.04 and the upgrade solved a lot of problems: see youtube.com/watch?v=traegZveTKo. (The video title mentions kernel 3.5, but it is about 3.4.) I agree, however, there is no need to do a kernel update from the mainline unless you have a real pressing reason. –  user76204 Jul 12 '12 at 19:35
    
This is an old thread but what did you mean when you said the OP should consider using an Ubuntu+1 kernel? Where can I find them? I'm in a similar situation right now. I've very new hardware which seems to be supported better by the 3.12 mainline kernel. –  rimez Oct 5 '13 at 9:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.