PDA

View Full Version : linux-headers fix for vmware



eof
2013-06-17, 00:55
Hey guys I was having problems just like many installing vmware on kali. Although there are many posts and solutions non worked for me accept this one. I hope this solves most of your problems which I decided to share. Thanks and hope it works!

1. Make sure you got these sources listed in your /etc/apt/sources.list (I had only one but not the other which was my problem)
deb http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free

2. Only after you can update and upgrade
apt-get update
apt-get upgrade

3. Now you can successfully install the headers without getting the "package not found error". I used the following command:
apt-get install gcc make linux-headers-$(uname -r)

4. This should successfully install the headers and now you can install vmware successfully

Hope this helped guys if you have any problems let me know I'll get back to you. Thanks!

Mr Wolf
2013-07-19, 22:56
Many thanks! This has just helped me.

Joe_Wulf
2015-04-03, 19:26
I'm using VMware Workstation v10.0.5 build-2443746 hosting kali v1.1.0a; 'native' VMware tools, as this procedure shows, would install but not give functionality to the HGFS/shared folders.

Once I made sure my /etc/apt/sources.list was correct (from here: http://docs.kali.org/general-use/kali-linux-sources-list-repositories), I then followed these steps exactly (from: http://docs.kali.org/general-use/install-vmware-tools-kali-guest) and now it all works (including HGFS), and without rebooting, too.


cd ~
apt-get install git gcc make linux-headers-$(uname -r)
git clone https://github.com/rasa/vmware-tools-patches.git
cd vmware-tools-patches
cd ~/vmware-tools-patches
cp /media/cdrom/VMwareTools-9.9.0-2304977.tar.gz downloads/
./untar-and-patch-and-compile.sh


Manually, I've tested removing /root/vmware-tools-patches; rebooting and everything continues to work. This can save space, if you wish.

Should the kernel get updated; manually execute /usr/bin/vmware-toolbox-cmd; and it will accomplish an update that will (should!) fix everything to continue working correctly.

:cool:

R,

-Joe

abhinavvrm
2017-02-16, 04:10
i tried this but again im getting the same error...

apt-get install linux-headers-4.4.0-kali1-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.4.0-kali1-amd64
E: Couldn't find any package by glob 'linux-headers-4.4.0-kali1-amd64'
E: Couldn't find any package by regex 'linux-headers-4.4.0-kali1-amd64'


these are my repositories..

deb http://http.kali.org/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
deb http://http.kali.org/kali kali-dev-only main non-free contrib
deb http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free

please help..

Subzero
2017-02-22, 09:24
Hey guys I was having problems just like many installing vmware on kali. Although there are many posts and solutions non worked for me accept this one. I hope this solves most of your problems which I decided to share. Thanks and hope it works!

1. Make sure you got these sources listed in your /etc/apt/sources.list (I had only one but not the other which was my problem)
deb http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free

2. Only after you can update and upgrade
apt-get update
apt-get upgrade

3. Now you can successfully install the headers without getting the "package not found error". I used the following command:
apt-get install gcc make linux-headers-$(uname -r)

4. This should successfully install the headers and now you can install vmware successfully

Hope this helped guys if you have any problems let me know I'll get back to you. Thanks!


does not work 4me....


oot@ka:~# apt-get install gcc make linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.6.0-kali1-amd64
E: Couldn't find any package by glob 'linux-headers-4.6.0-kali1-amd64'
E: Couldn't find any package by regex 'linux-headers-4.6.0-kali1-amd64'


still the same error!
How can I fix the problem? need headers for virtualbox...

bob79
2017-02-25, 20:37
with the right repositories, dist-upgrade and a reboot should be enough