search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Debian 5 UTS Release version does not match problem
Posted in Linux Server | 3 Comments | 5,580 views | 31/10/2010 02:31

You may get this error when you do kernel compile in Debian 5.0.x versions.

This is kernel package version 11.015.
echo “The UTS Release version in include/linux/version.h”; echo ” \”\” “; echo “does not match current version:”; echo ” \”2.6.36-hyperv\” “; echo “Please correct this.”; exit 2
The UTS Release version in include/linux/version.h
“”
does not match current version:
“2.6.36-hyperv”
Please correct this.
make[1]: *** [debian/stamp/install/linux-image-2.6.36-hyperv] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.36′
make: *** [kernel_image] Error 2

To fix this issue, navigate to your kernel directory:

cd /usr/src/linux-*/debian/ruleset/misc

Open version_vars.mk:

nano version_vars.mk

Change the file like the below:

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

Then you can compile your new kernel.


Comments (3)

Ozgur Karatas

December 6th, 2010
23:05:24

Yusuf bey, oncelikle bu bilgiyi paylasmis oldugunuz icin tesekkur ederim. Su anda kernel derlemeye calisiyorum ve ikinci defada hata alinca arattigimda sizin sayfaniz cikti ve UTS_RELEASE_HEADER’i belirtmis oldugunuz gibi degistirdim bakalim nasil sonuc alacagim :)

guzel ve yararli paylasimlarinizin devamini dilerim.


Ozgur Karatas

December 7th, 2010
00:28:35

Selamlar,

az once 2.6.36.1 kernel’u hem laptop hem de desktop’da derlerken ve .deb paketlerini olustururken test ettim bir problem yok, faydali paylasimlarinizin devami dileklerimle :)

make clean && make mrproper
cp /boot/config-`uname -r` ./.config
make menuconfig
make-kpkg clean
fakeroot make-kpkg –initrd –append-to-version=-mueddib kernel_image kernel_headers

ve sonunda yeni kernel image .deb paketi ile kernel headers .deb paketleri hazir!

dpkg -i kernel_image
dpkg -i kernel_headers

kurduktan sonra reboot edip yeni kernel kullanilabilir :)


admin

December 11th, 2010
12:24:08

Feedback için teşekkürler Özgür Bey.
İyi çalışmalar.



Leave a Reply