Pages

How to Install Virtualbox 4.1 in Ubuntu 11.04 Natty Narwhal, 10.10 and 10.04?

Virtualbox without a doubt is one of the best cross-platfor virtualization software available. Although usually a virtulization application runs under different operating systems but there are few that only support (installs) a single operating system. Virtualbox in that sense can be run in GNU/Linux, MS Windows and Mac OSX, really easy to customize thanks to the awesome GUI implementations + most importantly, it's completely free of charge as well.

Although it was called "non-free" in the past since it wasn't an opensource app back then, but now since Oracle (Sun Microsystems actually) decided to make its source-code available under the GNU-GPL license... this has become one of the favorites of the GNU/Linux Geeks ;-).

Virtulization software in general usually releases new version a bit frequent than many other kinds of software since stability and a higher level of security is a must for a "virtualized-environment" thus there's always "space" for bug fixes (yikes) and improvements in general.  

What the! ;-)...

As a result Oracle also releases new versions quite frequently which usually means bug fixes rather than "features" but few hours ago they've released Virtualbox 4.1 which brings some major changes to the overall application such as...

*. Enhanced virtual disks creating wizard.

*. A totally new wizard for copying virtual disks.

*. Aspect ration related bug fix (only concerning MS Windows and Mac OSX).

*. A new and experimental Windows display driver model that eliminates the need to installing the Guest drivers in Safe Mode + supports the Aero interface (including Direct 3D of course) as well.

*. New network driver model (open-architecture) which separately distributable virtual network implementations.

*. With VboxManage now an experimental SATA hot-plug is available... are just the major ones to mention.

But the 4.1 version do come with a lot of bug fixes as usual too. You can install Virtualbox 4.1 in Ubuntu 11.04 Natty Narwhal, 10.04 and 10.10 by using main two methods.

Note: If you have installed Virtualbox before, then please remove it first. This may not be necessary... but  in most cases having a fresh-install is the best way to go ;-). To remove Virtualbox use the below command.
sudo apt-get purge virtualbox

The first method I think is the easiest since all you gotta do is just download the pre-built ".deb" packages from Oracle themselves and once the downloading is complete, just double click on it and follow the on-screen instructions. So... if you use,

Ubuntu 11.04 - Then get the 32-bit from here and 64-bit version from here.

Ubuntu 10.10 - Then get the 32-bit from here and 64-bit from here.

Ubuntu 10.04 - Then get the 32-bit from here and 64-bit version from here.


If you're a bit of a old-school geek, you can also install Virtualbox 4.1 using the command-line by using the below steps if you like as well.

1. First you'll have to enter the Virtualbox repository into the Ubuntu Linux OS.

Open your Terminal and enter the below commands.
sudo gedit /etc/apt/sources.list

This should open the gedit (text editor for Gnome desktop) with "source.list" file opened and ...

If you use Ubuntu Linux 11.04, then enter the below text into the "sources.list" file.
deb http://download.virtualbox.org/virtualbox/debian natty contrib

If you use Ubuntu 10.10 then use the below one instead.
deb http://download.virtualbox.org/virtualbox/debian maverick contrib non-free

If you use Ubuntu 10.04 then you'll have to use the below one. 
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free

Then as said before, if you have already installed a previous of Virtualbox, then remove it and then afterwards use the below commands.
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

sudo apt-get update

sudo apt-get install virtualbox-4.1

That's it dudes...enjoy!.

4 comments:

Anonymous said...

It gave me this error (Sorry about the spanish)

"Los siguientes paquetes tienen dependencias incumplidas:
virtualbox-4.1: Depende: libqtcore4 (>= 4:4.7.0~beta1) pero 4:4.6.2-0ubuntu5.2 va a ser instalado
Depende: libqtgui4 (>= 4:4.7.0~beta1) pero 4:4.6.2-0ubuntu5.2 va a ser instalado
Depende: libssl0.9.8 (>= 0.9.8m-1) pero 0.9.8k-7ubuntu8.6 va a ser instalado"

Gayan said...

@Anonymous,

Hi... I removed your Gmail address, otherwise spammers could easily use it :/.

Anyhow, what method did you try? and what is your Ubuntu version?

I think the best option to install Virtualbox in to download the appropriate ".deb" file and just double click on it and follow the on-screen details (as included in the article) rather than using the second method.

If you followed the second option which is to add its repository, then please check whether you've added the wrong Ubuntu repository version (for instance if you're using 11.04 then you may have added 10.04).

sriniv said...

administrator@ubuntu:~$ sudo apt-get install virtualbox-4.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package virtualbox-4.1
E: Couldn't find any package by regex 'virtualbox-4.1'
administrator@ubuntu:~$
this is what i got..what to do..

Gayan said...

@sriniv,

Go to the below page and download the appropriate ".deb" package according to your Ubuntu version and double click on it which should install it (using the Ubuntu Software Center).

https://www.virtualbox.org/wiki/Linux_Downloads

Post a Comment