OS: Ubuntu Precise 12.04 LTS 64 bit
Kernel : 3.5.0-27-generic
Header files:

dpkg -s linux-headers-$(uname -r)
Package: linux-headers-3.5.0-27-generic
Status: install ok installed

deb packages build successfully via :

sudo sh amd-driver-installer-catalyst-13.3-beta3-linux-x86.x86_64.run --buildpkg Ubuntu/precise

But when I try to install sudo apt-get install fglrx*.deb I see it is unable to find linux header files.

dpkg: dependency problems prevent configuration of fglrx: fglrx
depends on linux-headers-generic | linux-headers; however: Package
linux-headers-generic is not installed. Package linux-headers is not

It seems it is looking for 3.2.x kernel header files which are default for 12.04

How to resolve this issue?

  • I recommend reading this link askubuntu.com/questions/61396/… . For more specific information read the answer provided by chaskes. – Luis Alvarado Apr 14 '13 at 22:29
  • UPDATE: Something unpredictable happened. It installed by itself dont know how. now, if I remove xorg.conf (YES REMOVE) it shows me tear free desktop option and works flawlessly but using my integrate GPU instead of discrete. If I run amdconfig --initial it creates xorg.conf but i have tearing and no tear free option in cccle :/ – Alex Rizvi Apr 14 '13 at 22:29
  • Look at the Installation Guide carefully. You may need to follow the section to remove everything and start fresh. Also see the section on video tearing at the Installation Guide. If that doesn't work, look at the (linked from the guilde) workaround (a PPA) for AMD switchable graphics. – chaskes Apr 14 '13 at 22:34
  • You mean PPA from second link or the wiki.cchtml link ? – Alex Rizvi Apr 14 '13 at 22:37
  • @luis-alvarado Great answer on the the drivers question. I had just added it my answer when I saw your comment :) – chaskes Apr 14 '13 at 22:37

You need to install the linux-headers-generic package, a meta-package that always points to the latest generic kernel header available. fglrx depends on this package.

sudo apt-get install linux-headers-generic

There are good instructions for building and installing the AMD drivers (albeit, written for Quantal) at Ubuntu Quantal Installation Guide. It gives the prerequisites as:

sudo apt-get install build-essential cdbs dh-make dkms execstack dh-modaliases linux-headers-generic fakeroot

Plus sudo apt-get install lib32gcc1 when using 64-bit.

Note that the list includes linux-headers-generic, not the specific name of the latest generic headers package.

For additional detailed information on installing video drivers, see:

Which driver should I install when using an Nvidia, Ati or Intel video card

| improve this answer | |
  • I am not using Quantal. But thanks, I am using same website for Precise :) – Alex Rizvi Apr 14 '13 at 22:27
  • That doesn't matter :). You still need to install linux-headers-generic to satisfy the dependency. – chaskes Apr 14 '13 at 22:30
  • Please read my comments update above. :( it installed and behave strangely – Alex Rizvi Apr 14 '13 at 22:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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