You are not logged in.

#1 2016-01-30 20:09:30

StoneInc
Member
Registered: 2016-01-30
Posts: 2

[SOLVED]"kernel headers cannot be found" during driver installation

Hi,
I installed arch just one or two weeks ago.
I'm now trying to install the broadcom-wl-dkms package to get my ASUS PCE-AC68 running. So I executed

# pacman -S dkms
# sudo git clone https://aur.archlinux.org/broadcom-wl-dkms.git
$ cd broadcom-wl-dkms
$ makepkg
# pacman -U broadcom-wl-dkms-6.30.223.271-4-x86_64.pkg.tar.xz

So far so good but now I get the following error:

[0] stone@STONE broadcom-wl-dkms $>sudo pacman -U broadcom-wl-dkms-6.30.223.271-4-x86_64.pkg.tar.xz
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) broadcom-wl-dkms-6.30.223.271-4

Total Installed Size:  7.74 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                                         [----------------------------------------] 100%
(1/1) checking package integrity                                       [----------------------------------------] 100%
(1/1) loading package files                                            [----------------------------------------] 100%
(1/1) checking for file conflicts                                      [----------------------------------------] 100%
(1/1) checking available disk space                                    [----------------------------------------] 100%
(1/1) installing broadcom-wl-dkms                                      [----------------------------------------] 100%

Creating symlink /var/lib/dkms/broadcom-wl/6.30.223.271/source ->
                 /usr/src/broadcom-wl-6.30.223.271

DKMS: add completed.
Error! echo
Your kernel headers for kernel 4.3.3-3-ARCH cannot be found at
/usr/lib/modules/4.3.3-3-ARCH/build or /usr/lib/modules/4.3.3-3-ARCH/source.
error: command failed to execute correctly

Optional dependencies for broadcom-wl-dkms
    linux-headers: build modules against Arch kernel
    linux-lts-headers: build modules against LTS Arch kernel

[0] stone@STONE broadcom-wl-dkms $>modprobe wl
modprobe: FATAL: Module wl not found in directory /lib/modules/4.3.3-3-ARCH

Any suggestions?



EDIT:

I found this linux-headers 4.3.3-3 File List and I decided to compare it to my /usr/lib/modules/4.3.3-3-ARCH/ so I executed:

[0] stone@STONE broadcom-wl-dkms $>ls /usr/lib/modules/4.3.3-3-ARCH/build/       
vmlinux

This clearly isn't the content on the list but I'm not experienced enough to decide whether this is the problems cause or not and how to fix it.

Last edited by StoneInc (2016-01-30 21:44:23)

Offline

#2 2016-01-30 21:33:55

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [SOLVED]"kernel headers cannot be found" during driver installation

Error! echo
Your kernel headers for kernel 4.3.3-3-ARCH cannot be found at
/usr/lib/modules/4.3.3-3-ARCH/build or /usr/lib/modules/4.3.3-3-ARCH/source.
error: command failed to execute correctly
Optional dependencies for broadcom-wl-dkms
    linux-headers: build modules against Arch kernel
    linux-lts-headers: build modules against LTS Arch kernel

The lack of "[installed]" by the optional dependancies indicates they are not installed
The following plus matching output should confirm it

$pacman -Qi linux-headers 
error: package 'linux-headers' was not found

Offline

#3 2016-01-30 21:43:28

StoneInc
Member
Registered: 2016-01-30
Posts: 2

Re: [SOLVED]"kernel headers cannot be found" during driver installation

Thanks for your reply!

I thought linux-headers to be some pre-installed "linux kernel stuff" and haven't realised it's a package. *facepalm*

It's working just fine now...

Last edited by StoneInc (2016-01-30 22:21:55)

Offline

Board footer

Powered by FluxBB