Hello, I'm very frustrated to install header. I've searched thousands of pages but couldn't find a working solution.
So let me tell you what I did,
Then I did the following;
- apt-get update
- apt-get upgrade
- apt-get dist-upgrade
- reboot
Then I gave
apt-cache search linux-headers
and found the header
linux-headers-4.9.0-kali4-amd64
Then I looked with
uname -a and got
Linux kali 4.9.0-kali
3-amd64 #1 SMP Debian 4.9.18-1kali1 (2017-04-04) x86_64 GNU/Linux
Finally I tried to install with
apt-get install linux-headers-$(uname -r)
And got the following error:
HTML Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.9.0-kali3-amd64
E: Couldn't find any package by glob 'linux-headers-4.9.0-kali3-amd64'
E: Couldn't find any package by regex 'linux-headers-4.9.0-kali3-amd64'
If I try
apt-get install linux-headers-4.9.0-kali4-amd64
then it gives me
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-4.9.0-kali4-amd64 is already the newest version (4.9.25-1kali1).
The following packages were automatically installed and are no longer required:
jsql libjs-mochikit python-advancedhttpserver python-alembic python-boltons python-cheetah python-dap
python-editor python-formencode python-geoip2 python-geojson python-icalendar python-maxminddb
python-mpltoolkits.basemap python-openid python-pampy python-paste python-pastedeploy
python-pastedeploy-tpl python-pastescript python-pluginbase python-pyotp python-scgi python-smoke-zephyr
python-tempita python-termcolor python-tzlocal
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Where it says, "linux-headers-4.9.0-kali4-amd64 is already the newest version (4.9.25-1kali1)"
But if it is already installed then why do "uname -a" gives
Linux kali 4.9.0-kali
3-amd64 #1 SMP Debian 4.9.18-1kali1 (2017-04-04) x86_64 GNU/Linux
Isn't is suppose to give
Linux kali 4.9.0-kali
4-amd64 ............
P:S. I'm running Kali on persistence USB mode
Your response would be very much appreciated.
Thanks,