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

    Hat das Thema freigeschaltet.
    • Offizieller Beitrag

    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 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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

    • Offizieller Beitrag

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

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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

    • Offizieller Beitrag

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

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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

    Hat das Label OMV 5.x hinzugefügt.
  • macom

    Hat das Label gelöst hinzugefügt.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!