Debian unable to locate package linux headers

trying to install linux headers but not found in sources

 sudo apt-get install build-essential linux-headers-$(uname -r) 
sudo: unable to resolve host ts7400-4e7b7c Reading package lists. Done Building dependency tree Reading state information. Done E: Unable to locate package linux-headers-2.6.35.3-571-gcca29a0 E: Couldn't find any package by regex 'linux-headers-2.6.35.3-571-gcca29a0' 
Linux ts7400-4e7b7c 2.6.35.3-571-gcca29a0+ #2 PREEMPT Mon Mar 16 14:56:01 PDT 2015 armv5tejl GNU/Linux 
linux-headers-3.2.0-4-all - All header files for Linux 3.2 (meta-package) linux-headers-3.2.0-4-all-armel - All header files for Linux 3.2 (meta-package) linux-headers-3.2.0-4-common - Common header files for Linux 3.2.0-4 linux-headers-3.2.0-4-iop32x - Header files for Linux 3.2.0-4-iop32x linux-headers-3.2.0-4-ixp4xx - Header files for Linux 3.2.0-4-ixp4xx linux-headers-3.2.0-4-kirkwood - Header files for Linux 3.2.0-4-kirkwood linux-headers-3.2.0-4-mv78xx0 - Header files for Linux 3.2.0-4-mv78xx0 linux-headers-3.2.0-4-orion5x - Header files for Linux 3.2.0-4-orion5x linux-headers-3.2.0-4-versatile - Header files for Linux 3.2.0-4-versatile linux-headers-3.2.0-5-all - All header files for Linux 3.2 (meta-package) linux-headers-3.2.0-5-all-armel - All header files for Linux 3.2 (meta-package) linux-headers-3.2.0-5-common - Common header files for Linux 3.2.0-5 linux-headers-3.2.0-5-iop32x - Header files for Linux 3.2.0-5-iop32x linux-headers-3.2.0-5-ixp4xx - Header files for Linux 3.2.0-5-ixp4xx linux-headers-3.2.0-5-kirkwood - Header files for Linux 3.2.0-5-kirkwood linux-headers-3.2.0-5-mv78xx0 - Header files for Linux 3.2.0-5-mv78xx0 linux-headers-3.2.0-5-orion5x - Header files for Linux 3.2.0-5-orion5x linux-headers-3.2.0-5-versatile - Header files for Linux 3.2.0-5-versatile linux-headers-2.6-iop32x - Header files for Linux iop32x configuration (dummy package) linux-headers-2.6-ixp4xx - Header files for Linux ixp4xx configuration (dummy package) linux-headers-2.6-kirkwood - Header files for Linux kirkwood configuration (dummy package) linux-headers-2.6-orion5x - Header files for Linux orion5x configuration (dummy package) linux-headers-2.6-versatile - Header files for Linux versatile configuration (dummy package) linux-headers-iop32x - Header files for Linux iop32x configuration (meta-package) linux-headers-ixp4xx - Header files for Linux ixp4xx configuration (meta-package) linux-headers-kirkwood - Header files for Linux kirkwood configuration (meta-package) linux-headers-mv78xx0 - Header files for Linux mv78xx0 configuration (meta-package) linux-headers-orion5x - Header files for Linux orion5x configuration (meta-package) linux-headers-versatile - Header files for Linux versatile configuration (meta-package) 

Источник

Debian — Unable to locate package linux-headers-5.4.0-0.bpo.2-amd64

When installing packages that require building with linux-headers such as VirtualBox or ZFSonLinux, I usually get the following error messages:

E: Unable to locate package linux-headers-5.4.0-0.bpo.2-amd64
E: Couldn’t find any package by glob ‘linux-headers-5.4.0-0.bpo.2-amd64’
E: Couldn’t find any package by regex ‘linux-headers-5.4.0-0.bpo.2-amd64’

Solution

This problem occurred when the version of the linux-headers-amd64 and linux-image-amd64 packages don’t match from the Debian repository. Here, the headers are on version 3 whereas the image is on version 2.

Читайте также:  Контекстное меню линукс минт

linux-headers-amd64 - versionlinux-image-amd64 - version

The simplest solution is to wait for Debian repository to update. Otherwise, force the installation of your linux-headers-amd64 and linux-image-amd64 packages to be on the same version.

apt-get -y install linux-headers-amd64=5.4.8-1~bpo10+1 apt-get -y install linux-image-amd64=5.4.8-1~bpo10+1

Reference

  • https://packages.debian.org/buster-backports/linux-image-amd64
  • https://packages.debian.org/buster-backports/linux-headers-amd64

Источник

Command to install linux headers fails

peter@peter-deb:~$ sudo apt-get install linux-headers-$(uname -r) Reading package lists. Done Building dependency tree Reading state information. Done E: Unable to locate package linux-headers-2.6.32-5-amd64 E: Couldn't find any package by regex 'linux-headers-2.6.32-5-amd64' 
peter@peter-deb:~$ sudo apt-get install -qy linux-headers-$(uname -r) [sudo] password for peter: Reading package lists. Building dependency tree. Reading state information. E: Unable to locate package linux-headers-2.6.32-5-amd64 E: Couldn't find any package by regex 'linux-headers-2.6.32-5-amd64' 
peter@peter-deb:~$ apt-cache search linux-headers linux-headers-3.0.0-1-all - All header files for Linux 3.0.0 (meta-package) linux-headers-3.0.0-1-all-amd64 - All header files for Linux 3.0.0 (meta-package) linux-headers-3.0.0-1-amd64 - Header files for Linux 3.0.0-1-amd64 linux-headers-3.0.0-1-common - Common header files for Linux 3.0.0-1 linux-headers-3.0.0-1-common-rt - Common header files for Linux 3.0.0-1-rt linux-headers-3.0.0-1-rt-amd64 - Header files for Linux 3.0.0-1-rt-amd64 linux-headers-2.6-amd64 - Header files for Linux amd64 configuration (dummy package) linux-headers-2.6-rt-amd64 - Header files for Linux rt-amd64 configuration (dummy package) linux-headers-amd64 - Header files for Linux amd64 configuration (meta-package) linux-headers-rt-amd64 - Header files for Linux rt-amd64 configuration (meta-package) 
# Debian packages for testing deb http://mirror.transact.net.au/debian/ testing main contrib non-free # Uncomment the deb-src line if you want 'apt-get source' # to work with most packages. # deb-src http://mirror.transact.net.au/debian/ testing main contrib non-free # Security updates for stable # deb http://security.debian.org/ stable/updates main contrib non-free 

Источник

Install linux-headers on debian unable to locate package

I am trying to install the linux-headers for my Kernel Version 3.4.61+ and Debian Version 7.1 I typed this Commands:

apt-get update apt-get install linux-headers-$(uname -r) 
E: Unable to locate package linux-headers-3.4.61 E: Couldn't find any package by regex 'linux-headers-3.4.61' 

Use «apt-cache search linux-headers-» to get a list of all available headers, then you can choose one that fits best.

@leeduhem i found the solution. i just typed apt-get -f install after that i tried again with apt-get install linux-headers-3.2.0-4-all voila it worked!

Читайте также:  Open tcp port in linux

6 Answers 6

Here’s what you may need to do

sudo apt-get update # This will update the repositories list sudo apt-get upgrade # This will update all the necessary packages on your system sudo apt-get dist-upgrade # This will add/remove any needed packages reboot # You may need this since sometimes after a upgrade/dist-upgrade, there are some left over entries that get fixed after a reboot sudo apt-get install linux-headers-$(uname -r) # This should work now 

I did all the things, but still I couldn’t. root@h1:~# apt-get install linux-headers-$(uname -r) Reading package lists. Done Building dependency tree Reading state information. Done E: Unable to locate package linux-headers-5.4.34-1-pve E: Couldn’t find any package by glob ‘linux-headers-5.4.34-1-pve’ E: Couldn’t find any package by regex ‘linux-headers-5.4.34-1-pve’

root@h1:~# apt-get -y install pve-headers Reading package lists. Done Building dependency tree Reading state information. Done E: Unable to locate package pve-headers

Was running into this in Vagrant, and this did the trick! I had to vagrant reload after running these commands.

You could search first, then choose the closest one.

$ apt-cache search linux-headers linux-headers-3.2.0-4-all - All header files for Linux 3.2 (meta-package) linux-headers-3.2.0-4-all-amd64 - All header files for Linux 3.2 (meta-package) linux-headers-3.2.0-4-amd64 - Header files for Linux 3.2.0-4-amd64 

So I can install any one of these three.

Heres my experience with this problem:

I installed Kali Linux from a live memory stick. Whilst installing I didn’t have an internet connection.

This meant that my sources.list file was set to «Default Off-line Install Values». This meant that when installing I was limited to just the packages and data from the memory stick I Initially installed from.

To fix this, you need to change your sources.list (called switching branches):

This opens the sources file

Now at the top of the file paste in the following two lines:

deb http://http.kali.org/kali kali-rolling main non-free contrib deb-src http://http.kali.org/kali kali-rolling main non-free contrib 

Press CTRL + X then Press Y and Enter to save the file.

Now you can type the following commands to update Kali:

sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade reboot 

And finally, you should now be able to.

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

This is just my unique experience with this error stemming from an offline install. I hope this helps someone else out there.

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Читайте также:  Лабораторная работа настройка linux

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to locate package linux-headers-3.18.0 #67

Unable to locate package linux-headers-3.18.0 #67

Comments

Cannot install Displaylink Driver.

E: Unable to locate package linux-headers-3.18.0-13980-g7357b88
E: Could not find any package by glob linux-headers-3.18.0-13980-g7357b88
E: Could not find any package by regex linux-headers-3.18.0-13980-g7357b88
linux-headers-3.18.0-13980-g7357b88 installation failed.

Asus Chromebook Flip C302a
Crouton Ubuntu 16.04

Have tried
sudo apt-get install linux-headers-generic
and
sudo apt-get install linux-headers-generic

Have also tried to install the standard Displaylink driver with the /lib/modules/4.6.0-1-amd64/build/Kconfig line commented out.

Any assistance would be greatly appreciated.

The text was updated successfully, but these errors were encountered:

I am getting this issue with kali installed on a chromebook (using crouton).

sudo apt-get install linux-headers-$(uname -r) Reading package lists. Done Building dependency tree Reading state information. Done E: Unable to locate package linux-headers-3.18.0-14861-g70c266fc4519 E: Couldn't find any package by glob 'linux-headers-3.18.0-14861-g70c266fc4519' E: Couldn't find any package by regex 'linux-headers-3.18.0-14861-g70c266fc4519' 

Trying to install the generic kernal image as suggested yields this:

Reading package lists. Done Building dependency tree Reading state information. Done Package linux-image-generic is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source 

Could you tell me what’s the output of
uname -r

and can you confirm that in your /etc/apt/sources.list you have besides main you also contrib non-free enabled?, i.e:

deb http://http.kali.org/kali kali-rolling main contrib non-free

It seems like on Kali Linux reason why linux-headers-$(uname -r) doesn’t work is because there’s a «kali» string inside of it. So kernel headers package is refer to i.e:

Could you try manually installing headers with «kali» string added to it?

Источник

Оцените статью
Adblock
detector