Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install VirtualBox Extension Pack on Ubuntu #9

Closed
jamesottaway opened this issue Aug 24, 2011 · 28 comments
Closed

Cannot install VirtualBox Extension Pack on Ubuntu #9

jamesottaway opened this issue Aug 24, 2011 · 28 comments

Comments

@jamesottaway
Copy link

I ran the script and it downloaded Oracle_VM_VirtualBox_Extension_Pack-4.1.2-73507.vbox-extpack to ~/.ievms and tried to install it.

The command failed with:

Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to install "/home/james/.ievms/Oracle_VM_VirtualBox_Extension_Pack-4.1.2-73507.vbox-extpack": The installer failed with exit code 1:
VBoxExtPackHelperApp: error: The group is not a system group and it has write access to '/usr'

The same happens if I use the VirtualBox GUI to install the same extpack. I'm running Ubuntu 11.04.

@xdissent
Copy link
Owner

You're gonna need superuser perms it looks like. Off the top of my head you could probably sudo bash -c 'curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | bash' and it should pick up where it left off in the process. It kinda depends on your sudo conf and whether it'll keep your home path in your env. You may run into permissions issues down the line after installing (again, depending on sudo conf) so you might wanna chmod -R myuser:mygroup ~/.ievms to be safe.

Out of curiosity, did you use the Ubuntu packages (virtualbox-ose) or did you download from the VirtualBox site?

@jamesottaway
Copy link
Author

I installed VirtualBox by following the 'Debian-based Linux distributions' section of http://www.virtualbox.org/wiki/Linux_Downloads and running sudo apt-get install virtualbox-4.1. I checked whether virtualbox-4.0 was any different but it gets the same error.

I removed those packages and tried virtualbox-ose but I got a different error:

Installing Oracle VM VirtualBox Extension Pack from /home/ssq6/.ievms/Oracle_VM_VirtualBox_Extension_Pack-4.0.4_OSE-70112.vbox-extpack
VBoxManage: error: RTZipGzipDecompressIoStream failed: VERR_ZIP_BAD_HEADER
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackFile, interface IExtPackFile, callee nsISupports
Context: "Install(fReplace, NULL, ptrProgress.asOutParam())" at line 869 of file VBoxManageMisc.cpp

I'll try running it under root now.

@fitorec
Copy link

fitorec commented Aug 31, 2011

The problem is that the URL will document fails HTML not found. for example in my case if I exec:

  VBoxManage -v
  3.2.8_OSEr64453

Into of the function check_virtualbox:

ext_version=3.2.8_OSE-64453
short_version=3.2.8_OSE
url=http://download.virtualbox.org/virtualbox/3.2.8_OSE/Oracle_VM_VirtualBox_Extension_Pack-3.2.8_OSE-64453.vbox-extpack

Page no fount!*

@jamesottaway check your self:

cat "/home/james/.ievms/Oracle_VM_VirtualBox_Extension_Pack-4.1.2-73507.vbox-extpack"

<HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=ISO-8859-1"><TITLE>Not Found</TITLE></HEAD>
<H1>Not Found</H1> The requested object does not exist on this server. The link you followed is either outdated, inaccurate, or the server has been instructed not to let you have it.

the URL aviable is http://dlc.sun.com.edgesuite.net/virtualbox/3.2.8/ No http://download.virtualbox.org/virtualbox/3.2.8_OSE/.

Maybe a solution would be to change the url that yields perhaps something like:

  #check_virtualbox function
    version=`VBoxManage -v`
    ext_version=`echo $version | cut -d'r' -f2`
    short_version=`echo $version | cut -d'_' -f1`

The problem is that not all directories in http://dlc.sun.com.edgesuite.net/virtualbox/ exists the file:

Oracle_VM_VirtualBox_Extension_Pack-${ext_version}.vbox-extpack

@xdissent
Copy link
Owner

Yep. I'm looking for a solution to support older versions of Virtualbox. Currently 4.0+ works. I'm trying to get some time to set up some different test systems later this week.

@KyleAMathews
Copy link

I had the same issue but installing Virtualbox 4.1 using their deb repos from http://www.virtualbox.org/wiki/Linux_Downloads solved the issue. Downloading the VMs as we speak!

@NKjoep
Copy link

NKjoep commented Sep 5, 2011

I'm getting this with 11.04 and VBox 4.010 from ubuntu repositories (not OSE version):

andrea@fagiano-trainer:~/opt$ curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | IEVMS_VERSIONS="9" bash
Checking for VirtualBox
Checking for Oracle VM VirtualBox Extension Pack
Installing Oracle VM VirtualBox Extension Pack from /home/andrea/.ievms/Oracle_VM_VirtualBox_Extension_Pack-4.0.10_Ubuntu-72436.vbox-extpack
VBoxManage: error: RTZipGzipDecompressIoStream failed: VERR_ZIP_BAD_HEADER
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackFile, interface IExtPackFile, callee nsISupports
Context: "Install(fReplace, NULL, ptrProgress.asOutParam())" at line 872 of file VBoxManageMisc.cpp

ERROR: Failed to install Oracle VM VirtualBox Extension Pack from /home/andrea/.ievms/Oracle_VM_VirtualBox_Extension_Pack-4.0.10_Ubuntu-72436.vbox-extpack, error code (0)

andrea@fagiano-trainer:~/opt$

@fitorec
Copy link

fitorec commented Sep 6, 2011

The problem is trying to predict the url where the package is located (the URL is null so the file is empty VERR_ZIP_BAD_HEADER), perhaps a solution is to create a spider function that generates the tree package and then another function is responsible for selecting the most suitable package available for our distributions, I can think of something like:

function spider {
    for url in $(curl  $1 | grep -Eo "HREF=\"[^\"]*" | cut -d'"' -f2 | sort -u)
    do
        if [[ "$?" -eq 0 ]]
        then
            new_url=`echo $1$url | sed 's/[a-z0-9]\/\//\//i'`
            grep -q $new_url spiderLog
            if [[ "$?" -ne 0 ]]
            then
                echo $new_url >> spiderLog
                if [[  `echo $new_url | grep -Eo ".$"` == "/" ]]
                then
                    spider $new_url
                fi
            fi
        fi
    done;
}

cat '' > spiderLog
spider http://dlc.sun.com.edgesuite.net/virtualbox/

Another is to manually navigate, select the package and follow the script (so I did but I have ubuntu 10.10).

@stephenh
Copy link

stephenh commented Sep 7, 2011

FWIW, I was getting the same 404 error with this version string on Ubuntu natty:

VBoxManage -v
4.0.10_Ubuntur72436

I manually downloaded the right file and that worked.

@Bastes
Copy link

Bastes commented Sep 12, 2011

Also had to install the extension manually (Ubuntu 11.04) ; worked like a charm after that.

@NKjoep
Copy link

NKjoep commented Sep 13, 2011

Worked for me too :) with ubuntu 11.04
downloaded the ExtensionPack from here
http://dlc.sun.com.edgesuite.net/virtualbox/4.0.10/Oracle_VM_VirtualBox_Extension_Pack-4.0.10-72436.vbox-extpack
then Installed it and re-run ievms.

Maybe a solution would be to insert a clearer message telling the user to try to download and install manually
the pack from the sun/oracle directory.

@xdissent
Copy link
Owner

I wonder if one of you kind souls wouldn't mind running VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack" and then trying out the linux-extpack branch of ievms. It takes me a while to get my Ubuntu test environment up and running so you'd really be doing me a favor.

@djbelieny
Copy link

@xdissent: Just tested the linux-extpack branch with $ sudo ./ievms.sh and it's working like a charm so far.
Installed the extpack and is now downloading the ie images.
Thank you very much.
EDIT: BTW I am running Ubuntu 11.04 Natty and VirtualBox 4.0.4_OSE

@xdissent
Copy link
Owner

Music to my ears! Thanks DJ. I want to get my Ubuntu test env working just to be sure we're good and then I'll merge. Thanks a million for jumping in and testing!

@djbelieny
Copy link

You'r very welcome :) Thanks for putting this together.. I'll let you know when it finishes installing.

@rippofunk
Copy link

same issue.
11.10 64bit
VB 4.1.2 (installed uisng built in package manager)

i just went and installed the extensions manually, then re-ran ievms.sh and it worked.

If its a head ache, make it a requirement versus trying to install it automatically?

@clawfire
Copy link

clawfire commented Nov 3, 2011

and for users who run the 4.1.2 virtualbox, there's the link tio download the extension pack http://dlc.sun.com.edgesuite.net/virtualbox/4.1.2/Oracle_VM_VirtualBox_Extension_Pack-4.1.2-73507.vbox-extpack

@fsniper
Copy link

fsniper commented Nov 5, 2011

I've added an override for extension pack url. If url generation or download fails one may override the url with -e parameter. fsniper/ievms@f75925d804

@toastkid
Copy link

toastkid commented Nov 9, 2011

I get this error, from the VBoxManage list extpacks line:

The character device /dev/vboxdrv does not exist.
     Please install the virtualbox-ose-dkms package and the appropriate
     headers, most likely linux-headers-generic.

     You will not be able to start VMs until this problem is fixed.

I've googled around a bit and haven't been able to fix this, any ideas? thanks!

@fsniper
Copy link

fsniper commented Nov 9, 2011

taostkid this error is not related to this issue. It means you are lacking virtualbox drivers. You must reinstall virtualbox.

@toastkid
Copy link

toastkid commented Nov 9, 2011

thanks @fsniper, that's what i've been trying to do. At first i did it via the ubuntu software centre (removed then installed), then was trying to do it from aptitude or deb files. Still no luck :(

@fsniper
Copy link

fsniper commented Nov 9, 2011

@toastkid try
sudo dpkg-reconfigure virtualbox-dkms

This will reconfigure virtualbox-ose drivers via debian Dynamic Kernel Module Support. If it fails you will have more clues about the condition.

@toastkid
Copy link

toastkid commented Nov 9, 2011

@fsniper - got

Package `virtualbox-dkms' is not installed and no info is available.

Maybe that's my problem. I tried sudo apt-get install virtualbox-dkms but got E: Couldn't find package virtualbox-dkms

@danwit
Copy link

danwit commented Jan 21, 2012

@fsniper
Copy link

fsniper commented Jan 24, 2012

@toastkid it's debian's kernel management system. Not related to virtualbox. try apt-get install dkms. You are lacking basic dkms. after installing dkms. You should retry dpkg-reconfigure virtualbox-dkms

@toastkid
Copy link

@fsniper - nope, already got dkms. I can't reconfigure virtualbox-dkms because i don't have it installed in the first place (tried it anyway, got "is not installed" error)

@fsniper
Copy link

fsniper commented Jan 24, 2012

I have "virtualbox-dkms 4.1.2-dfsg-1ubuntu1" installed

@fsniper
Copy link

fsniper commented Jan 24, 2012

@toastkid are you using debian? debian has virtualbox-ose-dkms - transitional package for virtualbox-dkms

@toastkid
Copy link

@fsniper i'm using Ubuntu 10.04.3 LTS, which is debian-based if not technically debian. Just checked, i've also already got virtualbox-ose-dkms installed. I think i'm maybe just missing something dumb, i actually haven't thought about this at all since i last posted in november :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests