My kali linux is running on a bootable USB with persistence.
At first I tried installing the headers this way:
Code:
apt-get install build-essential linux-headers-$(uname -r)
But then I got the following error:
Code:
Package linux-headers-4.13.0-kali1-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
So I tried downloading the file from http://mirror.internode.on.net/pub/k.../main/l/linux/ and installing them manually, problem is I got another error:
Code:
dpkg -i linux-headers-4.13.0-kali1-all-amd64_4.13.10-1kali2_amd64.deb
(Reading database ... 326899 files and directories currently installed.)
Preparing to unpack linux-headers-4.13.0-kali1-all-amd64_4.13.10-1kali2_amd64.deb ...
Unpacking linux-headers-4.13.0-kali1-all-amd64 (4.13.10-1kali2) over (4.13.10-1kali2) ...
dpkg: dependency problems prevent configuration of linux-headers-4.13.0-kali1-all-amd64:
linux-headers-4.13.0-kali1-all-amd64 depends on linux-headers-4.13.0-kali1-amd64 (= 4.13.10-1kali2); however:
Package linux-headers-4.13.0-kali1-amd64 is not installed.
dpkg: error processing package linux-headers-4.13.0-kali1-all-amd64 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-headers-4.13.0-kali1-all-amd64
What should I do?