Page 1 of 2

Noob, help installing virtualbox 2.2 on ubuntu please!!

Posted: 26. Apr 2009, 13:11
by digibat
Hi there, i'm totally new to this operating system and finding it both amazing and awfully confusing. I am used to windows XP.

I'm have a fairly new installation of ubuntu running on my PC and have just upgraded it tothe new version 9.04.

I'm trying to use virtualbox and my friend suggested to upgrade to the latest version so that i could have USB support.

This has run me in to so many problems and it's becoming very frustrating as i am trying to follow instructions on how to install it but the instructions appear to be written for some one who already knows at least a little bit about how things work on ubuntu.

so i've been following the steps on here http://www.virtualbox.org/wiki/Linux_Downloads

and i've got to a point where i haven't a clue what this bit means.. The key fingerprint is

AF45 1228 01DA D613 29EF 9570 DCF9 F87B 6DFB CBAE
Sun Microsystems, Inc. (xVM VirtualBox archive signing key) <info@virtualbox.org>


and when trying to install virtualbox 2.2 i get this error from the terminal

The following packages have unmet dependencies.
virtualbox-2.2: Depends: libssl0.9.7 but it is not installable
Depends: python2.3 (>= 2.3) but it is not installable

Can anyone please help? it would be greatly appreciated! thank you

Re: Noob, help installing virtualbox 2.2 on ubuntu please!!

Posted: 26. Apr 2009, 14:07
by graysky
How are you installing it? There really isn't a need to add a repo and install via apt-get or aptitude. Plus, as I skimmed through the URL you posted, the repo method is for Debian, not Ubuntu.

1) Download the deb file from the link you provided
2) Open a shell and cd to the directory where you downloaded the deb file
3) sudo pdkg -i virtualbox-2.2_2.2.0-45846_Ubuntu_intrepid_amd64.deb

(Or if you downloaded the i386 one, substitute that name of the amd64).

If it still complains about dependencies, you'll need to install them from the official Ubuntu repo. First things first, complete the three steps above and if you run into troubles, post the output from the third command in this thread.

Re: Noob, help installing virtualbox 2.2 on ubuntu please!!

Posted: 26. Apr 2009, 20:01
by Sasquatch
Plus, as I skimmed through the URL you posted, the repo method is for Debian, not Ubuntu.
Wrong, there is an Ubuntu repo.

Code: Select all

deb http://download.virtualbox.org/virtualbox/debian intrepid non-free
deb http://download.virtualbox.org/virtualbox/debian hardy non-free
deb http://download.virtualbox.org/virtualbox/debian gutsy non-free
Those are Ubuntu release names.
If it still complains about dependencies, you'll need to install them from the official Ubuntu repo.
That's the OSE version. You might not want that, as it's 1) older than the latest release, and 2) limited in features. See the http://www.virtualbox.org/wiki/Editions for the differences.

Re: Noob, help installing virtualbox 2.2 on ubuntu please!!

Posted: 26. Apr 2009, 21:17
by graysky
Sasquatch wrote:
Plus, as I skimmed through the URL you posted, the repo method is for Debian, not Ubuntu.
Wrong, there is an Ubuntu repo.

Code: Select all

deb http://download.virtualbox.org/virtualbox/debian intrepid non-free
deb http://download.virtualbox.org/virtualbox/debian hardy non-free
deb http://download.virtualbox.org/virtualbox/debian gutsy non-free
Those are Ubuntu release names.
If it still complains about dependencies, you'll need to install them from the official Ubuntu repo.
That's the OSE version. You might not want that, as it's 1) older than the latest release, and 2) limited in features. See the http://www.virtualbox.org/wiki/Editions for the differences.
OK, as I said, I skimmed through the material. Bottom line is he can d/l the deb (virtualbox-2.2_2.2.0-45846_Ubuntu_intrepid_amd64.deb) and install it via dpkg and that is not the OSE version.

Re: Noob, help installing virtualbox 2.2 on ubuntu please!!

Posted: 26. Apr 2009, 21:26
by Perryg
graysky wrote:
Sasquatch wrote:
Plus, as I skimmed through the URL you posted, the repo method is for Debian, not Ubuntu.
Wrong, there is an Ubuntu repo.

Code: Select all

deb http://download.virtualbox.org/virtualbox/debian intrepid non-free
deb http://download.virtualbox.org/virtualbox/debian hardy non-free
deb http://download.virtualbox.org/virtualbox/debian gutsy non-free
Those are Ubuntu release names.
If it still complains about dependencies, you'll need to install them from the official Ubuntu repo.
That's the OSE version. You might not want that, as it's 1) older than the latest release, and 2) limited in features. See the http://www.virtualbox.org/wiki/Editions for the differences.
OK, as I said, I skimmed through the material. Bottom line is he can d/l the deb (virtualbox-2.2_2.2.0-45846_Ubuntu_intrepid_amd64.deb) and install it via dpkg and that is not the OSE version.

These are virtualbox.org locations. read your line above where is says download.virtualbox.org. I don't see ubuntu anywhere except at the end and this is the location for the file at virtualbox.org. These are considered 3rd party repositories in Ubuntu. Meaning they are not Ubuntu Repositories.
Correcting someone that has a lot more knowledge than you can bite you in the shorts my friend.

Re: Noob, help installing virtualbox 2.2 on ubuntu please!!

Posted: 26. Apr 2009, 21:33
by graysky
Perryg wrote:These are virtualbox.org locations. read your line above where is says download.virtualbox.org. I don't see ubuntu anywhere except at the end and this is the location for the file at virtualbox.org. These are considered 3rd party repositories in Ubuntu. Meaning they are not Ubuntu Repositories.
Correcting someone that has a lot more knowledge than you can bite you in the shorts my friend.
Sorry to offend, I'm just trying to help the guy. As I read the info at http://www.virtualbox.org/wiki/Downloads it shows a section entitled "VirtualBox 2.2.0 for Linux hosts." When I click it, the first one in the list is, "Ubuntu 8.10 ("Intrepid Ibex") / Ubuntu 9.04 ("Jaunty Jackalope") i386 | AMD64" which is a link to the deb that I posted about. There is some info on that same page for repos, but they are for Debian, not Ubuntu. This is what I was talking about. In my experience on Intrepid, installing VB from that deb worked with no problems. If the OP can post the output from "sudo dpkg -i virtualbox-2.2_2.2.0-45846_Ubuntu_intrepid_amd64.deb" I or someone else might be able to help further.

Re: Noob, help installing virtualbox 2.2 on ubuntu please!!

Posted: 26. Apr 2009, 21:54
by Sasquatch
graysky wrote:
Perryg wrote:These are virtualbox.org locations. read your line above where is says download.virtualbox.org. I don't see ubuntu anywhere except at the end and this is the location for the file at virtualbox.org. These are considered 3rd party repositories in Ubuntu. Meaning they are not Ubuntu Repositories.
Correcting someone that has a lot more knowledge than you can bite you in the shorts my friend.
Sorry to offend, I'm just trying to help the guy. As I read the info at http://www.virtualbox.org/wiki/Downloads it shows a section entitled "VirtualBox 2.2.0 for Linux hosts." When I click it, the first one in the list is, "Ubuntu 8.10 ("Intrepid Ibex") / Ubuntu 9.04 ("Jaunty Jackalope") i386 | AMD64" which is a link to the deb that I posted about. There is some info on that same page for repos, but they are for Debian, not Ubuntu. This is what I was talking about. In my experience on Intrepid, installing VB from that deb worked with no problems. If the OP can post the output from "sudo dpkg -i virtualbox-2.2_2.2.0-45846_Ubuntu_intrepid_amd64.deb" I or someone else might be able to help further.
Do you know where Ubuntu is based on? Right, Debian. Why else would it use .deb? And using dpkg is nice in one way, but it doesn't resolv dependencies as if you would install it through apt, the package manager. That does resolve dependencies and installs them when needed. Just because the URL ends with "debian" for a repo, doesn't mean it's not for Ubuntu. It's much easier to set up one repo with different folders for each build, instead of one for each distro.

Re: Noob, help installing virtualbox 2.2 on ubuntu please!!

Posted: 26. Apr 2009, 23:00
by graysky
@sasquatch - I know Ubuntu is an offshoot of Debian, but I have read about systems getting into trouble (some critically) by using for example, an Ubuntu repo on Debian or vice versa. I agree w/ you that the OP can use a Debian repo, but I think he might be able to manually satisfy any dependency problem based on the output from dpkg. Again, I have no desire to argue, just sharing my opinion.

Re: Noob, help installing virtualbox 2.2 on ubuntu please!!

Posted: 27. Apr 2009, 12:21
by Sasquatch
graysky wrote:@sasquatch - I know Ubuntu is an offshoot of Debian, but I have read about systems getting into trouble (some critically) by using for example, an Ubuntu repo on Debian or vice versa. I agree w/ you that the OP can use a Debian repo, but I think he might be able to manually satisfy any dependency problem based on the output from dpkg. Again, I have no desire to argue, just sharing my opinion.
Yet again, did you read my explanation on how the repo is set up here?

As for the TS (Topic Starter), run sudo apt-get install -f, that should install any missing packages. Using gdebi or gdebi-gtk as root will open a package installer that CAN resolve dependencies properly. Dpkg just installs it without checks prior to installing.

Re: Noob, help installing virtualbox 2.2 on ubuntu please!!

Posted: 27. Apr 2009, 13:05
by digibat
Hi ok thank you for all of your replies but i don't really understand any thing that is going on here haha sorry.

If anyone has some from the begining step by step guide for me that would be great, i don't know what all the language means or codes.... so i really need to be pointed at exact instructions assuming i have never used the Os in my life.

thanks

Re: Noob, help installing virtualbox 2.2 on ubuntu please!!

Posted: 27. Apr 2009, 13:35
by Sasquatch
Ok, for that, run these commands if you didn't have the repo added yet. If you did, you can skip a few. This is done after becoming root, so you only need to enter your password once.

Code: Select all

sudo su
touch /etc/apt/sources.list.d/virtualbox.list
echo "deb http://download.virtualbox.org/virtualbox/debian intrepid non-free" > /etc/apt/sources.list.d/virtualbox.list
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | apt-key add -
apt-get update
apt-get install virtualbox-2.2
exit
That should be all and install VB 2.2. You can copy paste all the commands after becoming root in one go. Any dependencies that are needed are installed automatically.

Re: Noob, help installing virtualbox 2.2 on ubuntu please!!

Posted: 27. Apr 2009, 15:10
by digibat
ahh thank you so much!! it seems to be doing what it's meant to now!

i am confused at the configuration now though.. with in the terminal window it is now saying this to me >>

???????????????????????? Configuring virtualbox-2.2 ?????????????????????????
?
? Unable to find a precompiled module for the current kernel!
?
? Without a suitable kernel module you will not be able to start any VMs.
? It is strongly recommended to compile a kernel module now. The kernel
? headers and the tools to build kernel modules (gcc, make, binutils, ...)
? are required. However if you know that a suitable kernel module already
? exists at another location, you might want to override the default by
? setting KDIR=<full_path_to_vboxdrv_module> in /etc/default/virtualbox.
? The compilation can also be done later by executing
?
? /etc/init.d/vboxdrv setup
?
? as root.

any idea what i should do? or ignore it?

thanks again

Re: Noob, help installing virtualbox 2.2 on ubuntu please!!

Posted: 27. Apr 2009, 15:31
by Sasquatch
It's asking if it should compile the kernel module that is needed for VB to work. Accept it, or run that command after setup. If the compilation failes, you are missing some packages. You need the kernel headers and build-essentail package to build a kernel module.

Do note that you have to add yourself to the vboxusers group. See the VirtualBox FAQ for how to do that.

Re: Noob, help installing virtualbox 2.2 on ubuntu please!!

Posted: 27. Apr 2009, 16:55
by digibat
Thank you!

I have it running now but when i go to Devices>> usb devices is grey and i cannot use it?

That is the main reason i wanted to upgrade my version to the latest 2.2

I'm confused is there something i need to do?

thanks

Re: Noob, help installing virtualbox 2.2 on ubuntu please!!

Posted: 27. Apr 2009, 17:07
by Perryg
If you are using the OSE version you will not have USB support. You need the PUEL version to have USB support.