Page 1 of 1

[re-opened] VBoxManage extpack install --replace not working

Posted: 18. Jul 2011, 22:56
by Sasquatch
With 4.1 beta, we now have the option to replace an extpack instead of having to first uninstall it and then install the new version. But, it's not working. I get an Invalid option -r error. This is the full output of my attempt to replace my existing extpack:

Code: Select all

sudo VBoxManage extpack install --replace /tmp/Oracle_VM_VirtualBox_Extension_Pack-4.1.0_BETA3-72886.vbox-extpack 
Oracle VM VirtualBox Command Line Management Interface Version 4.1.0_BETA3
(C) 2005-2011 Oracle Corporation
All rights reserved.

Usage:

VBoxManage extpack          install [--replace] <tarball> |
                            uninstall [--force] <name> |
                            cleanup

VBoxManage: error: Invalid option -r
That doesn't sound right. What option is it talking about? Is it ignoring the first dash and 'eplace'?

Re: VBoxManage extpack install --replace not working

Posted: 19. Jul 2011, 16:03
by frank
That's indeed a typo. The --replace option will not be accepted. That will be fixed in the next maintenance release.

Re: VBoxManage extpack install --replace not working

Posted: 19. Jul 2011, 16:07
by frank
Same problem in 4.0.12 btw.

Re: VBoxManage extpack install --replace not working

Posted: 19. Jul 2011, 20:40
by Sasquatch
Frank Mehnert wrote:Same problem in 4.0.12 btw.
That's impossible, because 4.0.12 didn't have VBoxManage extpack install --replace option. The --replace was added in 4.1. The documentation of 4.0 also doesn't note the --replace option, but 4.1 does.

So we have to wait for 4.1.2 before this works? That's a shame. I should have found this problem sooner so it would have been fixed before final.

Re: [FIXED] VBoxManage extpack install --replace not working

Posted: 20. Jul 2011, 14:19
by frank
Actually 4.0.12 has this option implemented but it was never documented. And, as I said, this option did not work because there was a bug in command line scanning, see here. And no, even 'r' would not work, see some lines above :)

Re:VBoxManage extpack install --replace not working

Posted: 20. Jul 2011, 22:10
by Perryg
OK I finally got this to work but not with the syntax listed in the CLI help.

Code: Select all

VBoxManage extpack install --replace <absolute path>/Oracle_VM_VirtualBox_Extension_Pack-4.1.0-73009.vbox-extpack
(returns error)
  • VBoxManage: error: '<absolute path>/--replace' file not found
    VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackFile, interface IExtPackFile, callee nsISupports
    Context: "Install(fReplace, NULL, ptrProgress.asOutParam())" at line 1065 of file VBoxManageMisc.cpp

Code: Select all

VBoxManage extpack install <absolute path>/Oracle_VM_VirtualBox_Extension_Pack-4.1.0-73009.vbox-extpack --replace
(works)

CLI help below:

Code: Select all

VBoxManage extpack          install [--replace] <tarball> |
                            uninstall [--force] <name> |
                            cleanup