11

I am unable to install virtual box guest additions in Lubuntu 16.04

My following is my terminal screenshot:

enter image description here

When I type in terminal ./autorun.sh

I get the following output:

Linux guest additions installer not found --try to start them manually.

Why this is happening and how to "start them manually"?

I have tried shutting down the machine, removing guestadditions.iso, restarting the machine, and reinserting the guest additions CD.

But the problem persists.

Why is this happening?

rancho
  • 3,926
  • 6
  • 23
  • 53

4 Answers4

26

I managed to solve my problem, it is pretty easy.

What I did was I opened terminal and typed:

apt update
apt upgrade #To install Linux headers
apt install gcc
apt install make
cd /media/"username"/VBOX*
./VBoxLinuxAdditions.run
reboot

Then I set the monitor screen resolution to mine (which is 1360x644)

Then I restarted it again.

And it is done

rancho
  • 3,926
  • 6
  • 23
  • 53
  • Thanks. Perfect and concise. I would only add that you need to either prefix each command by sudo or run sudo -i (interactive session) before executing the commands – Pierre Jul 04 '17 at 16:42
  • I get a `VirtualBox Guest Additions: modprobe vboxsf failed` error, but maybe it will mean nothing after a reboot? -- Edit, yes, I re-ran the next-to-last command after rebooting and it worked with no errors. Not sure if it's necessary to do it twice, but I was reassured. – Fuhrmanator Mar 22 '18 at 15:51
1

The problem is that autorun.sh looks for konsole, gnome-terminal, mate-terminal, or xterm, and Lubuntu has none of them installed. A simple remedy is to run

sudo apt install xterm gcc make 

before inserting the guest additions Then you can double-click on autorun.sh in PCManFM, and the installation works as it was presumably intended.

cayhorstmann
  • 171
  • 1
  • 5
1

Another issue I found where none of these solutions worked (installing Raspberry Pi Desktop):

./VBoxLinuxAdditions.run no good

sudo ./VBoxLinuxAdditions.run no good

sudo sh VBoxLinuxAdditions.run SUCCESS

So it seems you sometimes have to explicitly run the vbox additions file with sh - otherwise it will fail with "Linux guest additions installer not found --try to start them manually."

0

Typeing the following commands works for me:

$ sudo apt-get install linux-headers-$(uname -r)
$ ./VBoxLinuxAdditions.run