Unable to install virtualbox guest additions

dindibo4

New Member
Joined
Oct 4, 2018
Messages
13
Reaction score
1
Credits
0
Hello, I'm using Kali Linux and I'm pretty new to Linux, I'm having trouble installing the virtual-box guest additions, I wanna install this pack because I'm using the oracle vm virtualbox, but unfortunately it doesn't work.
I tried the following commands in the terminal:

Code:
apt-get update && apt-get upgrade -y
apt-get dist-upgrade -y
apt-get update
apt-get install -y virtualbox-guest-x11

That's the error I've got for the last line:
" E: unable to locate package virtualbox-guest-x11 "

What have I done wrong?
Please help me to solve this, thanks from advance.
 


Hi @dindibo4 and welcome to linux.org :)

I'll attempt to answer your question, rather than read you the riot act on "why use Kali if you are new to Linux?"

Code:
nano /etc/apt/sources.list

#enter the line, at bottom

deb http://http.kali.org/kali kali-rolling main contrib non-free

Then exit and save, logout or reboot and try just the last line of what you have listed to us.

If that does not work, I am out of ideas. ;)

Cheers

Chris Turner
wizardfromoz
 
Hi @dindibo4 and welcome to linux.org :)

I'll attempt to answer your question, rather than read you the riot act on "why use Kali if you are new to Linux?"

Code:
nano /etc/apt/sources.list

#enter the line, at bottom

deb http://http.kali.org/kali kali-rolling main contrib non-free

Then exit and save, logout or reboot and try just the last line of what you have listed to us.

If that does not work, I am out of ideas. ;)

Cheers

Chris Turner
wizardfromoz

Hey, thanks for your reply.

I'm not sure if I understood you correctly, I've added to the sources.list file this line:
Code:
deb http://http.kali.org/kali kali-rolling main contrib non-free
then I rebooted and tried the last line that I've sent, but it didn't worked.

By the way, I'm not sure if it's related or not, but when I've installed the OS I didn't configured the network mirror.
 
Code:
sudo apt install virtualbox-guest-dkms virtualbox-guest-x11 linux-headers-$(uname -r)
 
Code:
sudo apt install virtualbox-guest-dkms virtualbox-guest-x11 linux-headers-$(uname -r)
Unfortunately, it doesn't work either.
That's the message I've got from the terminal:

Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package virtualbox-guest-dkms
E: Unable to locate package virtualbox-guest-x11
E: Unable to locate package linux-headers-4.15.0-kali2-amd64
E: Couldn't find any package by glob 'linux-headers-4.15.0-kali2-amd64'
E: Couldn't find any package by regex 'linux-headers-4.15.0-kali2-amd64'
 
Hi @dindibo4 - I have Asperger's Syndrome so sometimes I get information cockeyed.

I just want to be sure we are on the same page here.

Is it the case that you are running a full install of Kali on your computer, and you are wanting to install VirtualBox on Kali?

If that is so, can you give us your output, from Terminal of the following:

Code:
uname -r

#and

apt-cache policy virtualbox

Thanks

Wizard
 
aWZkM0E.jpg
 
Hey that's great @dindibo4 :)

Thanks for sharing and keeping us up-to-date. I'll bookmark that for my references.

Enjoy your Linux

Wizard
 

Staff online

Members online


Top