Unable to locate package linux headers generic

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.

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?

Источник

Can’t install kernel headers for 5.13.0-37-generic

What should do I to fix this problem? I new to linux, so please explain how to fix it. Update and upgrade.

Hit:1 http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid InRelease Hit:2 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease Hit:3 http://dl.google.com/linux/chrome/deb stable InRelease Get:4 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB] Hit:5 https://deb.nodesource.com/node_18.x focal InRelease Hit:6 http://ppa.launchpad.net/linuxuprising/java/ubuntu focal InRelease Hit:7 https://repo.pritunl.com/stable/apt focal InRelease Hit:8 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal InRelease Get:9 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB] Get:10 http://archive.ubuntu.com/ubuntu focal/main i386 Packages [718 kB] Get:11 http://archive.ubuntu.com/ubuntu focal/main Translation-en [506 kB] Get:12 http://archive.ubuntu.com/ubuntu focal/main amd64 DEP-11 Metadata [494 kB] Get:13 http://archive.ubuntu.com/ubuntu focal/main DEP-11 48x48 Icons [98,4 kB] Get:14 http://archive.ubuntu.com/ubuntu focal/main DEP-11 64x64 Icons [163 kB] Get:15 http://archive.ubuntu.com/ubuntu focal/main DEP-11 64x64@2 Icons [15,8 kB] Get:16 http://archive.ubuntu.com/ubuntu focal/main amd64 c-n-f Metadata [29,5 kB] Get:17 http://archive.ubuntu.com/ubuntu focal/universe i386 Packages [4 642 kB] Get:18 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [8 628 kB] Get:19 http://archive.ubuntu.com/ubuntu focal/universe Translation-en [5 124 kB] Get:20 http://archive.ubuntu.com/ubuntu focal/universe amd64 DEP-11 Metadata [3 603 kB] Get:21 http://archive.ubuntu.com/ubuntu focal/universe DEP-11 48x48 Icons [3 016 kB] Get:22 http://archive.ubuntu.com/ubuntu focal/universe DEP-11 64x64 Icons [7 794 kB] Get:23 http://archive.ubuntu.com/ubuntu focal/universe DEP-11 64x64@2 Icons [44,3 kB] Get:24 http://archive.ubuntu.com/ubuntu focal/universe amd64 c-n-f Metadata [265 kB] Get:25 http://archive.ubuntu.com/ubuntu focal/restricted i386 Packages [8 112 B] Get:26 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [22,0 kB] Get:27 http://archive.ubuntu.com/ubuntu focal/restricted Translation-en [6 212 B] Get:28 http://archive.ubuntu.com/ubuntu focal/restricted amd64 c-n-f Metadata [392 B] Get:29 http://archive.ubuntu.com/ubuntu focal/multiverse i386 Packages [74,7 kB] Get:30 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [144 kB] Get:31 http://archive.ubuntu.com/ubuntu focal/multiverse Translation-en [104 kB] Get:32 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 DEP-11 Metadata [48,4 kB] Get:33 http://archive.ubuntu.com/ubuntu focal/multiverse DEP-11 48x48 Icons [23,1 kB] Get:34 http://archive.ubuntu.com/ubuntu focal/multiverse DEP-11 64x64 Icons [192 kB] Get:35 http://archive.ubuntu.com/ubuntu focal/multiverse DEP-11 64x64@2 Icons [214 B] Get:36 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 c-n-f Metadata [9 136 B] Fetched 37,0 MB in 10s (3 702 kB/s) Reading package lists. Done Building dependency tree Reading state information. Done All packages are up to date. Reading package lists. Done Building dependency tree Reading state information. Done Calculating upgrade. Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 
> cat /etc/apt/sources.list deb http://archive.ubuntu.com/ubuntu focal main universe restricted multiverse deb-src http://archive.ubuntu.com/ubuntu focal main universe restricted multiverse #Added by software-properties 

Источник

Читайте также:  Arch linux install github

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!

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.

Читайте также:  Linux параметры сетевого интерфейса

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.

Источник

Linux headers generic package not found

I need to compile this driver, however I’m missing my kernel headers. I’ve tried installing them the normal way:

sudo apt-get install linux-headers-generic 
sudo apt-get install linux-headers-$(uname -r) 
apt-cache search linux-headers 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.12-1-all - All header files for Linux 3.12 (meta-package) linux-headers-3.12-1-all-armhf - All header files for Linux 3.12 (meta-package) linux-headers-3.12-1-common - Common header files for Linux 3.12-1 linux-headers-3.12-1-rpi - Header files for Linux 3.12-1-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-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-rpfv - This metapackage will pull in the headers for the raspbian kernel for the 

How can I install the kernel headers for 4.1.18-v7+? I’m using the latest version of Raspbian (headless) fully updated: Linux localhost 4.1.18-v7+ #848 SMP Mon Feb 29 14:19:45 GMT 2016 armv7l GNU/Linux Thank you.

Источник

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