Install VirtualBox in 14.04 - Solved

Hello again,

I’m now using Ubuntu 14.04. I’m trying to install Virtualbox-4.3 in order to run XP in a vm, but I keep getting the error - “Failed to download package files Check your internet connection”.

My internet connection seems fine - I can browse the web, etc.

Any suggestions gratefully accepted.

Thanks guys.

Are you trying to install it through the ubuntu software centre?

OK,let’s remove any verions of virtualbox that might be installed or partially installed:

sudo apt purge virtualbox*

then

sudo apt clean

Make sure you have build-essential, linux-headers-generic, and dkms installed:

sudo apt install build-essential linux-headers-generic dkms

add the public key for the oracle virtualbox repo with:

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

Now backup your sources.list:

sudo cp -v /etc/apt/sources.list /etc/apt/sources.list.bak

Now open sources.list for editing:

sudo gedit /etc/apt/sources.list

and add these 2 NEW LINES at the bottom:

###### Oracle VirtualBox repo
deb http://download.virtualbox.org/virtualbox/debian trusty contrib

SAVE the file and exit gedit.

Back in the terminal update the package cache:

sudo apt update

and install virtualbox-4.3 with

sudo apt install virtualbox-4.3

Check you’re a member of the vboxusers group and add yourself if necessary.

One finished installing (and adding yourself to the vboxusers group if necessary) …REBOOT.

Download the extensions pack for the correct version of virtualbox from here:
https://www.virtualbox.org/wiki/Downloads
here’s a direct download llink for the current version (4.3.14):
http://download.virtualbox.org/virtualbox/4.3.14/Oracle_VM_VirtualBox_Extension_Pack-4.3.14-95030.vbox-extpack
and double click it to to install it … virtualbox will start and offer to install it, click the “Install” button, then scroll to the bottom of the license and click the “I Agree” button, and enter your password when prompted.

Done.

Phew!

I’m beginning to realise how much I don’t know about Linux.

I’ll try this, but not at 21:43 after a long day. Maybe Sunday (working tomorrow).

I’ll let you know how I get on.

Thanks,

M

Obviously this kinda thing isn’t how you’d normally install stuff … but Oracle’s VirtualBox isn’t open source so will never be in the repos.
(there is an open source version in there, but it’s rubbish)

Sorry for interrupting. Is virtual box easier to install and use than wine, also would a virus killer be required to install windows programmes and does it need windows like Windows XP to make it work

Just an update,

Still haven’t tried this, but I appreciate the help.

I will try it as and when. Don’t want to go into details, but my wife is not well, so everything else has gone on hold.

Thanks guys.

I’m a bit confused about the angle you’re coming at with this one, but I’ll try to help. Virtualbox will create a “virtual PC” which you can install any operating system on (Windows XP, if you wish). The physical USB ports, network card, and DVD drive will be “forwarded” from the hardware, through the “host OS”, to the Virtualbox, to whatever OS you install. Certain things such as graphics card are a bit more complicated, as they don’t get forwarded at present (instead, the Virtualbox creates an emulation - this is important, as 3D gaming etc. doesn’t work). In terms of virus protection, it’s just as vunerable as a proper hardware install, but with one big advantage - Virtualboxes can be cloned, and these can be used as a snapshot (so, if it’s infected, you could just rollback to a previous snapshot in seconds).

Is is easier than Wine? This isn’t really a valid question, as you can do things with Wine that you can’t do with Virtualbox, and vice versa. Forget gaming in Virtualbox, but you might have a chance at Wine. You can use IE & other Windows desktop products such as Office (and I think iTunes) perfectly in Virtualbox, but they may not be 100% under Wine. It depends what you want to do, what applications you want.

Hello Mark,

Just going through your instructions. Everything seems fine (except sudo apt clean wasn’t recognized, although the rest of the steps went ok).

I’m stuck on “Check you’re a member of the vboxusers group and add yourself if necessary”. How do I do that please?

Cheers,

M

Is “Users and Groups” available in Ubuntu 14.04 ?

It’s not obvious. Bear in mind I’m a linux virgin and (as far as I can tell) I’m looking at the Unity desktop which I’m finding more baffling than it’s precursors…

Install gnome-system-tools:

sudo apt-get install gnome-system-tools

Now search for and start “Users and Groups” (click the top icon on the unity launcher bar left of screen … then type Users and Groups in the search box … then click the Users and Groups icon)

Click the “Manage Groups” button.

In the list of groups, scroll down and highlight the “vboxusers” group, then click the “Properties” button.

Make sure there’s a tick next to your username, then click the “OK” button.

Close everything.

REBOOT ← IMPORTANT

Once you’re back at the desktop, run:

groups

If vboxusers is in the returned list of groups, you’re a member of it … so carry on with the instructions for installing the extension pack for virtualbox.

Done that, and vboxusers is in the list.

Trouble is, I can’t see how to check what version of Virtualbox I’ve installed in order to download the correct extensions. In fact, I can’t even find out how to run Virtualbox!

I could just about cope with Gnome and KDE, but I’m really struggling with Unity. That’s not a criticism, just an observation.


OK. Cracked it! I took a chance and downloaded the latest version (4.3.14) extensions and it seems to have worked. Now VB appears in the ‘search your computer’ icon.

Thank you Mark. Much appreciated. I’m liking Linux more and more.

Not a big Unity fan myself, which is why I now use Peppermint.

You’re welcome :slight_smile:

Oh, nearly forgot … if you now consider it so, can you please remember to mark the topic (SLOVED) by editing the FIRST posting in this topic and changing

Subject: Install VirtualBox in 14.04 (SOLVED)

TIA.

I quite like the way Unity looks, and I’m on a learning curve with Unity, KDE and Gnome anyway (not to mention being a Windows escapee), so I’m keeping an open mind. It’s just that navigating around the computer seems slightly harder under Unity.

Probably just a question of familiarity and personal preference. I need to get properly to grips with Linux. Then I’ll decide which flavour. One thing I do know - I shan’t be buying Windows 8. After all, I’m typing this in a free 64 bit operating system…

Mark,

I’m trying to mark this solved, but without success.
The first post isn’t giving me that option.
If you can override it, please feel free to do so.
Otherwise, I’ll try again tomorrow.

Thanks again for all your help
I’ll be back (as they say)…

M

Hi mikep

I'm trying to mark this solved, but without success. The first post isn't giving me that option

Go to the first post select “modify” then you should be able to edit the subject line from there, change it to

Install VirtualBox in 14.04 (SOLVED)

Good luck

Graeme

The key thing about Unity, is to remember to search for everything you want. Don’t try to navigate, just type it in the dash - easily the quickest way to launch the app you want (assuming it’s not in the sidebar)

The key thing about Unity is to remember not to use it :wink: … if you wanna so called “activity based DE” go for Gnome3

Personally, though I originally liked Gnome3 (after giving it time to grow on me), I eventually went back to a more traditional desktop layout, it just makes more sense … I’m putting my original feelings for “activity based DE’s” down to novelty value, in the long term they’re harder work (at least for me).

And then there’s the “weight” issue … damn they’re resource hungry :o