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

Temporary forum to discuss issues and problems during a VirtualBox Beta or Release Candidate phase.

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

Postby Sasquatch » 18. Jul 2011, 22:56

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   Expand viewCollapse view
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'?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: VBoxManage extpack install --replace not working

Postby Frank Mehnert » 19. Jul 2011, 16:03

That's indeed a typo. The --replace option will not be accepted. That will be fixed in the next maintenance release.
Frank Mehnert
Oracle Corporation
 
Posts: 2523
Joined: 7. Jun 2007, 09:11
Location: Dresden, Germany
Primary OS: Debian Lenny
VBox Version: PUEL
Guest OSses: Linux, Windows

Re: VBoxManage extpack install --replace not working

Postby Frank Mehnert » 19. Jul 2011, 16:07

Same problem in 4.0.12 btw.
Frank Mehnert
Oracle Corporation
 
Posts: 2523
Joined: 7. Jun 2007, 09:11
Location: Dresden, Germany
Primary OS: Debian Lenny
VBox Version: PUEL
Guest OSses: Linux, Windows

Re: VBoxManage extpack install --replace not working

Postby Sasquatch » 19. Jul 2011, 20:40

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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

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

Postby Frank Mehnert » 20. Jul 2011, 14:19

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 :)
Frank Mehnert
Oracle Corporation
 
Posts: 2523
Joined: 7. Jun 2007, 09:11
Location: Dresden, Germany
Primary OS: Debian Lenny
VBox Version: PUEL
Guest OSses: Linux, Windows

Re:VBoxManage extpack install --replace not working

Postby Perryg » 20. Jul 2011, 22:10

OK I finally got this to work but not with the syntax listed in the CLI help.

Code: Select all   Expand viewCollapse view
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   Expand viewCollapse view
VBoxManage extpack install <absolute path>/Oracle_VM_VirtualBox_Extension_Pack-4.1.0-73009.vbox-extpack --replace
(works)

CLI help below:
Code: Select all   Expand viewCollapse view
VBoxManage extpack          install [--replace] <tarball> |
                            uninstall [--force] <name> |
                            cleanup
Perryg
Site Moderator
 
Posts: 25964
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX - Other


Return to VirtualBox Beta/Release Candidate Feedback

Who is online

Users browsing this forum: No registered users and 1 guest