PDA

View Full Version : cant install linux-header kali sana/ vmware player



Botmaster
2015-08-12, 19:40
hi,
i tried to install vmware tools for kali sana but i cant go further than kernel path.
i tried :
apt-get update && apt-get install -y linux-headers-$(uname -r)

it used to work for previous version of kali, but this version i get error: that package cant be find
is there any other source i need to add to sources.list or what else can i do?

Cashiuus
2015-08-13, 02:00
I also had this issue with Kali 2.0, but it was due to the sources.list missing the http.kali.org entries from a vanilla install using the amd64 ISO. Add these in, update, and you should be good to go.

/etc/apt/sources.list:

# Regular Repositories
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free

# Source Repositories
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free

Update and Install

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

M0D1xD
2015-08-13, 03:29
I also had this issue with Kali 2.0, but it was due to the sources.list missing the http.kali.org entries from a vanilla install using the amd64 ISO. Add these in, update, and you should be good to go.

/etc/apt/sources.list:

# Regular Repositories
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free

# Source Repositories
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free

Update and Install

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

Thanks alot :D
it helped me and worked

Botmaster
2015-08-13, 08:25
I also had this issue with Kali 2.0, but it was due to the sources.list missing the http.kali.org entries from a vanilla install using the amd64 ISO. Add these in, update, and you should be good to go.

/etc/apt/sources.list:

# Regular Repositories
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free

# Source Repositories
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free

Update and Install

apt-get update
apt-get install linux-headers-$(uname -r)
still same
# apt-get install -y linux-headers$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers4.0.0-kali1-amd64
E: Couldn't find any package by regex 'linux-headers4.0.0-kali1-amd64'

g0tmi1k
2015-08-13, 09:36
still same
# apt-get install -y linux-headers$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers4.0.0-kali1-amd64
E: Couldn't find any package by regex 'linux-headers4.0.0-kali1-amd64'

Thats not the same.
Your command: apt-get install -y linux-headers$(uname -r) (missing '-')
Correct command: apt-get install -y linux-headers-$(uname -r)

After fixing your source file, you HAVE to run apt-get update.

leave
2015-08-18, 09:47
sources.list should use the name sana for 2.0...

sla2016
2016-01-02, 21:11
Hi,
I am having a problem and I hope you have time to support me...

I am not able to get linux-headers-3.18.0-kali3-686-pae installed on linux kali sana after the updarde as follow:
- my source list as follow


deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free


- I run the following to update using the following command


apt-get update
apt-get upgrade
apt-get dist-upgrade


- I run the following command to install linux header as follow:


apt-get install linux-headers-3.18.0-kali3-686-pae


and it gives me an error as follow:


E: Unable to locate the package linux-headers-3.18.0-kali3-686-pae


- I run the following command


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


and it gives me the same error.

Freshnuts
2016-01-06, 08:34
Hey guys, I made a post of my solution before replying to this thread
because I was paying attention to other posts about this issue and didn't see this one. I apologize.

I'll post my solution on here also.

It pretty simple for me, hopefully it works for everyone.

I downloaded - VMware-Player-12.1.0-3272444.x86_64.bundle

# uname -a
Linux kali 4.0.0-kali1-amd64 #1 SMP Debian 4.0.4-1+kali2 (2015-06-03) x86_64 GNU/Linux

# apt-get update
# apt-get install linux-headers-4.0.0-kali1-all-amd64

After that, I was able to get on vmplayer with no issues.

cheers

l0mas
2016-08-18, 18:52
I also had this issue with Kali 2.0, but it was due to the sources.list missing the http.kali.org entries from a vanilla install using the amd64 ISO. Add these in, update, and you should be good to go.

/etc/apt/sources.list:

# Regular Repositories
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free

# Source Repositories
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free

Update and Install

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

what do i do with the code? do i create a text file with leafpad? and if so what do i name the text file?

Im soory im kind of new to all linux OS's trying to learn the OS correctly before hard disk installing it on my desktop

injector.kali
2016-09-04, 09:28
i Edit File Source.list



# Regular Repositories
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free

# Source Repositories
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free


This Error Show Me !


root@Galaxy:~# apt-get update
Reading package lists... Done
E: Method http has died unexpectedly!
E: Sub-process http received a segmentation fault.

and check subdomain security.kali.org
i see havent the folder kali-security
and 2 subdomain http.kali.org
havent folder kali

and NOt updated

(i downloaded last version kali in your site !)

---------
i have problem install kernel amd64


root@Galaxy:~# apt-get install linux-headers-`uname -r`
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.3.0-kali1-amd64
E: Couldn't find any package by glob 'linux-headers-4.3.0-kali1-amd64'
E: Couldn't find any package by regex 'linux-headers-4.3.0-kali1-amd64'

I tray apt-get update and more command :(


Nevertheless, I realized that those files are not available within that sub-domain and time again I could not change the amount of packages




deb http://security.kali.org/dists/sana/ updates main contrib non-free
deb http://http.kali.org/dists/sana-proposed-updates/ updates main contrib non-free


Plz help me nearly 12 hours on this work :-|