6

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?

  • 2
    Try sudo ./VBoxLinuxAdditions.run – You'reAGitForNotUsingGit Aug 11 '16 at 12:40
  • If you get permission denied, chmod +x it and try again. – You'reAGitForNotUsingGit Aug 11 '16 at 12:41
  • Thank you so much but I know it :) – rancho Aug 11 '16 at 12:59
  • Then may I ask why you didn't mention you tried that in your question? – You'reAGitForNotUsingGit Aug 11 '16 at 17:45
  • 1
    Well I did do sudo but I often don't mention it as it is too obvious – rancho Aug 11 '16 at 17:49
17

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

| improve this answer | |
  • 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 4 '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
0

Typeing the following commands works for me:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.