How to add the proper repository information to Kali Linux to install kernel headers.

Posted: April 4, 2014. At: 12:59 PM. This was 4 years ago. Post ID: 7119
Page permalink.
WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters. These cookies expire two weeks after they are set.

Installing the kernel headers for Kali Linux allows the installation of Virtualbox Guest Additions and other software that relies upon the kernel headers, but the /etc/apt/sources.lst is not filled out by default.

Paste this code into the /etc/apt/sources.lst at the bottom of the file.

deb /kali main contrib non-free
deb /wheezy main contrib non-free
deb kali-dev main contrib non-free
deb kali-dev main/debian-installer
deb-src kali-dev main contrib non-free
deb kali main contrib non-free
deb kali main/debian-installer
deb-src kali main contrib non-free
deb kali/updates main contrib non-free
deb-src kali/updates main contrib non-free
deb kali-bleeding-edge main

Save the file then run apt-get update; apt-get upgrade to update all installed packages.

Credits to:

This fixed the Kali Linux problems and allowed updating the operating system packages.

Then you can run this command to install the kernel headers:

apt-get update; apt-get install -y linux-headers-$(uname -r)

No comments have been made. Use this form to start the conversation :)

Leave a Reply