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

Postings relating to old VirtualBox pre-releases
Post Reply
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

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

Post 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'?
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.
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: VBoxManage extpack install --replace not working

Post by frank »

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

Re: VBoxManage extpack install --replace not working

Post by frank »

Same problem in 4.0.12 btw.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: VBoxManage extpack install --replace not working

Post 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.
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.
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

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

Post 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 :)
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re:VBoxManage extpack install --replace not working

Post 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
Post Reply