You are not logged in.

#1 2013-09-25 18:45:12

csbrandt
Member
Registered: 2013-09-25
Posts: 4

linux-headers package installs wrong version of headers

Hi,

Trying to install a driver for my GeForce GT 730M. I downloaded the latest driver from NVIDIA website (NVIDIA-Linux-x86_64-310.40.run) and the install required that I have the linux headers installed.

I ran,

pacman -S linux-headers

I checked the version I have,

uname -r
3.11.1-1-ARCH

After running the NVIDIA driver install again it complains that the headers cant be found. I checked /usr/src/linux-3.11.1-1-ARCH and it only has a vmlinux directory. I did find another directory /usr/src/linux-3.11.1-2-ARCH that contains the headers for that version.

So it seems to me that

pacman -S linux-headers

downloaded the wrong headers.

Offline

#2 2013-09-25 19:03:36

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: linux-headers package installs wrong version of headers

Reboot.
If you have rebooted, you probably updated your package database without doing a full update (pacman -Sy). This leads to a partial update, which is not supported for this reason and many others.

Last edited by Scimmia (2013-09-25 19:05:02)

Offline

#3 2013-09-25 19:14:13

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: linux-headers package installs wrong version of headers

Why not use the nvidia package from the repos?
Is your system fully up to date?

Offline

#4 2013-09-25 19:15:04

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: linux-headers package installs wrong version of headers

Also, why are you building by hand?  Use ABS to allow makepkg/pacman to build and manage the drivers.  The cornerstone of this distro is makepkg/pacman.

Offline

#5 2013-09-25 19:26:30

csbrandt
Member
Registered: 2013-09-25
Posts: 4

Re: linux-headers package installs wrong version of headers

I ran

pacman -Syu

now the headers are found by the driver install, but now I have to figure out how to get kernel source files as the driver install asks for them. I decided to manually install the driver because the current nvidia packages do not work with this NVIDIA GT 730M.

On /var/log/Xorg.0.log I get errors about no screens found and unable to initialize the GPU. The most specific help on this issue I found at
https://wiki.archlinux.org/index.php/NV … Intel_iGPU

but in my case this solution does not work and produces the init error in Xorg.0.log

Offline

#6 2013-09-25 19:29:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: linux-headers package installs wrong version of headers

csbrand wrote:

now I have to figure out how to get kernel source files as the driver install asks for them.

Can you post the exact error message?

The current linux version is 3.11.1-2. If you updated your kernel you need to reboot.

Offline

#7 2013-09-25 19:53:37

csbrandt
Member
Registered: 2013-09-25
Posts: 4

Re: linux-headers package installs wrong version of headers

@Scimmia @karol Thanks, rebooted and was able to get further.

I think I might start over with the xconfig stuff and reinstall the packaged drivers for nvidia. Getting following errors shows on this thread. This is kinda ironic, I specifically chose a new laptop with NVIDIA over ATI hardware because of all the issues with getting the ATI drivers to work on Linux, dozens of hours down the tube.

https://devtalk.nvidia.com/default/topi … o-error/2/

Last edited by csbrandt (2013-09-25 19:55:07)

Offline

#8 2013-09-25 19:59:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: linux-headers package installs wrong version of headers

There's a difference between nvidia hardware and Intel+nvidia hardware.

Offline

#9 2013-09-26 00:42:18

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: linux-headers package installs wrong version of headers

csbrandt wrote:

Hi,

Trying to install a driver for my GeForce GT 730M. I downloaded the latest driver from NVIDIA website (NVIDIA-Linux-x86_64-310.40.run) and the install required that I have the linux headers installed.

I ran,

pacman -S linux-headers

I checked the version I have,

uname -r
3.11.1-1-ARCH

After running the NVIDIA driver install again it complains that the headers cant be found. I checked /usr/src/linux-3.11.1-1-ARCH and it only has a vmlinux directory. I did find another directory /usr/src/linux-3.11.1-2-ARCH that contains the headers for that version.

So it seems to me that

pacman -S linux-headers

downloaded the wrong headers.

Don't do this, seriously. You will mess up your system if you install the driver by hand. (also that driver is not the latest)

See these two wiki pages instead:
https://wiki.archlinux.org/index.php/Bumblebee
https://wiki.archlinux.org/index.php/Nvidia

And if the version in the repo doesn't work, use abs to build whatever version you want.

Btw, don't just say "doesn't work", tell us about the exact problem with the driver. Maybe it can be fixed instead of messing around with installing a different version.

Last edited by Mr.Elendig (2013-09-26 00:44:15)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#10 2013-09-26 04:29:16

csbrandt
Member
Registered: 2013-09-25
Posts: 4

Re: linux-headers package installs wrong version of headers

@Mr.Elendig

Thanks for the tips. I will be more specific with any issue I encounter in the future. I think being more generic with initial troubleshooting will allow for more efficient solution path selection or in other words, not getting bogged down with the wrong set of details.

I will let you know my results soon.

Offline

Board footer

Powered by FluxBB