PDA

View Full Version : Having problems installing kernel headers (Dependency error)



mightybyte
2017-12-10, 22:33
My kali linux is running on a bootable USB with persistence.

At first I tried installing the headers this way:


apt-get install build-essential linux-headers-$(uname -r)

But then I got the following error:

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/kali/pool/main/l/linux/ and installing them manually, problem is I got another error:


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?

Mister_X
2017-12-11, 03:08
I'm not familiar with persistence but I'd assume:

apt-get update
apt-get dist-upgrade

mightybyte
2017-12-11, 09:50
Already tried that, didn't work.

_defalt
2017-12-12, 07:20
sudo apt update && sudo apt upgrade && sudo apt dist-upgrade
REBOOT
sudo apt install linux-headers-$(uname -r)

CtrAltDEL
2017-12-12, 09:28
linux-headers-4.13.0-kali1-amd64 are missing, tested on a brand new installation.

_defalt
2017-12-12, 11:36
linux-headers-4.13.0-kali1-amd64 are missing, tested on a brand new installation.
You can install linux headers 4.14 after upgrade.

CtrAltDEL
2017-12-12, 15:58
You can install linux headers 4.14 after upgrade.

Indeed, i think a reboot was necessary after upgrading now the version is 4.14 & headers are downloading

Thanks _defalt