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

Problem with 'cask upgrade' and virtualbox/virtualbox-extension-pack casks #41543

Closed
ev0rtex opened this issue Dec 1, 2017 · 1 comment
Closed

Comments

@ev0rtex
Copy link

ev0rtex commented Dec 1, 2017

Description of issue

I'm reporting this issue as requested by @reitermarkus here.

While trying out the new implementation for brew cask upgrade at Homebrew/brew#3396 I ran into a problem with the virtualbox cask. On my system I have both virtualbox and virtualbox-extension-pack installed. When I run brew cask upgrade it appears that it uninstalls virtualbox-extension-pack and then fails to install the newer version because it assumes it is not an installed cask.

First I checked to see that they were outdated:

$ brew cask outdated
virtualbox (5.2.0-118431) != 5.2.2-119230
virtualbox-extension-pack (5.2.0-118431) != 5.2.2-119230

Next I tried the upgrade:

$ brew cask upgrade
==> Upgrading 2 outdated packages, with result:
virtualbox 5.2.2-119230, virtualbox-extension-pack 5.2.2-119230
==> Satisfying dependencies
==> Downloading http://download.virtualbox.org/virtualbox/5.2.2/VirtualBox-5.2.2-119230-OSX.dmg
######################################################################## 100.0%
==> Verifying checksum for Cask virtualbox
==> Starting upgrade for Cask virtualbox
Password:
==> Running uninstall process for virtualbox; your password may be necessary
==> Running uninstall script VirtualBox_Uninstall.tool
==>
==> Welcome to the VirtualBox uninstaller script.
==>
==> Warning! Found the following active VirtualBox processes:
==> 32265     0 VBoxXPCOMIPCD
==> 32267     0 VBoxSVC
==>
==>
==> We recommend that you quit all VirtualBox processes before
==> uninstalling the product.
==>
==> The following files and directories (bundles) will be removed:
==>     /Users/dwarkentin/Library/LaunchAgents/org.virtualbox.vboxwebsrv.plist
==>     /usr/local/bin/VirtualBox
==>     /usr/local/bin/VBoxManage
==>     /usr/local/bin/VBoxVRDP
==>     /usr/local/bin/VBoxHeadless
==>     /usr/local/bin/vboxwebsrv
==>     /usr/local/bin/VBoxBugReport
==>     /usr/local/bin/VBoxBalloonCtrl
==>     /usr/local/bin/VBoxAutostart
==>     /usr/local/bin/VBoxDTrace
==>     /usr/local/bin/vbox-img
==>     /Library/LaunchDaemons/org.virtualbox.startup.plist
==>     /Library/Python/2.6/site-packages/vboxapi/VirtualBox_constants.py
==>     /Library/Python/2.6/site-packages/vboxapi/VirtualBox_constants.pyc
==>     /Library/Python/2.6/site-packages/vboxapi/__init__.py
==>     /Library/Python/2.6/site-packages/vboxapi/__init__.pyc
==>     /Library/Python/2.6/site-packages/vboxapi-1.0-py2.6.egg-info
==>     /Library/Python/2.7/site-packages/vboxapi/VirtualBox_constants.py
==>     /Library/Python/2.7/site-packages/vboxapi/VirtualBox_constants.pyc
==>     /Library/Python/2.7/site-packages/vboxapi/__init__.py
==>     /Library/Python/2.7/site-packages/vboxapi/__init__.pyc
==>     /Library/Python/2.7/site-packages/vboxapi-1.0-py2.7.egg-info
==>     /Library/Application Support/VirtualBox/LaunchDaemons/
==>     /Library/Application Support/VirtualBox/VBoxDrv.kext/
==>     /Library/Application Support/VirtualBox/VBoxUSB.kext/
==>     /Library/Application Support/VirtualBox/VBoxNetFlt.kext/
==>     /Library/Application Support/VirtualBox/VBoxNetAdp.kext/
==>     /Applications/VirtualBox.app/
==>     /Library/Python/2.6/site-packages/vboxapi/
==>     /Library/Python/2.7/site-packages/vboxapi/
==>
==> And the following KEXTs will be unloaded:
==>     org.virtualbox.kext.VBoxUSB
==>     org.virtualbox.kext.VBoxNetFlt
==>     org.virtualbox.kext.VBoxNetAdp
==>     org.virtualbox.kext.VBoxDrv
==>
==> And the traces of following packages will be removed:
==>     org.virtualbox.pkg.vboxkexts
==>     org.virtualbox.pkg.virtualbox
==>     org.virtualbox.pkg.virtualboxcli
==>
==> The uninstallation processes requires administrative privileges
==> because some of the installed files cannot be removed by a normal
==> user. You may be prompted for your password now...
==>
==> unloading org.virtualbox.kext.VBoxUSB
==> unloading org.virtualbox.kext.VBoxNetFlt
==> unloading org.virtualbox.kext.VBoxNetAdp
==> unloading org.virtualbox.kext.VBoxDrv
==> Successfully unloaded VirtualBox kernel extensions.
==> Forgot package 'org.virtualbox.pkg.vboxkexts' on '/'.
==> Forgot package 'org.virtualbox.pkg.virtualbox' on '/'.
==> Forgot package 'org.virtualbox.pkg.virtualboxcli' on '/'.
==> Done.
==> Uninstalling packages:
==> Running installer for virtualbox; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
==> installer: Package name is Oracle VM VirtualBox
==> installer: Installing at base path /
==> installer:PHASE:Preparing for installation…
==> installer:PHASE:Preparing the disk…
==> installer:PHASE:Preparing Oracle VM VirtualBox…
==> installer:PHASE:Waiting for other installations to complete…
==> installer:PHASE:Configuring the installation…
==> installer:STATUS:
==> installer:%14.592888
==> installer:PHASE:Writing files…
==> installer:%43.979993
==> installer:PHASE:Writing files…
==> installer:%86.638484
==> installer:PHASE:Running package scripts…
==> installer:%87.686499
==> installer:PHASE:Running package scripts…
==> installer:%88.727577
==> installer:PHASE:Running package scripts…
==> installer:%89.778229
==> installer:PHASE:Running package scripts…
==> installer:%90.830852
==> installer:PHASE:Running package scripts…
==> installer:%95.682848
==> installer:PHASE:Cleaning up…
==> installer:PHASE:Validating packages…
==> installer:%97.750000
==> installer:STATUS:Running installer actions…
==> installer:STATUS:
==> installer:PHASE:Finishing the Installation…
==> installer:STATUS:
==> installer:%100.000000
==> installer:PHASE:The software was successfully installed.
==> installer: The install was successful.
==> Purging files for version 5.2.0-118431 of Cask virtualbox
🍺  virtualbox was successfully upgraded!
Error: Cask 'virtualbox-extension-pack' is not installed.

Output of your command with --verbose --debug

I'm not sure of the easiest way to revert to the previous version to run this again with the --verbose and --debug flags but I suspect that won't be needed here. I'd be happy to figure it out if that is indeed helpful though.

Output of brew cask doctor

==> Homebrew-Cask Version
Homebrew-Cask 1.3.8
caskroom/homebrew-cask (git revision 4248ab; last commit 2017-12-01)
==> Homebrew-Cask Install Location
<NONE>
==> Homebrew-Cask Staging Location
/usr/local/Caskroom
==> Homebrew-Cask Cached Downloads
~/Library/Caches/Homebrew/Cask (5 files, 291.8MB)
==> Homebrew-Cask Taps:
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask (3845 casks)
==> Contents of $LOAD_PATH
/usr/local/Homebrew/Library/Homebrew/cask/lib
/usr/local/Homebrew/Library/Homebrew
/Library/Ruby/Gems/2.3.0/gems/did_you_mean-1.0.0/lib
/Library/Ruby/Site/2.3.0
/Library/Ruby/Site/2.3.0/x86_64-darwin17
/Library/Ruby/Site/2.3.0/universal-darwin17
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby/2.3.0
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby/2.3.0/x86_64-darwin17
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby/2.3.0/universal-darwin17
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/x86_64-darwin17
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/universal-darwin17
==> Environment Variables
LANG="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
PATH="/usr/local/bin:/usr/local/opt/python/libexec/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Homebrew/Library/Homebrew/shims/scm"
SHELL="/usr/local/bin/zsh"
@commitay
Copy link
Contributor

commitay commented Dec 1, 2017

This has been fixed with #40615. It won't occur with future virtualbox / virtualbox-extension-pack upgrades.

Thanks for reporting this nonetheless.

@commitay commitay closed this as completed Dec 1, 2017
@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants