Skip to content
New issue

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

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

Already on GitHub? # to your account

Unable to locate package linux-headers-3.18.0 #67

Closed
peytr opened this issue Apr 29, 2017 · 11 comments
Closed

Unable to locate package linux-headers-3.18.0 #67

peytr opened this issue Apr 29, 2017 · 11 comments

Comments

@peytr
Copy link

peytr commented Apr 29, 2017

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.

@AdnanHodzic
Copy link
Owner

You have that problem because when you try to run:

sudo apt-get install linux-headers-generic

it can't install headers, because that kernel is not generic kernel. That would work if your kernel image was installed using:

sudo apt-get install linux-image-generic

If you want to install headers for your custom kernel please run:

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

If the install runs fine, then please [U]ninstall/reboot/[I]nstall. Otherwise install "generic image" as mentioned above.

I'm closing the issue, if the problem persists please feel free to re-open it.

@t1v0
Copy link

t1v0 commented Jul 20, 2017

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

Any suggestions?

@AdnanHodzic
Copy link
Owner

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:

linux-headers-4.8.0-kali1-amd64

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

@AdnanHodzic AdnanHodzic reopened this Aug 6, 2017
@AdnanHodzic
Copy link
Owner

Closed due to inactivity.

@rahoolnikam
Copy link

I have output of uname -r as 4.13.0-kali1-686-pae. However I am unable to update headers as well as the distro. The source list is modified to deb http://http.kali.org/kali kali-rolling main contrib non-free.

Kindly suggest any workaround. Unable to install any packages or getting any updates.

@redjamesg
Copy link
Contributor

redjamesg commented Feb 23, 2018

What error do you see when you run the displaylink-debian.sh ?

And could you please tell what the out put of:

lsb_release -is
lsb_release -cs
lsb_release -ics

@rahoolnikam
Copy link

Error for displaylink-debian.sh
bash : displaylink-debian.sh command not found

out for lsb_release are Kali, kali-rolling and Kali kali-rolling respectively.

@redjamesg
Copy link
Contributor

And you are executing it as you should?
./displaylink-debian.sh
And the execution bit is set on the file ?
chmod +x displaylink-debian.sh

What if you issue:

/bin/bash displaylink-debian.sh

@rahoolnikam
Copy link

No such file or directory

for all the executions.

@redjamesg
Copy link
Contributor

Are you sure you even have the file correctly downloaded?
If you fetched it as a zip dowbload, you need to unzip that and find the script in directory displaylink-debian-master

@rahoolnikam
Copy link

Issue resolved. It was due to outdated archive-keyring package.

Thanks for your help buddy.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants