Home > linux > Compiling Linux 2.6.33 on Ubuntu

Compiling Linux 2.6.33 on Ubuntu

February 25th, 2010 Leave a comment Go to comments

When trying to compile a 2.6.33 kernel on Ubuntu nowadays, you’ll run into this problem:

The UTS Release version in include/linux/version.h
does not match current version:
Please correct this.

This would not be soo bad, if it wouldn’t fail after compiling (and by that wasting a lot of cpu time …).

To avoid this error, fix the file /usr/share/kernel-package/ruleset/misc/version_vars.mk

And replace this code

UTS_RELEASE_HEADER=$(call doit,if [ -f include/linux/utsrelease.h ]; then  \
	                       echo include/linux/utsrelease.h;            \
	                   else                                            \
                               echo include/linux/version.h ;              \

with this one

UTS_RELEASE_HEADER=$(call doit,if [ -f include/generated/utsrelease.h ]; then \
                               echo include/generated/utsrelease.h;           \
                           elif [ -f include/linux/utsrelease.h ]; then       \
                               echo include/linux/utsrelease.h;               \
                           else                                               \
                               echo include/linux/version.h;                  \

(Source: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561569 )

Categories: linux Tags: , ,
  1. March 2nd, 2010 at 00:28 | #1

    Great, helped me a lot. Thanks :-)

  2. mathiase
    April 2nd, 2010 at 18:39 | #2


    this is not a bug in the linux kernel but in in kernel-package. Therefore you should install the latest version of kernel-package rather than change the kernel to work with the bug ;)


  3. robert
    April 6th, 2010 at 10:33 | #3

    This IS a fix for kernel-package (have a look at the edited file), an update of kernel-package is still not officially available for Ubuntu karmic.

  4. robert
    April 13th, 2010 at 09:07 | #4

    Good news for those of you, who use the proprietary nVidia driver (which previously failed to build on 2.6.33):
    The certified version 195.36.15 now checks for the correct files! Use this to avoid problems.

  5. May 28th, 2010 at 17:24 | #5

    thanks robert helped me a lot … :)

  1. No trackbacks yet.