Need to install the kernel-headers in 5.10 for Wireguard

  • I am running kernel 5.10.0-0.bpo.12-amd64 in OMV 5.6.26


    I would like to install the kernel headers for the 5.x kernel - https://packages.debian.org/bu…ers-5.10.0-0.bpo.12-amd64


    However, when I test the install command it errors with no package found ...


    Code
    $ apt-get -s install dkms linux-headers-$(uname -r)
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    E: Unable to locate package linux-headers-5.10.0-0.bpo.12-amd64
    E: Couldn't find any package by glob 'linux-headers-5.10.0-0.bpo.12-amd64'
    E: Couldn't find any package by regex 'linux-headers-5.10.0-0.bpo.12-amd64'


    If I change the install command it will only give me kernel headers for version 4.19 ...



    Here is my package source list ...


    Code
    $ cat /etc/apt/sources.list
    #Stable
    deb http://http.us.debian.org/debian/ buster main contrib non-free
    #Stable Sources
    deb-src http://http.us.debian.org/debian/ buster main contrib non-free
    #Security Updates Stable
    deb http://security.debian.org/ buster/updates main contrib non-free


    How can I get the correct kernel headers package so that I can compile the Wireguard module?


    Thanks,


    Paully

  • KM0201

    Approved the thread.
  • when I test the install command it errors with no package found

    You are using the backport kernel. So, you have to use the backport headers.


    sudo apt-get install -t buster-backports linux-headers-amd64

    omv 6.0.34-1 Shaitan | 64 bit | 5.15 proxmox kernel | plugins :: omvextrasorg 6.1.1 | kvm 6.1.22 | mergerfs 6.1.1 | zfs 6.0.11
    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.
    Please don't PM for support... Too many PMs!

  • You are using the backport kernel. So, you have to use the backport headers.


    sudo apt-get install -t buster-backports linux-headers-amd64

    Thanks for the quick reply.


    I have tried that and this is the error output ...


    Code
    $ apt-get install -t buster-backports linux-headers-amd64
    Reading package lists... Done
    E: The value 'buster-backports' is invalid for APT::Default-Release as such a release is not available in the sources



    Any ideas?


    Regards,


    Paully

  • You don't have backports enabled. You can enable that in omv-extras.

    omv 6.0.34-1 Shaitan | 64 bit | 5.15 proxmox kernel | plugins :: omvextrasorg 6.1.1 | kvm 6.1.22 | mergerfs 6.1.1 | zfs 6.0.11
    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Thanks for the info.


    (don't laugh)


    I have tried to enable that and now get the following error - screenshot attached.




    Here is a snippet from my sysinfo ...




    What have I done wrong?


    Have I not installed it properly?


    Regards,


    Paully

  • Your system isn't able to access github. Something with your network.

    omv 6.0.34-1 Shaitan | 64 bit | 5.15 proxmox kernel | plugins :: omvextrasorg 6.1.1 | kvm 6.1.22 | mergerfs 6.1.1 | zfs 6.0.11
    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.
    Please don't PM for support... Too many PMs!

  • It could be that OMV is running in a qemu VM.


    However, Google pointed me to a misconfigured sources.llst file and I have tweaked that and added the backports line ...


    Code
    deb http://ftp.uk.debian.org/debian/ buster main contrib non-free
    deb-src http://ftp.uk.debian.org/debian/ buster main contrib non-free
    
    deb http://ftp.uk.debian.org/debian/ buster-updates main contrib non-free
    deb-src http://ftp.uk.debian.org/debian/ buster-updates main contrib non-free
    
    deb http://security.debian.org/ buster/updates main contrib non-free
    deb-src http://security.debian.org/ buster/updates main contrib non-free
    
    deb http://deb.debian.org/debian buster-backports main contrib non-free



    ... so then I was able to run your suggested command line ...


    Code
    sudo apt-get update
    sudo apt-get check
    sudo apt-get upgrade 
    sudo apt-get install -t buster-backports linux-headers-amd64



    ... which successfully installed the correct kernel-headers ...


    Code
    $ apt list --installed *linux-headers*
    linux-headers-5.10.0-0.bpo.12-amd64/buster-backports,now 5.10.103-1~bpo10+1 amd64 [installed,automatic]
    linux-headers-5.10.0-0.bpo.12-common/buster-backports,now 5.10.103-1~bpo10+1 all [installed,automatic]
    linux-headers-amd64/buster-backports,now 5.10.103-1~bpo10+1 amd64 [installed]



    ... and now I can try Wireguard.


    Thanks for your help!


    Kind regards,


    :)


    Paully

  • macom

    Added the Label OMV 5.x
  • macom

    Added the Label resolved

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!