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

VirtualBox.ExtensionPack 5.0.4.102546 upgrade failure #55

Closed
pyhedgehog opened this issue Oct 2, 2015 · 3 comments
Closed

VirtualBox.ExtensionPack 5.0.4.102546 upgrade failure #55

pyhedgehog opened this issue Oct 2, 2015 · 3 comments

Comments

@pyhedgehog
Copy link

C:\Users\michaeld>cup -y VirtualBox.ExtensionPack --version=5.0.4.102546
Chocolatey v0.9.9.8
Upgrading the following packages:
VirtualBox.ExtensionPack
By upgrading you accept licenses for the packages.
You have VirtualBox.ExtensionPack v5.0.0.101573 installed. Version 5.0.4.102546 is available based on your source(s).

VirtualBox.ExtensionPack v5.0.4.102546
 Join-Path : Cannot find drive. A drive with the name 'O' does not exist.
 At C:\ProgramData\chocolatey\lib\VirtualBox.ExtensionPack\tools\chocolateyInstall.ps1:20 char:14
 +     Join-Path <<<<  ([System.Environment]::ExpandEnvironmentVariables($_)) $vboxManageFile
     + CategoryInfo          : ObjectNotFound: (O:String) [Join-Path], DriveNotFoundException
     + FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.JoinPathCommand
 Using this proxyserver: 127.0.0.1:8118
 Downloading VirtualBox.ExtensionPack 32 bit
   from 'http://download.virtualbox.org/virtualbox/5.0.4/Oracle_VM_VirtualBox_Extension_Pack-5.0.4-102546.vbox-extpack'
 Using this proxyserver: 127.0.0.1:8118
 An error occurrred with VirtualBox VBoxManage.exe install command: 0%... Progress state: E_FAIL
  VBoxManage.exe: error: Failed to install "C:\Users\michaeld\AppData\Local\Temp\VirtualBox.ExtensionPack\Oracle_VM_VirtualBox_Extension_Pack-5.0.4-102546.vbox-extpack"
 VBoxManage.exe: error: The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to delete the extension pack directory: VERR_ACCESS_DENIED ('C:\Program Files\Oracle\Virt

 ualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack-_-uninst')
 VBoxManage.exe: error: rcExit=1
 VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
 VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleExtPack(struct HandlerArg *)" at line 1158 of file VBoxManageMisc.cpp
 At C:\ProgramData\chocolatey\lib\VirtualBox.ExtensionPack\tools\chocolateyInstall.ps1:47 char:8
 +   throw <<<<  "An error occurrred with VirtualBox VBoxManage.exe install command: $vboxout"
     + CategoryInfo          : OperationStopped: (An error occurr...anageMisc.cpp
 :String) [], RuntimeException
     + FullyQualifiedErrorId : An error occurrred with VirtualBox VBoxManage.exe install command: 0%... Progress state: E_FAIL
  VBoxManage.exe: error: Failed to install "C:\Users\michaeld\AppData\Local\Temp\VirtualBox.ExtensionPack\Oracle_VM_VirtualBox_Extension_Pack-5.0.4-102546.vbox-extpack"
     VBoxManage.exe: error: The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to delete the extension pack directory: VERR_ACCESS_DENIED ('C:\Program Files\Oracle

    \VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack-_-uninst')
 VBoxManage.exe: error: rcExit=1
 VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
 VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleExtPack(struct HandlerArg *)" at line 1158 of file VBoxManageMisc.cpp
The upgrade of virtualbox.extensionpack was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\VirtualBox.ExtensionPack\tools\chocolateyInstall.ps1'.
 See log for details.

Chocolatey upgraded 1/2 package(s). 1 package(s) failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures:
 - virtualbox.extensionpack
@michaelray
Copy link

It looks like one of the paths in your PATH environment variable uses a drive letter that doesn't exist (ie. 'O:\Path\On\NonExistant\Drive'), which is causing Join-Path to fail.

You should be able to successfully install/update the choco package by checking your path for instances of "O:\Something" and then removing those instances, restarting your powershell session, and try installing/updating the package again.

It looks like replacing instances of "Join-Path $path1 $path2" with "[IO.Path]::Combine($path1, $path2)" will combine the paths in the same way without throwing errors on non-existant drives/paths. I'll update my branch of this repo with this change and also update the package on Chocolatey shortly.

@michaelray
Copy link

Ok, the Chocolatey package is updated at Chocolatey.org and this change has been made in my branch and the pull request to this repo includes the change ( see commit abe8536 at #53 ).

@pyhedgehog
Copy link
Author

This is network drive that (as usual) is not available for elevated processes.
Even moving this path to user-level PATH variable will not help.

Good - it's fixed.

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

No branches or pull requests

2 participants