RaspberryPi Linux Headers Install

I have a Raspberry Pi 3, running Stretch and I am trying to setup a USB driver for a motor controller. I’m trying to follow the instructions for setting up the driver, but I am running into the below issues when I try to execute the following command (which is step 1 of the instructions for setting up the driver):

sudo apt-get install linux-headers-$(uname -r) 

which outputs:

Reading package lists... Done  
Building dependency tree  
Reading state information... Done  
E: Unable to locate package linux-headers-4.9.80-v7  
E: Couldn't find any package by glob 'linux-headers-4.9.80-v7'  
E: Couldn't find any package by regex 'linux-headers-4.9.80-v7'  

In addition, when I execute:

uname -mrs

I get:

Linux 4.9.80-v7+ armv7l

Finally, I also tried checking which linux-headers are available with the following:

apt-cache search linux-headers

aufs-dkms - DKMS files to build and install aufs linux-headers-3.10-3-all - All header files for Linux 3.10 (meta-package) linux-headers-3.10-3-all-armhf - All header files for Linux 3.10 (meta-package) linux-headers-3.10-3-common - Common header files for Linux 3.10-3 linux-headers-3.10-3-rpi - Header files for Linux 3.10-3-rpi linux-headers-3.16.0-4-all - All header files for Linux 3.16 (meta-package) linux-headers-3.16.0-4-all-armhf - All header files for Linux 3.16 (meta-package) linux-headers-3.16.0-4-common - Common header files for Linux 3.16.0-4 linux-headers-3.16.0-4-rpi - Header files for Linux 3.16.0-4-rpi linux-headers-3.18.0-trunk-all - All header files for Linux 3.18 (meta-package) linux-headers-3.18.0-trunk-all-armhf - All header files for Linux 3.18 (meta-package) linux-headers-3.18.0-trunk-common - Common header files for Linux 3.18.0-trunk linux-headers-3.18.0-trunk-rpi - Header files for Linux 3.18.0-trunk-rpi linux-headers-3.18.0-trunk-rpi2 - Header files for Linux 3.18.0-trunk-rpi2 linux-headers-3.6-trunk-all - All header files for Linux 3.6 (meta-package) linux-headers-3.6-trunk-all-armhf - All header files for Linux 3.6 (meta-package) linux-headers-3.6-trunk-common - Common header files for Linux 3.6-trunk linux-headers-3.6-trunk-rpi - Header files for Linux 3.6-trunk-rpi linux-headers-4.4.0-1-all - All header files for Linux 4.4 (meta-package) linux-headers-4.4.0-1-all-armhf - All header files for Linux 4.4 (meta-package) linux-headers-4.4.0-1-common - Common header files for Linux 4.4.0-1 linux-headers-4.4.0-1-rpi - Header files for Linux 4.4.0-1-rpi linux-headers-4.4.0-1-rpi2 - Header files for Linux 4.4.0-1-rpi2 linux-headers-4.9.0-6-all - All header files for Linux 4.9 (meta-package) linux-headers-4.9.0-6-all-armhf - All header files for Linux 4.9 (meta-package) linux-headers-4.9.0-6-common - Common header files for Linux 4.9.0-6 linux-headers-4.9.0-6-common-rt - Common header files for Linux 4.9.0-6-rt linux-headers-4.9.0-6-rpi - Header files for Linux 4.9.0-6-rpi linux-headers-4.9.0-6-rpi2 - Header files for Linux 4.9.0-6-rpi2 linux-headers-rpi - Header files for Linux rpi configuration (meta-package) linux-headers-rpi-rpfv - This metapackage will pull in the headers for the raspbian kernel for the linux-headers-rpi2 - Header files for Linux rpi2 configuration (meta-package) linux-headers-rpi2-rpfv - This metapackage will pull in the headers for the raspbian kernel for the linux-libc-dev-alpha-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-arm64-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-armel-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-armhf-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-hppa-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-m68k-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-mips-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-mips64-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-mips64el-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-mipsel-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-powerpc-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-powerpcspe-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-ppc64-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-ppc64el-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-s390x-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-sh4-cross - Linux Kernel Headers for development (for cross-compiling) linux-libc-dev-sparc64-cross - Linux Kernel Headers for development (for cross-compiling) raspberrypi-kernel-headers - Header files for the Raspberry Pi Linux kernel

If anyone is able to offer insight into what I’m doing wrong or what the issue is, that would be a huge help!

Hi @beaconmediagroup,

Thanks for being part of the GitHub Community Forum! We’re glad you’re here.

I wanted to jump in here and mention that if you don’t get the help you’re looking for from this particular community, you might want to try getting help somewhere that focuses on Raspberry Pi. It’s definitely possible another GitHub user might have run into this same issue and can help, but the GitHub Community Forum focuses primarily on topics related to GitHub, Git, and development projects hosted on GitHub. We want to make sure you’re getting the best support you can, but this forum may not be the right place for this particular topic.

From a quick search, I found this forum, https://www.raspberrypi.org/forums/, it may be helpful to find a solution.

Best of luck!