Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

caskroom/versions/firefox-esr can not be installed if caskroom/cask/firefox is installed #5035

Closed
6 tasks done
scottrigby opened this issue Dec 29, 2017 · 2 comments
Closed
6 tasks done

Comments

@scottrigby
Copy link

scottrigby commented Dec 29, 2017

General troubleshooting steps

Description of issue

caskroom/versions/firefox-esr can not be installed if caskroom/cask/firefox is already present.

Output of your command with --verbose --debug

$ brew cask install firefox-esr --verbose --debug
==> Hbc::Installer#install
==> Printing caveats
==> Hbc::Installer#fetch
==> Satisfying dependencies
==> Downloading
==> Downloading https://download-installer.cdn.mozilla.net/pub/firefox/releases/52.5.3esr/mac/en-US/Firefox%2052.5.3esr.dmg
Already downloaded: /Users/scottrigby/Library/Caches/Homebrew/Cask/firefox-esr--52.5.3.dmg
==> Downloaded to -> /Users/scottrigby/Library/Caches/Homebrew/Cask/firefox-esr--52.5.3.dmg
==> Verifying download
==> Determining which verifications to run for Cask firefox-esr
==> Checking for verification class Hbc::Verify::Checksum
==> 1 verifications defined
Hbc::Verify::Checksum
==> Running verification of class Hbc::Verify::Checksum
==> Verifying checksum for Cask firefox-esr
==> SHA256 checksums match
==> Installing Cask firefox-esr
==> Hbc::Installer#stage
==> Extracting primary container
==> Determining which containers to use based on filetype
==> Checking container class Hbc::Container::Pkg
==> Checking container class Hbc::Container::Ttf
==> Checking container class Hbc::Container::Otf
==> Checking container class Hbc::Container::Air
==> Checking container class Hbc::Container::Cab
==> Checking container class Hbc::Container::Dmg
==> Executing: ["/usr/bin/hdiutil", "imageinfo", "/Users/scottrigby/Library/Caches/Homebrew/Cask/firefox-esr--52.5.3.dmg"]
==> Using container class Hbc::Container::Dmg for /Users/scottrigby/Library/Caches/Homebrew/Cask/firefox-esr--52.5.3.dmg
==> Executing: ["/usr/bin/hdiutil", "attach", "-plist", "-nobrowse", "-readonly", "-noidme", "-mountrandom", "/var/folders/rr/_0y6r0p53_j8qpsg39plhg9c0000gn/T/d20171229-33528-fld8ku", "/Users/scottrigby/Library/Caches/Homebrew/Cask/firefox-esr--52.5.3.dmg"]
==> Executing: ["/usr/bin/find", ".", "-print0"]
==> Executing: ["/usr/bin/mkbom", "-s", "-i", "/var/folders/rr/_0y6r0p53_j8qpsg39plhg9c0000gn/T/20171229-33528-1wnodtj.list", "--", "/var/folders/rr/_0y6r0p53_j8qpsg39plhg9c0000gn/T/20171229-33528-wjs2x9.bom"]
==> Executing: ["/usr/bin/ditto", "--bom", "/var/folders/rr/_0y6r0p53_j8qpsg39plhg9c0000gn/T/20171229-33528-wjs2x9.bom", "--", "/private/var/folders/rr/_0y6r0p53_j8qpsg39plhg9c0000gn/T/d20171229-33528-fld8ku/dmg.JOxhfX", "/usr/local/Caskroom/firefox-esr/52.5.3"]
==> Executing: ["/usr/sbin/diskutil", "eject", "/private/var/folders/rr/_0y6r0p53_j8qpsg39plhg9c0000gn/T/d20171229-33528-fld8ku/dmg.JOxhfX"]
==> Creating metadata directory /usr/local/Caskroom/firefox-esr/.metadata/52.5.3/20171229215000.957.
==> Creating metadata subdirectory /usr/local/Caskroom/firefox-esr/.metadata/52.5.3/20171229215000.957/Casks.
==> Installing artifacts
==> 2 artifact/s defined
#<SortedSet:0x0000010480b060>
==> Installing artifact of class Hbc::Artifact::App
==> Purging files for version 52.5.3 of Cask firefox-esr
Error: It seems there is already an App at '/Applications/Firefox.app'.
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/moved.rb:31:in `move'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/artifact/moved.rb:11:in `install_phase'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:174:in `block in install_artifacts'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/set.rb:674:in `each'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/set.rb:674:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:166:in `install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:80:in `install'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:20:in `block in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:14:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:14:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb:35:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:98:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:168:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:132:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:100:in `<main>'
Error: Kernel.exit
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:173:in `exit'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:173:in `rescue in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:156:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:132:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:100:in `<main>'

Output of brew cask doctor

$ brew cask doctor
==> Homebrew-Cask Version
Homebrew-Cask 1.4.1-28-g7f54c83
caskroom/homebrew-cask (git revision d563; last commit 2017-12-29)
==> macOS
10.13.2
==> Java
1.8.0_112
==> Homebrew-Cask Install Location
<NONE>
==> Homebrew-Cask Staging Location
/usr/local/Caskroom
==> Homebrew-Cask Cached Downloads
~/Library/Caches/Homebrew/Cask (6 files, 670.8MB)
==> Homebrew-Cask Taps:
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask (3879 casks)
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-versions (176 casks)
==> Contents of $LOAD_PATH
/usr/local/Homebrew/Library/Homebrew/cask/lib
/usr/local/Homebrew/Library/Homebrew
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/site_ruby/2.3.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/site_ruby/2.3.0/x86_64-darwin9.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/site_ruby/2.3.0/universal-darwin9.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/site_ruby
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/vendor_ruby/2.3.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/vendor_ruby/2.3.0/x86_64-darwin9.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/vendor_ruby/2.3.0/universal-darwin9.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/vendor_ruby
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/x86_64-darwin9.0
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/universal-darwin9.0
==> Environment Variables
LC_ALL="en_US.UTF-8"
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Homebrew/Library/Homebrew/shims/scm"
SHELL="/bin/bash"
@commitay
Copy link
Contributor

Homebrew/homebrew-cask#42383
#5036

@jcrben
Copy link

jcrben commented Feb 12, 2018

UPDATE: found Homebrew/homebrew-cask#30962 (comment) which notes:

We do not support installing multiple versions of the same app at the same time. That is not a model that works for most apps. See #13201.

Is the idea that we can't should not beta or canary versions side by side with stable versions? Why not?

I suppose I'll download the beta manually... I imagine that most users are going to want to have the beta and the stable versions side-by-side, to switch back to stable quickly if something doesn't work.

Also noticed this Homebrew/homebrew-cask#22626 (comment):

A conflict happens when apps clash. If these clash only in the sense they share a name, it’s not really a clash.

Apparently more discussion available if following Homebrew/homebrew-cask#12822 and https://github.com/caskroom/homebrew-cask/blob/87e5afa8a79135555be8bb21db00ead9f312ef88/doc/cask_language_reference/all_stanzas.md#optional-stanzas

@Homebrew Homebrew locked and limited conversation to collaborators May 8, 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

3 participants