PDA

View Full Version : Error loading linux-headers-4.14.0-kali3-amd64



mrNove
2018-03-30, 23:16
Hi.
I need to install a video card driver but I can't install linux-headers-4.14.0-kali3-amd64. For some reason, the package is not in the repository
My repolist:

deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
deb-src http://http.kali.org/kali kali-rolling main contrib non-free

Output command apt-get install linux-headers-$(uname -r):

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers-4.14.0-kali3-amd64 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

E: Package 'linux-headers-4.14.0-kali3-amd64' has no installation candidate

What can you think of guys?

_defalt
2018-03-31, 21:10
First do an upgrade.
sudo apt update && sudo apt upgrade

JGB
2018-04-01, 03:21
That doesn't work.
I have the same problem.
In the repository, they have updated the kernel headers to 4.15, however the new kernel for that version isn't up yet.
They have taken down the headers for linux-headers-4.14.0-kali3-amd64
So... there is an repository mismatch, and until they fix that, there's broken dependencies that can't be met.
My error messages say words about trying to update an impossible situation, and I'm holding broken packages.
So.....
I guess my question is - can we still get the linux-headers-4.14.0-kali3-amd64 package from some old repository archive by putting another source in sources.list?

_defalt
2018-04-01, 04:59
Can you show the output of uname -r

JGB
2018-04-01, 06:24
You must think I'm stupid mate. I wouldn't asking about this kernel if the output of uname -r wasn't 4.14.0-kali3-amd64.
I've been through all the update & upgrade steps, including the fix broken and fix missing stuff. I repeat the eror messages say it's an impossible situation and I'm holding broken packages.

Check the available packages in the repository mate. All this 4.15xxx header stuff is there, but the ones we want aren't.
I can't install linux-headers-amd64 either as it says linux-headers-4.14.0-kali3-amd64 are a dependency and that can't be met.

This issue has effectively broken the pure 2018.1 release ISO, as when you try and get anything working that needs headers - like installing VirtualBox guest additions, or USB wireless card kernel modules for quite new cards - we are stuffed because the headers are no longer available.

Real question is why can't Kali include headers in ISO's, like other distros do.
I'll ask again - are the headers we want available from a non-default repository, or don't you know?
Meantime, I'm looking myself.

JGB
2018-04-01, 07:11
They aren't in the old Kali Sana repository either. Just checked. I didn't think they would be.
Same error message:
"Package linux-headers-4.14.0-kali3-amd64 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."

I hope after Easter is over, they fix this anomaly quickly.

ezio19
2018-04-01, 07:58
I have the same problem when trying to install virtualbox.
The uname -r returns : 4.14.0-kali3-amd64 but the package in the repository is 4.15.0-kali2-amd64.
I'm not sure whether it's a good idea to install the package manually or wait for the repo to be fixed.

Benedict
2018-04-01, 09:27
I am experiencing the same problem here. I am trying to configure my VM to full screen and I got stuck on this bug! What is the solution out?

Benedict
2018-04-01, 09:29
The update and upgrade command are of no help here.

Benedict
2018-04-01, 09:31
Here is it friend. linux-headers-4.14.0-kali3-amd64

JGB
2018-04-01, 10:45
I've just check the repo again.
Kernel 4.15.0 and the headers to go with it are both now up.
So - I upgraded to the linux-image-4.15.0-kali2-amd64 and also the matching linux-headers package.
All's good now. I can compile kernel modules again and load VirtualBox-Guest-Additions in a linux guest now, no problems.
Your answer @mrNove is to upgrade to the 4.15.0 kernel, as the linux headers are there and installable for that new kernel.

SidV
2018-04-01, 15:54
I've just check the repo again.
Kernel 4.15.0 and the headers to go with it are both now up.
So - I upgraded to the linux-image-4.15.0-kali2-amd64 and also the matching linux-headers package.
All's good now. I can compile kernel modules again and load VirtualBox-Guest-Additions in a linux guest now, no problems.
Your answer @mrNove is to upgrade to the 4.15.0 kernel, as the linux headers are there and installable for that new kernel.

Hey there, i got the same problem too.
I'm new to Linux and Kali and right now i'm looking for a command how to browse the repository files.
what i did till now is:
- installing Kali 2018.1 in a VirtualMachine with VBox
Now i want to add the Guest Additions for Fullscreen Support and so on.
removed the hash in sources.list for source packages and ran

apt update
apt upgrade
reboot
apt dist-upgrade
apt full-upgrade
# maybe redundant but says i'm up to date

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

This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'linux-headers-4.14.0-kali3-amd64' has no installation candidate

uname -r shows me
4.14.0-kali3-amd64

dont understand here why and how you "upgrade" to linux-image4.15.0-kali2-amd64 since it's kali3?! isnt that a downgrade?!
new to this and obviously a stupid question but i wanna get into it and maybe one is so kind to help a beginner a bit..

PaperTrail
2018-04-01, 16:27
I have had the same problem. But i just performed an "apt-get update && apt-get upgrade" and "uname -r" still returned 4.14.0-kali3-amd64.

So i searched the repositories [$ apt search 4.15] and found the new packages (image and header files)

$ apt install linux-headers-4.15.0-kali2-amd64

$ apt install linux-image-4.15.0-kali2-amd64

And performed a reboot...

Then: $ ./VBoxLinuxAdditions.run

Reboot again, et voila!!

I hope this helps someone.

_defalt
2018-04-01, 16:53
@JGB In repositories, Linux headers are available for the latest kernel version. Your kali image was old and isn't updated. You were supposed to
sudo apt update && sudo apt upgrade && sudo apt dist-upgrade

Then a reboot is required.

Then only you can install latest kernel headers.
sudo apt install linux-headers-$(uname -r)

People forget to reboot after kernel upgrade.

cristyanul
2018-04-02, 10:25
@JGB In repositories, Linux headers are available for the latest kernel version. Your kali image was old and isn't updated. You were supposed to
sudo apt update && sudo apt upgrade && sudo apt dist-upgrade

Then a reboot is required.

Then only you can install latest kernel headers.
sudo apt install linux-headers-$(uname -r)

People forget to reboot after kernel upgrade.
None of the commands above work for me.
~# apt install linux-image-4.15.0-kali2-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-4.15.0-kali2-amd64
E: Couldn't find any package by glob 'linux-image-4.15.0-kali2-amd64'
E: Couldn't find any package by regex 'linux-image-4.15.0-kali2-amd64'

kenpocory
2018-04-02, 21:46
I have had the same problem. But i just performed an "apt-get update && apt-get upgrade" and "uname -r" still returned 4.14.0-kali3-amd64.

So i searched the repositories [$ apt search 4.15] and found the new packages (image and header files)

$ apt install linux-headers-4.15.0-kali2-amd64

$ apt install linux-image-4.15.0-kali2-amd64

And performed a reboot...

Then: $ ./VBoxLinuxAdditions.run

Reboot again, et voila!!

I hope this helps someone.

That was exactly what I needed. Thanks man!

_defalt
2018-04-04, 15:00
None of the commands above work for me.
~# apt install linux-image-4.15.0-kali2-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-4.15.0-kali2-amd64
E: Couldn't find any package by glob 'linux-image-4.15.0-kali2-amd64'
E: Couldn't find any package by regex 'linux-image-4.15.0-kali2-amd64'

I didn't ask you run this command.

ezio19
2018-04-05, 16:50
I have had the same problem. But i just performed an "apt-get update && apt-get upgrade" and "uname -r" still returned 4.14.0-kali3-amd64.

So i searched the repositories [$ apt search 4.15] and found the new packages (image and header files)

$ apt install linux-headers-4.15.0-kali2-amd64

$ apt install linux-image-4.15.0-kali2-amd64

And performed a reboot...

Then: $ ./VBoxLinuxAdditions.run

Reboot again, et voila!!

I hope this helps someone.

This should indeed work!
I don't know what was happening with my system but even with the update/upgrade/dist-upgrade and reboot my kernel was still the same (I'm on KDE).

I actually solved this by using the GUI. It was saying that updates are available even though I already updated (think they weren't installed correctly or smth).
When I rebooted after the updates being installed, I saw the correct kernel in the advanced grub options but when I logged in I was prompted with a black screen and only a mouse pointer (somehing went really wrong with kde).
I opened a shell session with CTRL+Alt+F1 and ran: sudo dpkg --configure -a
When I rebooted, everything was working correctly with the new header.

Hope this helps someone.

Amish
2018-04-10, 21:11
Did you get this issue resolved? I keep getting the same result.

~# apt install linux-headers-4.15.0-kali2-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.15.0-kali2-amd64
E: Couldn't find any package by glob 'linux-headers-4.15.0-kali2-amd64'
E: Couldn't find any package by regex 'linux-headers-4.15.0-kali2-amd64'

kalicrypto
2018-04-30, 20:32
This worked for me, thanks!

rimoris
2018-05-04, 08:19
Hi.
I need to install a video card driver but I can't install linux-headers-4.14.0-kali3-amd64. For some reason, the package is not in the repository
My repolist:''

Code:
deb http://repo.stikom.edu/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line


After

sudo apt update && sudo apt upgrade

linux-image-4.14.0-kali3-amd64 ----> Install Success

Hacks4Pancakes
2018-05-04, 16:10
Just offering a note that was relevant to me, but has nothing to do with Kali.

If you are behind a web proxy that blocks kali.org - well nothing is going to work off of base installation.

Common sense, but easy to miss. If you can't connect to repos or have weird things going on similar to most of what I've seen in this thread. Turn on your mobile hotspot, pull your hard cord and try again.

H4P

eversor
2018-05-05, 18:08
this is actually relative to an issue im having with my system, same package and header issues only my system is broken if i install it which is annoying af. apologies for the dual post here, but i hadn't spotted this thread prior to posting in the kali install section, the details of my issue are as follows;

https://forums.kali.org/showthread.php?40449-strange-issue-with-headers-and-upgrading

"ive got a very strange issue with my persistent usb, if i apt-get upgrade (or any variation of) it breaks mouse and keyboard and i have to reinstall.
i discovered that the package linux-image-4.14.0-kali3-amd64 is the root cause

if I mark the package with apt-mark (apt-mark hold linux-image-4.14.0-kali3-amd64) the package is held back and everything works as it should.
untill it comes to installing the drivers for my bcm43 NIC, after installing the drivers which i know usually work, and run modprobe wl
i get an error of: modprobe: FATAL: Module wl not found in directory /lib/modules/4.14.0-kali3-amd64

it appears that the module i need for my wifi is the same one that breaks my keyboard and mouse which is annoying.

but whats more annoying is that after updating my headers, there has appeared a module: 4.15.0-kali2-amd64 and the wl drivers appear to have been installed into this. but when trying to run modprobe wl command it searches in 4.14.0 and fails. ive tried all sorts to get this to work and no dice with anything.

i want to do full-upgrade, but cant out of fear that it will once again break my mouse and keyboard if i do not flag the package mentioned above.

one thing i would like to do is clone the entire drive and file system and run tests on the clones first. but clones never seem to just be 1-2-1 copies, and the persistence partitions seem to become corrupt or broken."

after seeing a lot of varying issues based around the "linux-image-4.14.0-kali3-amd64" package, i was wondering if doing another full-upgrade to the latest kali 2018.2 might fix the problems but i cant find any info on if any of the problems have been fixed yet

newp_th
2018-05-09, 11:34
Make sure that packages are up to date or run following command.VMware recommends using the distribution-specific open-vm-tools (OVT) instead of the VMware Tools package for guest machines. To install open-vm-tools in Kali, first make sure you are fully updated, and then enter the following:




Check the version:


root@kali:~# uname -a
Linux kali 4.15.0-kali2-amd64


Download approximate deb file from http://ftp.tku.edu.tw/kali/pool/main/l/linux/


install the package
dpkg -i Linux kali 4.15.0-kali2-amd64.deb




apt update && apt -y full-upgrade


apt-get install open-vm-tools-desktop fuse

pritamsoni-hsr
2018-05-28, 02:19
add http://old.kali.org/kali sana main non-free contrib to your /etc/apt/apt.conf
then run apt update && apt upgrade

L0uizn3ss
2018-06-11, 15:46
i am havin this issue with i2p but when i run the live usb version everything works great after i install even if it is fresh it says e:unable to lcate package i2p
i am running kali linux as primary os on my PC and i can't find a solution i cannot install anything

2018-06-14, 19:18
Thank you! This totally fixed it! Great Job!




Make sure that packages are up to date or run following command.VMware recommends using the distribution-specific open-vm-tools (OVT) instead of the VMware Tools package for guest machines. To install open-vm-tools in Kali, first make sure you are fully updated, and then enter the following:




Check the version:


root@kali:~# uname -a
Linux kali 4.15.0-kali2-amd64


Download approximate deb file from http://ftp.tku.edu.tw/kali/pool/main/l/linux/


install the package
dpkg -i Linux kali 4.15.0-kali2-amd64.deb




apt update && apt -y full-upgrade


apt-get install open-vm-tools-desktop fuse

stephan1827
2018-06-14, 20:16
I also need the file linux-headers-4.14.0-kali3-amd64. I have a driver for TP-Link TL-WN722N that does not working with anything new than 4.14 so upgrading is not an option. Is there any mirror where I can get the older files?

Stephan

Ben006
2018-06-27, 04:44
I have had the same problem. But i just performed an "apt-get update && apt-get upgrade" and "uname -r" still returned 4.14.0-kali3-amd64.

So i searched the repositories [$ apt search 4.15] and found the new packages (image and header files)

$ apt install linux-headers-4.15.0-kali2-amd64

$ apt install linux-image-4.15.0-kali2-amd64

And performed a reboot...

Then: $ ./VBoxLinuxAdditions.run

Reboot again, et voila!!

I hope this helps someone.


When I ran above commands, I got unbale to loacte package error.

Unknowngs
2018-07-05, 01:31
MY SOLUTION

root@kali:~# cd ..
root@kali:/# ls
0 dev initrd.img lib64 mnt root srv usr vmlinuz.old
bin etc initrd.img.old lost+found opt run sys var
boot home lib media proc sbin tmp vmlinuz
root@kali:/# cd lib
root@kali:/lib# ls
apparmor ifupdown security
console-setup init systemd
cpp klibc-SeBjdSgcGwU_i_znDl2u5bLjR7c.so terminfo
crda live udev
cryptsetup lsb x86_64-linux-gnu
firmware modprobe.d
hdparm modules
root@kali:/lib# cd modules
root@kali:/lib/modules# ls
4.14.0-kali3-amd64 4.16.0-kali2-amd64

root@kali:~# apt install linux-image-4.16.0-kali2-amd64
root@kali:~# apt install linux-headers-4.16.0-kali2-amd64

root@kali:~# reboot

root@kali:~# ./VboxLinuxAdditions.run
root@kali:~# apt-get update && apt-get install linux-headers-$(uname -r) -y

root@kali:~# reboot

That was my solution, I hope it's also from others