PDA

View Full Version : Unable to locate package linux-headers-4.3.0-kalil-686-pae



Farenheit451
2016-04-18, 00:28
Hello,

I'm trying to install the linux headers for my system and I'm unable to locate the specific package. I read that if I input the following command:

apt-get install linux-headers-$(uname -r)
then the headers should be installed correctly. However, it seems it's unable to find the package associated with my system:



E: Unable to locate package by 'linux-headers-4.3.0-kalil-686-pae'
E: Couldn't find any package by glob 'linux-headers-4.3.0-kalil-686-pae'
E: Couldn't find any package by regex 'linux-headers-4.3.0-kalil-686-pae'


I am running a 32-bit Kali OS from a live usb with persistence. I have fully upgraded by system (then restarted it) by running:

apt-get update && apt-get full-upgrade

I have verified that their are no available packages left by running
apt list --upgradeable which returns "Listing... Done".

I have not modified my source list either, here's the sources.list:



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


I have tried looking out other threads on the forum about this issue, see this (https://forums.kali.org/showthread.php?30716-Cannot-find-linux-headers-4-3-0-kali1-amd64) and this (https://forums.kali.org/showthread.php?5804-Kernel-headers-problem/page6&highlight=4.3.0+kalil), yet the suggestions haven't worked.

Any suggestions or comments on how to fix this are greatly appreciated, thank you!

g0tmi1k
2016-04-18, 08:16
We only keep the latest kernel headers in the repo. We are currently on 4.4 (not 4.3).
You need to make sure your repo values are correct, apt-get update, apt-get dist-upgrade, reboot (and make sure you use the newer kernel), then install the headers.

Farenheit451
2016-04-18, 19:54
We only keep the latest kernel headers in the repo. We are currently on 4.4 (not 4.3).
You need to make sure your repo values are correct, apt-get update, apt-get dist-upgrade, reboot (and make sure you use the newer kernel), then install the headers.

Hi g0tmi1k,

Thanks for taking the time to help me out.

The funny thing is that I have tried running all of those commands listed above (apt-get update, apt-get dist-upgrade, rebooting)--every time I run them APT essentially says there are no additional packages available. I have verified my source list is correct as per the official kali site (I listed them above in my original post).

Interesting note: I found today that although uname -r returns 4.3.0-kali1-686-pae, it seems I already have the 4.4.0 headers installed according to APT:


root@kali:~# apt-get install linux-headers-4.4.0-kali1-686-pae
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-4.4.0-kali1-686-pae is already the newest version (4.4.6-1kali1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


Perhaps there's a disconnect between the value returned in the uname command and the actual packages installed in the system?

Whatever the case is, even though it says it's installed, when I try to install the backport drivers for my wireless card it says that I don't have the kernel headers, so something is still clearly off.

Many thanks, I truly appreciate your time and hope to hear from you soon,

F451

P373
2016-04-22, 18:34
Hi g0tmi1k,

Interesting note: I found today that although uname -r returns 4.3.0-kali1-686-pae, it seems I already have the 4.4.0 headers installed according to APT:

Run update-grub and reboot into your new kernel.

P373
2016-04-23, 15:09
You can also check the repos with:

root@stealth:~# apt-cache search 686-pae
linux-headers-4.4.0-kali1-686-pae - Header files for Linux 4.4.0-kali1-686-pae
linux-headers-686-pae - Header files for Linux 686-pae configuration (meta-package)
linux-image-4.4.0-kali1-686-pae - Linux 4.4 for modern PCs
linux-image-4.4.0-kali1-686-pae-dbg - Debugging symbols for Linux 4.4.0-kali1-686-pae
linux-image-686-pae - Linux for modern PCs (meta-package)
linux-image-686-pae-dbg - Debugging symbols for Linux 686-pae configuration (meta-package)
nvidia-kernel-4.4.0-kali1-686-pae - NVIDIA binary kernel module for Linux 4.4.0-kali1-686-pae
nvidia-kernel-686-pae - NVIDIA kernel module for Linux (686-pae flavor)
root@stealth:~#

hellrokr
2016-06-08, 06:48
Run update-grub and reboot into your new kernel.

Just my 2 cents here. i had a similar issue. After hours I found out that I had 2 kernels installed but there was no entry in grub for the newer one.

What I did was to remove all files related to old kernel in /boot/ folder. I don't know if it is the perfect way or not. But this worked.

Don't forget to update-grub after removing.