Homebrew / homebrew-cask

šŸ» A CLI workflow for the administration of macOS applications distributed as binaries
https://brew.sh
BSD 2-Clause "Simplified" License
20.95k stars 10.73k forks source link

Can't uninstall `virtualbox-extension-pack` #134061

Closed SpaceIm closed 1 year ago

SpaceIm commented 2 years ago

Verification

Description of issue

Can't uninstall virtualbox-extension-pack while running brew upgrade

Command that failed

brew upgrade

Output of command with --verbose --debug

/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtool.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gmp.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/wget.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pinentry.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libidn2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ccache.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libksba.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/nghttp2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libpng.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/nettle.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gdbm.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mpdecimal.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libuv.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/freetype.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libunistring.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libyaml.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/jemalloc.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/brotli.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/bdw-gc.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/icu4c.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/readline.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/arm-linux-gnueabihf-binutils.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/hiredis.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/lz4.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libassuan.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sqlite.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libgpg-error.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/c-ares.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xz.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libnghttp2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ninja.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libgcrypt.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl@3.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ca-certificates.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gettext.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python-tk@3.10.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/zstd.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/tcl-tk.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/conan.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/m4.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtasn1.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pyyaml.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pcre2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libevent.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl@1.1.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python@3.10.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/six.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/node.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/unbound.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libusb.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python@3.8.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/guile.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/p11-kit.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libev.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ruby.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/git.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python@3.7.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libffi.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python@3.9.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnutls.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/npth.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/adns.rb
==> Casks with 'auto_updates true' or 'version :latest' will not be upgraded; pass `--greedy` to upgrade them.
==> Upgrading 1 outdated package:
virtualbox-extension-pack 7.0.0 -> 7.0.2
==> Started upgrade process for Cask virtualbox-extension-pack
==> Upgrading virtualbox-extension-pack
==> Printing caveats
==> Caveats
Installing virtualbox-extension-pack means you have AGREED to the license at:
  https://www.virtualbox.org/wiki/VirtualBox_PUEL

==> Cask::Installer#fetch
==> Downloading https://download.virtualbox.org/virtualbox/7.0.2/Oracle_VM_VirtualBox_Extension_Pack-7.0.2.vbox-extpack
/usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/3.6.6-34-gfaa9950\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 12.6\)\ curl/7.79.1 --header Accept-Language:\ en --retry 3 --location --silent --head --request GET https://download.virtualbox.org/virtualbox/7.0.2/Oracle_VM_VirtualBox_Extension_Pack-7.0.2.vbox-extpack
Already downloaded: /Users/spaceim/Library/Caches/Homebrew/downloads/95386b1787e38029ef27a640f2f6f0239d0f4b6a2bb3db54b90294f5834a2844--Oracle_VM_VirtualBox_Extension_Pack-7.0.2.vbox-extpack
==> Checking quarantine support
/usr/bin/xattr -h
/usr/bin/swift -target x86_64-apple-macosx12 /usr/local/Homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Quarantine is available.
==> Verifying Gatekeeper status of /Users/spaceim/Library/Caches/Homebrew/downloads/95386b1787e38029ef27a640f2f6f0239d0f4b6a2bb3db54b90294f5834a2844--Oracle_VM_VirtualBox_Extension_Pack-7.0.2.vbox-extpack
/usr/bin/xattr -p com.apple.quarantine /Users/spaceim/Library/Caches/Homebrew/downloads/95386b1787e38029ef27a640f2f6f0239d0f4b6a2bb3db54b90294f5834a2844--Oracle_VM_VirtualBox_Extension_Pack-7.0.2.vbox-extpack
==> /Users/spaceim/Library/Caches/Homebrew/downloads/95386b1787e38029ef27a640f2f6f0239d0f4b6a2bb3db54b90294f5834a2844--Oracle_VM_VirtualBox_Extension_Pack-7.0.2.vbox-extpack is quarantined
==> Verifying checksum for cask 'virtualbox-extension-pack'
All formula dependencies satisfied.
==> Uninstalling artifacts
==> 3 artifacts defined
#<Cask::ArtifactSet: {#<Cask::Artifact::StageOnly:0x00007fd1162aeb00 @cask=#<Cask::Cask:0x00007fd11629d850 @token="virtualbox-extension-pack", @sourcefile_path=#<Pathname:/usr/local/Caskroom/virtualbox-extension-pack/.metadata/7.0.0/20221012193147.936/Casks/virtualbox-extension-pack.rb>, @source="cask \"virtualbox-extension-pack\" do\n  version \"7.0.0\"\n  sha256 \"e32555a2d2482c1e1126747f967742364ddfdfd49fce3107a9627780f373ffd7\"\n\n  url \"https://download.virtualbox.org/virtualbox/\#{version}/Oracle_VM_VirtualBox_Extension_Pack-\#{version}.vbox-extpack\"\n  name \"Oracle VirtualBox Extension Pack\"\n  desc \"Extend the functionality of VirtualBox\"\n  homepage \"https://www.virtualbox.org/\"\n\n  livecheck do\n    url \"https://download.virtualbox.org/virtualbox/LATEST.TXT\"\n    regex(/(\\d+(?:\\.\\d+)+)/i)\n  end\n\n  conflicts_with cask: \"virtualbox-extension-pack-beta\"\n  depends_on cask: \"virtualbox\"\n  container type: :naked\n\n  stage_only true\n\n  postflight do\n    system_command \"/usr/local/bin/VBoxManage\",\n                   args:  [\n                     \"extpack\", \"install\",\n                     \"--replace\", \"\#{staged_path}/Oracle_VM_VirtualBox_Extension_Pack-\#{version}.vbox-extpack\"\n                   ],\n                   input: \"y\",\n                   sudo:  true\n  end\n\n  uninstall_postflight do\n    next unless File.exist?(\"/usr/local/bin/VBoxManage\")\n\n    system_command \"/usr/local/bin/VBoxManage\",\n                   args: [\n                     \"extpack\", \"uninstall\",\n                     \"Oracle VM VirtualBox Extension Pack\"\n                   ],\n                   sudo: true\n  end\n\n  caveats do\n    license \"https://www.virtualbox.org/wiki/VirtualBox_PUEL\"\n  end\nend\n", @tap=nil, @allow_reassignment=false, @block=#<Proc:0x00007fd11629d7b0@/usr/local/Caskroom/virtualbox-extension-pack/.metadata/7.0.0/20221012193147.936/Casks/virtualbox-extension-pack.rb:1>, @default_config=#<Cask::Config:0x00007fd11629d788 @explicit={}>, @caskroom_path=#<Pathname:/usr/local/Caskroom/virtualbox-extension-pack>, @metadata_main_container_path=#<Pathname:/usr/local/Caskroom/virtualbox-extension-pack/.metadata>, @config=#<Cask::Config:0x00007fd1162a7918 @explicit={}, @default={:languages=>["fr-FR"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/spaceim/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/spaceim/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/spaceim/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/spaceim/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/spaceim/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/spaceim/Library/Fonts>, :servicedir=>#<Pathname:/Users/spaceim/Library/Services>, :input_methoddir=>#<Pathname:/Users/spaceim/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/spaceim/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/spaceim/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/spaceim/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/spaceim/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/spaceim/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x00007fd1162a4fd8 @cask=#<Cask::Cask:0x00007fd11629d850 ...>, @token="virtualbox-extension-pack", @version="7.0.0", @sha256=#<Checksum:0x00007fd1162a4bf0 @hexdigest="e32555a2d2482c1e1126747f967742364ddfdfd49fce3107a9627780f373ffd7">, @url=#<URL::DSL:0x00007fd1162a4560 @uri=#<URI::HTTPS https://download.virtualbox.org/virtualbox/7.0.0/Oracle_VM_VirtualBox_Extension_Pack-7.0.0.vbox-extpack>, @verified=nil, @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:user_agent=>:default}>, @name=["Oracle VirtualBox Extension Pack"], @desc="Extend the functionality of VirtualBox", @homepage="https://www.virtualbox.org/", @livecheck=#<Livecheck:0x00007fd1162afdc0 @package_or_resource=#<Cask::DSL:0x00007fd1162a4fd8 ...>, @referenced_cask_name=nil, @referenced_formula_name=nil, @regex=/(\d+(?:\.\d+)+)/i, @skip=false, @skip_msg=nil, @strategy=nil, @url="https://download.virtualbox.org/virtualbox/LATEST.TXT">, @livecheckable=true, @artifacts=#<Cask::ArtifactSet: {...}>, @language_eval=nil, @conflicts_with={:cask=>#<Set: {"virtualbox-extension-pack-beta"}>}, @depends_on={:cask=>["virtualbox"]}, @caveats=#<Cask::DSL::Caveats:0x00007fd1162ae768 @cask=#<Cask::Cask:0x00007fd11629d850 ...>, @command=SystemCommand, @built_in_caveats={[:license, "https://www.virtualbox.org/wiki/VirtualBox_PUEL"]=>"Installing virtualbox-extension-pack means you have AGREED to the license at:\n  \e[4mhttps://www.virtualbox.org/wiki/VirtualBox_PUEL\e[24m\n"}, @custom_caveats=[], @discontinued=false>, @container=#<Cask::DSL::Container:0x00007fd1162af3c0 @pairs={:type=>:naked}, @type=:naked>>>, @dsl_args=[true]>, #<Cask::Artifact::PostflightBlock:0x00007fd1162ae998 @cask=#<Cask::Cask:0x00007fd11629d850 @token="virtualbox-extension-pack", @sourcefile_path=#<Pathname:/usr/local/Caskroom/virtualbox-extension-pack/.metadata/7.0.0/20221012193147.936/Casks/virtualbox-extension-pack.rb>, @source="cask \"virtualbox-extension-pack\" do\n  version \"7.0.0\"\n  sha256 \"e32555a2d2482c1e1126747f967742364ddfdfd49fce3107a9627780f373ffd7\"\n\n  url \"https://download.virtualbox.org/virtualbox/\#{version}/Oracle_VM_VirtualBox_Extension_Pack-\#{version}.vbox-extpack\"\n  name \"Oracle VirtualBox Extension Pack\"\n  desc \"Extend the functionality of VirtualBox\"\n  homepage \"https://www.virtualbox.org/\"\n\n  livecheck do\n    url \"https://download.virtualbox.org/virtualbox/LATEST.TXT\"\n    regex(/(\\d+(?:\\.\\d+)+)/i)\n  end\n\n  conflicts_with cask: \"virtualbox-extension-pack-beta\"\n  depends_on cask: \"virtualbox\"\n  container type: :naked\n\n  stage_only true\n\n  postflight do\n    system_command \"/usr/local/bin/VBoxManage\",\n                   args:  [\n                     \"extpack\", \"install\",\n                     \"--replace\", \"\#{staged_path}/Oracle_VM_VirtualBox_Extension_Pack-\#{version}.vbox-extpack\"\n                   ],\n                   input: \"y\",\n                   sudo:  true\n  end\n\n  uninstall_postflight do\n    next unless File.exist?(\"/usr/local/bin/VBoxManage\")\n\n    system_command \"/usr/local/bin/VBoxManage\",\n                   args: [\n                     \"extpack\", \"uninstall\",\n                     \"Oracle VM VirtualBox Extension Pack\"\n                   ],\n                   sudo: true\n  end\n\n  caveats do\n    license \"https://www.virtualbox.org/wiki/VirtualBox_PUEL\"\n  end\nend\n", @tap=nil, @allow_reassignment=false, @block=#<Proc:0x00007fd11629d7b0@/usr/local/Caskroom/virtualbox-extension-pack/.metadata/7.0.0/20221012193147.936/Casks/virtualbox-extension-pack.rb:1>, @default_config=#<Cask::Config:0x00007fd11629d788 @explicit={}>, @caskroom_path=#<Pathname:/usr/local/Caskroom/virtualbox-extension-pack>, @metadata_main_container_path=#<Pathname:/usr/local/Caskroom/virtualbox-extension-pack/.metadata>, @config=#<Cask::Config:0x00007fd1162a7918 @explicit={}, @default={:languages=>["fr-FR"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/spaceim/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/spaceim/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/spaceim/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/spaceim/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/spaceim/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/spaceim/Library/Fonts>, :servicedir=>#<Pathname:/Users/spaceim/Library/Services>, :input_methoddir=>#<Pathname:/Users/spaceim/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/spaceim/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/spaceim/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/spaceim/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/spaceim/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/spaceim/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x00007fd1162a4fd8 @cask=#<Cask::Cask:0x00007fd11629d850 ...>, @token="virtualbox-extension-pack", @version="7.0.0", @sha256=#<Checksum:0x00007fd1162a4bf0 @hexdigest="e32555a2d2482c1e1126747f967742364ddfdfd49fce3107a9627780f373ffd7">, @url=#<URL::DSL:0x00007fd1162a4560 @uri=#<URI::HTTPS https://download.virtualbox.org/virtualbox/7.0.0/Oracle_VM_VirtualBox_Extension_Pack-7.0.0.vbox-extpack>, @verified=nil, @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:user_agent=>:default}>, @name=["Oracle VirtualBox Extension Pack"], @desc="Extend the functionality of VirtualBox", @homepage="https://www.virtualbox.org/", @livecheck=#<Livecheck:0x00007fd1162afdc0 @package_or_resource=#<Cask::DSL:0x00007fd1162a4fd8 ...>, @referenced_cask_name=nil, @referenced_formula_name=nil, @regex=/(\d+(?:\.\d+)+)/i, @skip=false, @skip_msg=nil, @strategy=nil, @url="https://download.virtualbox.org/virtualbox/LATEST.TXT">, @livecheckable=true, @artifacts=#<Cask::ArtifactSet: {...}>, @language_eval=nil, @conflicts_with={:cask=>#<Set: {"virtualbox-extension-pack-beta"}>}, @depends_on={:cask=>["virtualbox"]}, @caveats=#<Cask::DSL::Caveats:0x00007fd1162ae768 @cask=#<Cask::Cask:0x00007fd11629d850 ...>, @command=SystemCommand, @built_in_caveats={[:license, "https://www.virtualbox.org/wiki/VirtualBox_PUEL"]=>"Installing virtualbox-extension-pack means you have AGREED to the license at:\n  \e[4mhttps://www.virtualbox.org/wiki/VirtualBox_PUEL\e[24m\n"}, @custom_caveats=[], @discontinued=false>, @container=#<Cask::DSL::Container:0x00007fd1162af3c0 @pairs={:type=>:naked}, @type=:naked>>>, @dsl_args=[], @directives={:postflight=>#<Proc:0x00007fd1162aea38@/usr/local/Caskroom/virtualbox-extension-pack/.metadata/7.0.0/20221012193147.936/Casks/virtualbox-extension-pack.rb:21>}>, #<Cask::Artifact::PostflightBlock:0x00007fd1162ae858 @cask=#<Cask::Cask:0x00007fd11629d850 @token="virtualbox-extension-pack", @sourcefile_path=#<Pathname:/usr/local/Caskroom/virtualbox-extension-pack/.metadata/7.0.0/20221012193147.936/Casks/virtualbox-extension-pack.rb>, @source="cask \"virtualbox-extension-pack\" do\n  version \"7.0.0\"\n  sha256 \"e32555a2d2482c1e1126747f967742364ddfdfd49fce3107a9627780f373ffd7\"\n\n  url \"https://download.virtualbox.org/virtualbox/\#{version}/Oracle_VM_VirtualBox_Extension_Pack-\#{version}.vbox-extpack\"\n  name \"Oracle VirtualBox Extension Pack\"\n  desc \"Extend the functionality of VirtualBox\"\n  homepage \"https://www.virtualbox.org/\"\n\n  livecheck do\n    url \"https://download.virtualbox.org/virtualbox/LATEST.TXT\"\n    regex(/(\\d+(?:\\.\\d+)+)/i)\n  end\n\n  conflicts_with cask: \"virtualbox-extension-pack-beta\"\n  depends_on cask: \"virtualbox\"\n  container type: :naked\n\n  stage_only true\n\n  postflight do\n    system_command \"/usr/local/bin/VBoxManage\",\n                   args:  [\n                     \"extpack\", \"install\",\n                     \"--replace\", \"\#{staged_path}/Oracle_VM_VirtualBox_Extension_Pack-\#{version}.vbox-extpack\"\n                   ],\n                   input: \"y\",\n                   sudo:  true\n  end\n\n  uninstall_postflight do\n    next unless File.exist?(\"/usr/local/bin/VBoxManage\")\n\n    system_command \"/usr/local/bin/VBoxManage\",\n                   args: [\n                     \"extpack\", \"uninstall\",\n                     \"Oracle VM VirtualBox Extension Pack\"\n                   ],\n                   sudo: true\n  end\n\n  caveats do\n    license \"https://www.virtualbox.org/wiki/VirtualBox_PUEL\"\n  end\nend\n", @tap=nil, @allow_reassignment=false, @block=#<Proc:0x00007fd11629d7b0@/usr/local/Caskroom/virtualbox-extension-pack/.metadata/7.0.0/20221012193147.936/Casks/virtualbox-extension-pack.rb:1>, @default_config=#<Cask::Config:0x00007fd11629d788 @explicit={}>, @caskroom_path=#<Pathname:/usr/local/Caskroom/virtualbox-extension-pack>, @metadata_main_container_path=#<Pathname:/usr/local/Caskroom/virtualbox-extension-pack/.metadata>, @config=#<Cask::Config:0x00007fd1162a7918 @explicit={}, @default={:languages=>["fr-FR"], :appdir=>#<Pathname:/Applications>, :colorpickerdir=>#<Pathname:/Users/spaceim/Library/ColorPickers>, :prefpanedir=>#<Pathname:/Users/spaceim/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/spaceim/Library/QuickLook>, :mdimporterdir=>#<Pathname:/Users/spaceim/Library/Spotlight>, :dictionarydir=>#<Pathname:/Users/spaceim/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/spaceim/Library/Fonts>, :servicedir=>#<Pathname:/Users/spaceim/Library/Services>, :input_methoddir=>#<Pathname:/Users/spaceim/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/spaceim/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/spaceim/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/spaceim/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/spaceim/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/spaceim/Library/Screen Savers>}, @env={}>, @dsl=#<Cask::DSL:0x00007fd1162a4fd8 @cask=#<Cask::Cask:0x00007fd11629d850 ...>, @token="virtualbox-extension-pack", @version="7.0.0", @sha256=#<Checksum:0x00007fd1162a4bf0 @hexdigest="e32555a2d2482c1e1126747f967742364ddfdfd49fce3107a9627780f373ffd7">, @url=#<URL::DSL:0x00007fd1162a4560 @uri=#<URI::HTTPS https://download.virtualbox.org/virtualbox/7.0.0/Oracle_VM_VirtualBox_Extension_Pack-7.0.0.vbox-extpack>, @verified=nil, @using=nil, @tag=nil, @branch=nil, @revisions=nil, @revision=nil, @trust_cert=nil, @cookies=nil, @referer=nil, @header=nil, @user_agent=:default, @data=nil, @specs={:user_agent=>:default}>, @name=["Oracle VirtualBox Extension Pack"], @desc="Extend the functionality of VirtualBox", @homepage="https://www.virtualbox.org/", @livecheck=#<Livecheck:0x00007fd1162afdc0 @package_or_resource=#<Cask::DSL:0x00007fd1162a4fd8 ...>, @referenced_cask_name=nil, @referenced_formula_name=nil, @regex=/(\d+(?:\.\d+)+)/i, @skip=false, @skip_msg=nil, @strategy=nil, @url="https://download.virtualbox.org/virtualbox/LATEST.TXT">, @livecheckable=true, @artifacts=#<Cask::ArtifactSet: {...}>, @language_eval=nil, @conflicts_with={:cask=>#<Set: {"virtualbox-extension-pack-beta"}>}, @depends_on={:cask=>["virtualbox"]}, @caveats=#<Cask::DSL::Caveats:0x00007fd1162ae768 @cask=#<Cask::Cask:0x00007fd11629d850 ...>, @command=SystemCommand, @built_in_caveats={[:license, "https://www.virtualbox.org/wiki/VirtualBox_PUEL"]=>"Installing virtualbox-extension-pack means you have AGREED to the license at:\n  \e[4mhttps://www.virtualbox.org/wiki/VirtualBox_PUEL\e[24m\n"}, @custom_caveats=[], @discontinued=false>, @container=#<Cask::DSL::Container:0x00007fd1162af3c0 @pairs={:type=>:naked}, @type=:naked>>>, @dsl_args=[], @directives={:uninstall_postflight=>#<Proc:0x00007fd1162ae8a8@/usr/local/Caskroom/virtualbox-extension-pack/.metadata/7.0.0/20221012193147.936/Casks/virtualbox-extension-pack.rb:31>}>}>
==> Uninstalling artifact of class Cask::Artifact::PostflightBlock
==> Uninstalling artifact of class Cask::Artifact::PostflightBlock
/usr/bin/sudo -E -- /usr/local/bin/VBoxManage extpack uninstall Oracle\ VM\ VirtualBox\ Extension\ Pack
0%...NS_ERROR_FAILURE
VBoxManage: error: Failed to uninstall "Oracle VM VirtualBox Extension Pack"
VBoxManage: error: Extension pack 'Oracle VM VirtualBox Extension Pack' is not installed.

VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg *)" at line 1945 of file VBoxManageMisc.cpp
==> Purging files for version 7.0.2 of Cask virtualbox-extension-pack
Error: virtualbox-extension-pack: Failure while executing; `/usr/bin/sudo -E -- /usr/local/bin/VBoxManage extpack uninstall Oracle\ VM\ VirtualBox\ Extension\ Pack` exited with 1. Here's the output:
0%...NS_ERROR_FAILURE
VBoxManage: error: Failed to uninstall "Oracle VM VirtualBox Extension Pack"
VBoxManage: error: Extension pack 'Oracle VM VirtualBox Extension Pack' is not installed.

VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg *)" at line 1945 of file VBoxManageMisc.cpp

/usr/local/Homebrew/Library/Homebrew/cask/cmd/upgrade.rb:169:in `upgrade_casks'
/usr/local/Homebrew/Library/Homebrew/cmd/upgrade.rb:226:in `upgrade_outdated_casks'
/usr/local/Homebrew/Library/Homebrew/cmd/upgrade.rb:117:in `upgrade'
/usr/local/Homebrew/Library/Homebrew/brew.rb:95:in `<main>'

Output of brew doctor --verbose

==> Cask Environment Variables:
BUNDLE_PATH
CHRUBY_VERSION
GEM_HOME
GEM_PATH
HOMEBREW_CASK_OPTS
LC_ALL
PATH
RBENV_VERSION
RUBYLIB
RUBYOPT
RUBYPATH
SHELL
==> $LOAD_PATHS
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/warning-1.3.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/tapioca-0.7.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/yard-sorbet-0.6.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/yard-0.9.28/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/spoom-1.1.11/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/thor-1.2.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-static-and-runtime-0.5.10461/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-0.5.10461/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-static-0.5.10461-universal-darwin-21/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov-cobertura-2.1.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov-0.21.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov_json_formatter-0.1.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/simplecov-html-0.12.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/ruby-macho-3.0.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-sorbet-0.6.11/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rspec-2.13.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rails-2.16.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.15.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-1.35.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/unicode-display_width-2.3.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-ast-1.21.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rspec_junit_formatter-0.6.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rspec-wait-0.0.9/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rspec-sorbet-1.9.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rspec-retry-0.6.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rspec-its-1.3.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rspec-github-2.3.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rspec-3.11.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.11.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.11.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.11.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.11.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/ronn-0.7.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rexml-3.2.5/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rdiscount-2.2.0.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/extensions/universal-darwin-21/2.6.0/rdiscount-2.2.0.2
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rbi-0.0.14/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/unparser-0.6.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rack-3.0.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/pry-0.14.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/plist-3.6.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/patchelf-1.3.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/parlour-8.0.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-runtime-0.5.10461/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rainbow-3.1.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/parser-3.1.2.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/parallel_tests-3.13.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/parallel-1.22.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/mustache-1.1.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/mechanize-2.8.5/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrobots-0.1.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/webrick-1.7.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubyntlm-0.6.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.13.8-x86_64-darwin/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/racc-1.6.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/extensions/universal-darwin-21/2.6.0/racc-1.6.0
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/net-http-persistent-4.0.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/net-http-digest_auth-1.4.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/mime-types-3.4.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2022.0105/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/json_schemer-0.2.21/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/uri_template-0.7.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/extensions/universal-darwin-21/2.6.0/json-2.6.2
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/http-cookie-1.0.5/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/hpricot-0.8.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/extensions/universal-darwin-21/2.6.0/hpricot-0.8.6
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/hana-1.3.7/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/elftools-1.2.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/ecma-re-validator-0.4.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/regexp_parser-2.6.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/unf-0.1.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.8.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/extensions/universal-darwin-21/2.6.0/unf_ext-0.0.8.2
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/docile-1.4.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.5.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/did_you_mean-1.6.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/connection_pool-2.3.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/commander-4.6.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/highline-2.0.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/extensions/universal-darwin-21/2.6.0/byebug-11.1.3
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.13.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/extensions/universal-darwin-21/2.6.0/bootsnap-1.13.0
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/msgpack-1.6.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/extensions/universal-darwin-21/2.6.0/msgpack-1.6.0
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/bindata-2.4.12/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/ast-2.4.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/public_suffix-5.0.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.7/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.6.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/tzinfo-2.0.5/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/minitest-5.16.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/i18n-1.12.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/concurrent-ruby-1.1.10/lib/concurrent-ruby
/Library/Ruby/Gems/2.6.0/gems/did_you_mean-1.3.0/lib
/Library/Ruby/Site/2.6.0
/Library/Ruby/Site/2.6.0/x86_64-darwin21
/Library/Ruby/Site/2.6.0/universal-darwin21
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0/x86_64-darwin21
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0/universal-darwin21
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/x86_64-darwin21
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin21
/usr/local/Homebrew/Library/Homebrew
==> Homebrew Version
3.6.6-34-gfaa9950
==> macOS
12.6
==> SIP
Enabled
==> Homebrew Cask Staging Location
/usr/local/Caskroom
==> Homebrew Cask Taps:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask (4100 casks)
Your system is ready to brew.

Output of brew tap

homebrew/cask
homebrew/core
p-linnane commented 2 years ago

@Homebrew/cask Can someone on an Intel machine test this?

KEINOS commented 2 years ago

Same @ Intel Mac

$ brew uninstall virtualbox-extension-pack --force
==> Uninstalling Cask virtualbox-extension-pack
Password:
0%...NS_ERROR_FAILURE
VBoxManage: error: Failed to uninstall "Oracle VM VirtualBox Extension Pack"
VBoxManage: error: Extension pack 'Oracle VM VirtualBox Extension Pack' is not installed.

VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg *)" at line 1945 of file VBoxManageMisc.cpp
Error: Failure while executing; `/usr/bin/sudo -E -- /usr/local/bin/VBoxManage extpack uninstall Oracle\ VM\ VirtualBox\ Extension\ Pack` exited with 1. Here's the output:
0%...NS_ERROR_FAILURE
VBoxManage: error: Failed to uninstall "Oracle VM VirtualBox Extension Pack"
VBoxManage: error: Extension pack 'Oracle VM VirtualBox Extension Pack' is not installed.

VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg *)" at line 1945 of file VBoxManageMisc.cpp
Env info ```shellsession $ uname -m x86_64 $ sw_vers ProductName: macOS ProductVersion: 12.6 BuildVersion: 21G115 $ brew --version Homebrew 3.6.6 Homebrew/homebrew-core (git revision a9a9dac2cca; last commit 2022-10-24) Homebrew/homebrew-cask (git revision c770e3c95b; last commit 2022-10-23) $ brew doctor Your system is ready to brew. ```

Workaround

tl:dr

brew uninstall virtualbox --force
brew uninstall virtualbox-extension-pack --force
brew install virtualbox virtualbox-extension-pack

ts; dr

The problem seems to be caused by "VBoxManage", a command that comes with VirtualBOX. ```shellsession $ ls /usr/local/bin | grep VBoxManage VBoxManage $ VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack" 0%...NS_ERROR_FAILURE VBoxManage: error: Failed to uninstall "Oracle VM Extension Pack" VBoxManage: error: Extension pack 'Oracle VM Extension Pack' is not installed. VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg *)" at line 1945 of file VBoxManageMisc.cpp ``` So my current solution is to uninstall "virtualbox" and then "virtualbox-extension-pack" in that order. Then reinstalling both. ```shellsession $ # Uninstalling virtualbox $ brew uninstall virtualbox --force ==> Uninstalling Cask virtualbox ==> Running uninstall script VirtualBox_Uninstall.tool ** snip ** Successfully unloaded VirtualBox kernel extensions. Forgot package 'org.virtualbox.pkg.virtualbox' on '/'. Forgot package 'org.virtualbox.pkg.virtualboxcli' on '/'. Done. $ # Uninstalling extension pack $ brew uninstall virtualbox-extension-pack --force ==> Uninstalling Cask virtualbox-extension-pack ==> Purging files for version 7.0.0 of Cask virtualbox-extension-pack $ # Check if removed $ brew list | grep virtual ``` ```shellsession $ # Re-install VirtualBOX and extension pack $ brew install virtualbox virtualbox-extension-pack Running `brew update --auto-update`... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/core). ==> Downloading https://download.virtualbox.org/virtualbox/7.0.2/VirtualBox-7.0.2-154219-OSX.dmg Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/208eb45ad7f80d3564e4de7d8bd64eefbf72aef4ea004f68957f55341724bb0e--VirtualBox-7.0.2-154219-OSX.dmg ==> Installing Cask virtualbox ==> 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: choices changes file '/private/tmp/choices20221024-11551-3aqlee.xml' applied installer: Installing at base path / installer: The install was successful. ==> Changing ownership of paths required by virtualbox; your password may be necessary. šŸŗ virtualbox was successfully installed! ==> Caveats Installing virtualbox-extension-pack means you have AGREED to the license at: https://www.virtualbox.org/wiki/VirtualBox_PUEL ==> Downloading https://download.virtualbox.org/virtualbox/7.0.2/Oracle_VM_VirtualBox_Extension_Pack-7.0.2.vbox-extpack Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/95386b1787e38029ef27a640f2f6f0239d0f4b6a2bb3db54b90294f5834a2844--Oracle_VM_VirtualBox_Extension_Pack-7.0.2.vbox-extpack All formula dependencies satisfied. ==> Installing Cask virtualbox-extension-pack 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% šŸŗ virtualbox-extension-pack was successfully installed! virtualbox virtualbox-extension-pack ``` ```shellsession $ brew list | grep virtual virtualbox virtualbox-extension-pack $ VBoxManage list extpacks Extension Packs: 1 Pack no. 0: Oracle VM VirtualBox Extension Pack Version: 7.0.2 Revision: 154219 Edition: Description: Oracle Cloud Infrastructure integration, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe, full VM encryption. VRDE Module: VBoxVRDP Crypto Module: VBoxPuelCrypto Usable: true Why unusable: ```
isuftin commented 2 years ago

@KEINOS - Thank you this worked for me

jhriv commented 2 years ago

My work-around was to download the extension pack manually, install it, then brew upgrade virtualbox-extension-pack

The formula is failing at uninstalling a not-installed extension pack. When VirtualBox was upgraded, the extension was removed at the same time, leading to a situation where you could not use brew to upgrade or uninstall the virtualbox-extension-pack

KEINOS commented 2 years ago

When VirtualBox was upgraded, the extension was removed at the same time

Indeed. You got the whole point! šŸ‘

dtseiler commented 2 years ago

hole

brimarq commented 2 years ago

My work-around was to download the extension pack manually, install it, then brew upgrade virtualbox-extension-pack

The formula is failing at uninstalling a not-installed extension pack. When VirtualBox was upgraded, the extension was removed at the same time, leading to a situation where you could not use brew to upgrade or uninstall the virtualbox-extension-pack

@jhriv this is what I did and it worked perfectly. Thanks!

kkovaletp commented 1 year ago

BTW, if you try to manually install the extension-pack into freshly installed VirtualBox from the file, downloaded by Homebrew, which then failed on the previous version uninstallation step - you'll get an error "can't read the file", so you need to download the pack from official Oracle site. That is strange, as I expect it to be the same. Maybe the downloaded file is also corrupted in addition to the incorrect uninstallation logic in the cask?

iapicca commented 1 year ago

I have issue installing the package :) here are the steps I followed

Steps to reproduce 0. grant disk access to your terminal (eg: [iterm2][1] [screenshot][2]) 1. install [Homebrew][3] ``` /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` 2. install Virtualbox BETA ``` brew install --cask virtualbox-beta ``` 3. attempt to install virtualbox-extension-pack BETA ``` brew install --cask virtualbox-extension-pack-beta ``` - observe the error ```console āžœ ~ brew install --cask virtualbox-extension-pack-beta ==> Caveats Installing virtualbox-extension-pack-beta means you have AGREED to the license at: https://www.virtualbox.org/wiki/VirtualBox_PUEL ==> Downloading https://download.virtualbox.org/virtualbox/6.1.0_BETA2/Oracle_VM_VirtualBox_Extension_Pack-6.1.0_BETA2-134221.vbox-extpack Already downloaded: /Users/yakforward/Library/Caches/Homebrew/downloads/b72b85c17b0bc37ffc8dfba2aa95c03d06b46f4a5c6cf9e0955a6417d7cadc44--Oracle_VM_VirtualBox_Extension_Pack-6.1.0_BETA2-134221.vbox-extpack All formula dependencies satisfied. ==> Installing Cask virtualbox-extension-pack-beta 0%...NS_ERROR_FAILURE VBoxManage: error: Failed to install "/opt/homebrew/Caskroom/virtualbox-extension-pack-beta/6.1.0_BETA2,134221/Oracle_VM_VirtualBox_Extension_Pack-6.1.0_BETA2-134221.vbox-extpack" VBoxManage: error: Failed to locate the main module ('VBoxPuelMain') VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg *)" at line 1904 of file VBoxManageMisc.cpp ==> Purging files for version 6.1.0_BETA2,134221 of Cask virtualbox-extension-pack-beta Error: Failure while executing; `/usr/bin/sudo -E -- /usr/local/bin/VBoxManage extpack install --replace /opt/homebrew/Caskroom/virtualbox-extension-pack-beta/6.1.0_BETA2,134221/Oracle_VM_VirtualBox_Extension_Pack-6.1.0_BETA2-134221.vbox-extpack` exited with 1. Here's the output: 0%...NS_ERROR_FAILURE VBoxManage: error: Failed to install "/opt/homebrew/Caskroom/virtualbox-extension-pack-beta/6.1.0_BETA2,134221/Oracle_VM_VirtualBox_Extension_Pack-6.1.0_BETA2-134221.vbox-extpack" VBoxManage: error: Failed to locate the main module ('VBoxPuelMain') VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg *)" at line 1904 of file VBoxManageMisc.cpp [...] ```
yurikoles commented 1 year ago

May be closed since #136834: no cask, no problem.