PDA

View Full Version : Trouble updating kernel headers



simoneeva
2016-03-20, 02:29
Hi guys!
For 3 days i'm stuck with this problem:
I need to install my nvidia card drivers, so i have to update my kernel headers; no problem, i follow the instruction but nothing worked for me.


E: Unable to locate package linux-headers-4.0.0-kali1-amd64


so i found on this forum various solution but nothing worked for me. I'm a noob, so I'm probably wrong just something simple.

My source file contain only the kali rolling repo


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


shoud i add something?

but if i go there: http://http.kali.org/kali/pool/main/l/linux/?C=S;O=D i can easily find the linux-image-4.4.0-kali1-amd64-dbg_4.4.6-1kali1_amd64.deb file, that is an update for my kernel, but how do I install it?
I'm really getting crazy, i want to understand what i'm doing wrong, please help me!!
and sorry for my bad English

aephlux
2016-03-20, 03:35
To update kernel one would usually just do dist-upgrade


apt-get update && apt-get dist-upgrade -y

Reboot when complete so you're using the installed kernel.
"uname -a" after that to check kernel version.

Once you have the latest kernel, try installing the kernel headers again.

simoneeva
2016-03-20, 10:41
To update kernel one would usually just do dist-upgrade
Code:

apt-get update && apt-get dist-upgrade -y

Reboot when complete so you're using the installed kernel.
"uname -a" after that to check kernel version.

Once you have the latest kernel, try installing the kernel headers again.

Nothing new, again the same error as before:


Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.3.0-kali1-amd64
E: Couldn't find any package by regex 'linux-headers-4.3.0-kali1-amd64'

aephlux
2016-03-20, 13:24
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.3.0-kali1-amd64
E: Couldn't find any package by regex 'linux-headers-4.3.0-kali1-amd64'

Apparently you're not using the current kernel version.
Kali only keeps the latest kernel headers in the repo.

What is the output of "uname -a"?

Maybe try running update and dist-upgrade again?

simoneeva
2016-03-20, 13:30
uname -a
4.3.0-kali1-amd64 #1 SMP Debian 4.3.3-5kali4 (2016-01-13) x86_64 GNU/Linux

Now I will try to reinstall kali and see what happens.

simoneeva
2016-03-21, 14:31
Problem solved! I formatted everything, added the rolling repo and all works fine! Tanks for the support!!

hacklo
2016-03-29, 16:36
hello, sir i am having the same problem i also got the same result on using command uname -a how did you fix it, what did you mean by you formated it and it solved your issue kindly assist!

hacklo
2016-03-29, 16:56
hy, can you tell me how did you format? i am having the same problem..please assist..same as yours

stevo4
2016-03-29, 19:59
reinstall kali and the problem will be solved

ixcuix
2016-05-16, 06:04
Not sure if you are still checking on this thread, but if so I am running apt-get update && apt-get dist-upgrade -y right now. It is taking awhile to load.
After It finishes loading do I have to "try installing the kernel headers again"?
I am doing all of this because there seems to be a problem with the driver for Railink Chipset for wifi adapters, the problem being no injection.
I tried the same wifi card with an old version of Backtrack and there was no problem at all with injection.
Anyway after I run apt-get update && apt-get dist-upgrade -y what should my next step be after rebooting?
Thanks