Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I wanted to install 3.13.5 kernel from . I know that the folders are called trusty but can I install them on 13.10 ? After tying dpkg -i on the packages I get the following:

$ sudo dpkg -i linux-headers-3.13.5-031305_3.13.5-031305.201402221823_all.deb linux-headers-3.13.5-031305-generic_3.13.5-031305.201402221823_i386.deb linux-image-3.13.5-031305-gene
[sudo] password for XXX: 
Selecting previously unselected package linux-headers-3.13.5-031305.
(Reading database ... 174675 files and directories currently installed.)
Unpacking linux-headers-3.13.5-031305 (from linux-headers-3.13.5-031305_3.13.5-031305.201402221823_all.deb) ...
Selecting previously unselected package linux-headers-3.13.5-031305-generic.
Unpacking linux-headers-3.13.5-031305-generic (from linux-headers-3.13.5-031305-generic_3.13.5-031305.201402221823_i386.deb) ...
Selecting previously unselected package linux-image-3.13.5-031305-generic.
Unpacking linux-image-3.13.5-031305-generic (from linux-image-3.13.5-031305-generic_3.13.5-031305.201402221823_i386.deb.1) ...
Setting up linux-headers-3.13.5-031305 (3.13.5-031305.201402221823) ...
Setting up linux-headers-3.13.5-031305-generic (3.13.5-031305.201402221823) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.13.5-031305-generic /boot/vmlinuz-3.13.5-031305-generic
Error! Bad return status for module build on kernel: 3.13.5-031305-generic (i686)
Consult /var/lib/dkms/fglrx/13.251/build/make.log for more information.
Setting up linux-image-3.13.5-031305-generic (3.13.5-031305.201402221823) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.5-031305-generic /boot/vmlinuz-3.13.5-031305-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.5-031305-generic /boot/vmlinuz-3.13.5-031305-generic
Error! Bad return status for module build on kernel: 3.13.5-031305-generic (i686)
Consult /var/lib/dkms/fglrx/13.251/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.5-031305-generic /boot/vmlinuz-3.13.5-031305-generic
update-initramfs: Generating /boot/initrd.img-3.13.5-031305-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.5-031305-generic /boot/vmlinuz-3.13.5-031305-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.5-031305-generic /boot/vmlinuz-3.13.5-031305-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.5-031305-generic /boot/vmlinuz-3.13.5-031305-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.13.5-031305-generic
Found initrd image: /boot/initrd.img-3.13.5-031305-generic
Found linux image: /boot/vmlinuz-3.11.0-17-generic
Found initrd image: /boot/initrd.img-3.11.0-17-generic
Found memtest86+ image: /boot/memtest86+.bin


That's my /var/lib/dkms/fglrx/13.251/build/make.log

DKMS make.log for fglrx-13.251 for kernel 3.13.5-031305-generic (i686)
pon, 3 mar 2014, 21:41:07 CET 
AMD kernel module generator version 2.1 
doing Makefile based build for kernel 2.6.x and higher
rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
make -C /lib/modules/3.13.5-031305-generic/build SUBDIRS=/var/lib/dkms/fglrx/13.251/build/2.6.x modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.5-031305-generic'
  CC [M]  /var/lib/dkms/fglrx/13.251/build/2.6.x/firegl_public.o
/var/lib/dkms/fglrx/13.251/build/2.6.x/firegl_public.c: In function ‘KCL_GetEffectiveUid’:
/var/lib/dkms/fglrx/13.251/build/2.6.x/firegl_public.c:1758:5: error: incompatible types when returning type ‘kuid_t’ but ‘KCL_TYPE_Uid’ was expected
     return current_euid();
/var/lib/dkms/fglrx/13.251/build/2.6.x/firegl_public.c:1762:1: warning: control reaches end of non-void function [-Wreturn-type]
make[2]: *** [/var/lib/dkms/fglrx/13.251/build/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/var/lib/dkms/fglrx/13.251/build/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.5-031305-generic'
make: *** [kmod_build] Error 2
build failed with return value 2
share|improve this question

marked as duplicate by Radu Rădeanu, guntbert, psusi, Lucio, Avinash Raj Mar 4 '14 at 3:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

@RaduRădeanu I have looked into this: there is no mention of my error Error! Bad return status for module build on kernel: 3.13.5-031305-generic (i686) – Patryk Mar 3 '14 at 20:54

That just means that you won't be able to load the fglrx module on startup, which provides 3D graphics acceleration for AMD GPUs. The kernel should still be installed fine.

share|improve this answer

I have found a solution:

I have applied the following patch (found on )

diff -rup fglrx.orig/firegl_public.c fglrx/firegl_public.c
--- fglrx.orig/firegl_public.c    2013-12-20 01:37:15.155648294 +0100
+++ fglrx/firegl_public.c    2013-12-21 01:02:47.201517242 +0100
@@ -1754,11 +1754,17 @@ KCL_TYPE_Pid ATI_API_CALL KCL_GetTgid(vo
 KCL_TYPE_Uid ATI_API_CALL KCL_GetEffectiveUid(void)
+    return __kuid_val(current_euid());
 #ifdef current_euid
     return current_euid();
     return current->euid;

 /** /brief Delay execution for the specified number of microseconds
diff -rup fglrx.orig/kcl_acpi.c fglrx/kcl_acpi.c
--- fglrx.orig/kcl_acpi.c    2013-12-20 01:13:55.000000000 +0100
+++ fglrx/kcl_acpi.c    2013-12-21 01:06:00.158734992 +0100
@@ -792,7 +792,9 @@ static unsigned int KCL_ACPI_SearchHandl
 unsigned int ATI_API_CALL KCL_ACPI_GetHandles(kcl_match_info_t *pInfo)
+        pInfo->video_handle = pInfo->pcidev->dev.acpi_node.companion;
         pInfo->video_handle = pInfo->pcidev->dev.acpi_node.handle;
         pInfo->video_handle = pInfo->pcidev->dev.archdata.acpi_handle;
@@ -996,6 +998,10 @@ int ATI_API_CALL KCL_ACPI_ParseTable(cha
         return KCL_ACPI_ERROR;
+    ((acpi_tbl_table_handler)handler)(hdr);
     return KCL_ACPI_OK;

And now it works :)

share|improve this answer

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