kernel headers not found
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2015
    Location
    atlanta
    Posts
    5
    Linux Chrome 67.0.3396.79

    kernel headers not found

    Trying to install evdi from /DisplayLink USB Graphics Software for Ubuntu 4.2/displaylink-driver-4.2.29

    But, evdi fails to build with this exception :
    Your kernel headers for kernel 4.17.9-200.fc28.x86_64 cannot be found at /lib/modules/4.17.9-200.fc28.x86_64/build or /lib/modules/4.17.9-200.fc28.x86_64/source.

    Have the following kernel modules :
    [root@works displaylink-driver-4.2.29]# rpm -qa | grep '^kernel' | sort -V
    kernel-4.16.3-301.fc28.x86_64
    kernel-4.17.9-200.fc28.x86_64
    kernel-core-4.16.3-301.fc28.x86_64
    kernel-core-4.17.9-200.fc28.x86_64
    kernel-debug-devel-4.17.11-200.fc28.x86_64
    kernel-devel-4.17.11-200.fc28.x86_64
    kernel-headers-4.17.9-200.fc28.x86_64
    kernel-modules-4.16.3-301.fc28.x86_64
    kernel-modules-4.17.9-200.fc28.x86_64
    kernel-modules-extra-4.16.3-301.fc28.x86_64
    kernel-modules-extra-4.17.9-200.fc28.x86_64

  2. #2
    PabloTwo's Avatar
    PabloTwo is offline "Registered User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    7,781
    Linux Chrome 68.0.3440.84

    Re: kernel headers not found

    You actually need the kernel-devel package for the kernel version you're running and compiling against. You obviously installed the most recent kernel-devel-4.17.11-200.fc28.x86_64 but that won't work in 4.17.9-200.fc28.x86_64. So just update your kernel to 4.17.11, reboot into it and you should have have what you need.

  3. #3
    Join Date
    May 2015
    Location
    atlanta
    Posts
    5
    Linux Chrome 67.0.3396.79

    Re: kernel headers not found

    Or, could I just downgrade kernel-devel to 4.17.9 ? Can't seem to find "kernel-devel-4.17.9-200.fc28.x86_64". Having tried `yum install "kernel-devel-uname-r == $(uname -r)"` no dice. Have removed everything except for the following
    [root@works works]# dnf list installed "kernel*"
    Installed Packages
    kernel.x86_64 4.17.9-200.fc28 @updates
    kernel-core.x86_64 4.17.9-200.fc28 @updates
    kernel-modules.x86_64 4.17.9-200.fc28 @updates
    kernel-modules-extra.x86_64 4.17.9-200.fc28 @updates

  4. #4
    Join Date
    May 2015
    Location
    atlanta
    Posts
    5
    Linux Chrome 67.0.3396.79

    Re: kernel headers not found

    Or should i just downgrade kernel-devel to 4.17.9 ? Have removed everything except for the following :
    [root@gworks works]# dnf list installed "kernel*"
    Installed Packages
    kernel.x86_64 4.17.9-200.fc28 @updates
    kernel-core.x86_64 4.17.9-200.fc28 @updates
    kernel-modules.x86_64 4.17.9-200.fc28 @updates
    kernel-modules-extra.x86_64 4.17.9-200.fc28 @updates

    Did try to install the matching kernel devel by using :
    [root@works works]# yum install "kernel-devel-uname-r == $(uname -r)"
    Last metadata expiration check: 0:23:33 ago on Tue 07 Aug 2018 20:25:21 EDT.
    No match for argument: kernel-devel-uname-r == 4.17.9-200.fc28.x86_64
    Error: Unable to find a match

    ref : https://unix.stackexchange.com/quest...kernel-version

  5. #5
    Join Date
    Oct 2011
    Posts
    1,863
    Linux Chrome 67.0.3396.87

    Re: kernel headers not found

    You can try downgrading `kernel-devel` package, hopefully that will give you the correct version. Alternatively you can try dnf distro-sync command instead of downgrade. How did you end up with this `kernel-devel` package version in the first place? I can't find it in stable repository...

    Code:
    dnf dowgrade kernel-devel
    dnf distro-sync kernel-devel

  6. #6
    PabloTwo's Avatar
    PabloTwo is offline "Registered User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    7,781
    Linux Chrome 68.0.3440.84

    Re: kernel headers not found

    4.17.11-200.fc28.x86_64 has been in stable since yesterday for me. You could also just do:
    Code:
    # dnf install https://kojipkgs.fedoraproject.org//packages/kernel/4.17.9/200.fc28/x86_64/kernel-devel-4.17.9-200.fc28.x86_64.rpm
    Regardless, you will need to compile a new driver for each and every kernel you upgrade to.

Similar Threads

  1. kernel headers cannot be found
    By noobusinghacks in forum Using Fedora
    Replies: 8
    Last Post: 18th April 2016, 12:04 AM
  2. problem installng kernel-devel & kernel-headers
    By saurabh23 in forum Using Fedora
    Replies: 4
    Last Post: 7th September 2012, 07:28 AM
  3. how to build kernel-kernel-headers-version.arch.rpm ?
    By charlweed in forum Using Fedora
    Replies: 2
    Last Post: 26th October 2009, 06:18 AM
  4. Replies: 4
    Last Post: 29th April 2009, 03:16 AM
  5. Howto compile modules which need kernel headers that are not included in kernel-devel
    By raoul in forum Guides & Solutions (Not For Questions)
    Replies: 2
    Last Post: 1st April 2006, 12:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •