I encountered this problem when upgrading from 12.10 to 13.04. No matter what I did, the VMware Tools installer couldn't seem to find the headers. For the record, here's how I installed the headers:
sudo apt-get update && sudo apt-get install build-essential linux-headers-$(uname -r)
Turns out, the installer is looking for the version.h
file in under [kernelsource path]/include/linux/version.h
, it's not there. The location of version.h
is [kernelsource path]include/generated/uapi/linux/version.h
The solution is a symlink:
sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h
After creating this symlink, I was able to run the VMware Tools installer without a problem.
Updates
The LionSec Katoolin GitHub webpage clearly warns Katoolin users to be careful when updating software.
Before updating your system, please remove all Kali-linux repositories to avoid any kind of problem.
All kinds of problems can occur if you don't do this.
Software installation
Katoolin is a nice package management tool, however because Katoolin is a package management tool, problems can come in groups of packages instead of one package at a time, especially if you try to grab all the Kali linux tools at the same time. Many of the tools in Katoolin are otherwise only available as .tar.gz archives, and in order to install them, you would have to track them down and compile them one by one. Before you compile a .tar.gz, you should check whether the executable is provided by another package from the default Ubuntu repositories.
In Katoolin Kali linux tools come from multiple repositories and in these repositories there are more than 300 tools. Some of these tools are duplicates of tools that can be installed from the default Ubuntu repositories, and sometimes they are more up-to-date versions having different dependencies than the same tools from the default Ubuntu repositories. Some tools in Katoolin are packaged as standalone tools, whereas in Ubuntu the same tool is bundled into a larger package that contains additional software. When you add a new Kali repository apt doesn't always know if you are adding conflicting packages to your system's list of software, but you'll find out about it when you try to install the packages. Katoolin is a cross platform package management tool, and the same package that installs perfectly on another operating system can cause errors when trying to install it in Ubuntu.
In Katoolin tools can be installed in three different hierarchical levels of grouping.
- Install all Kali linux tools.
- Select a category and install all Kali linux tools in the selected category.
- Select a single tool and install it.
Don't be reckless. In order to install Kali linux tools in a safer way, don't install any tools that you don't need. The more Kali repositories that you add to your software sources and the more Kali linux tools that you install, the higher the probability is of breaking something.
Best Answer
The only current version of Ubuntu this works for is 12.04 and the repos haven't been updated since 2013. Don't use it.
For 14.04+, please see the second answer.
Copy the following Kali repositories:
Replace the text
YOUR_UBUNTU_VERSION
based on your Ubuntu version.precise
quantal
raring
Assuming that you are using Ubuntu 13.04, your repositories would be
Note: If you're an Ubuntu 14.04 user, you can use
raring
, as Trusty version of Kali repositories are not releasedUpdate sources
Open your sources using the command
Now, gedit editor will open the file
kali-tools.list
. Paste the above code at the end of your file and Save.Copy the PGP Key
Copy the Key below and save it as key.pgp text file in your desktop.
Add PGP Key in apt
Open terminal and type
If your key addition is successful, you will see
Ok
.Now update your apt-get repositories using the command
Install Synaptic Package Manager
Use the command
If you already have Synaptic installed, you may skip this step.
Install Kali Tools
Now open Synaptic Package manager and click on Origin. You can see 2 Kali repositories by names
Click on the repositories and install the Tools from the list.