Installing GA in Ubuntu

Discussions about using Linux guests in VirtualBox.
Post Reply
mkr10001
Posts: 34
Joined: 29. Sep 2010, 19:18
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, 7, Ubuntu, Backtrack 5

Installing GA in Ubuntu

Post by mkr10001 »

This is getting frustrating now.

Whenever I need to update it the previous way of doing it doesn't work.

I'm trying to follow this guide

http://forums.virtualbox.org/viewtopic.php?t=15679


but I get


E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
michael@michael-VirtualBox:~$


So I just try mounting it and I get


mount: only root can do that
michael@michael-VirtualBox:~$


The disk is on the desktop so I try the next part and I get


michael@michael-VirtualBox:~$ sh ./VBoxLinuxAdditions.run
sh: Can't open ./VBoxLinuxAdditions.run
michael@michael-VirtualBox:~$


help?
mkr10001
Posts: 34
Joined: 29. Sep 2010, 19:18
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, 7, Ubuntu, Backtrack 5

Re: Installing GA in Ubuntu

Post by mkr10001 »

OK I ejected it and clicked install from the devices menu and it seems to be doing it.


Those instructions still don't work though
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Installing GA in Ubuntu

Post by Perryg »

To be able to run these commands you need to put sudo at the front in Ubuntu.
Example:

Code: Select all

sudo apt-get install dkms build-essential linux-headers-generic
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Installing GA in Ubuntu

Post by Sasquatch »

And that just showed that he skimmed the howto, instead of actually reading it. It's noted clearly how to run each command. Ah well, as long as he gets it done one way or another.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply