Closed elektronaut0815 closed 7 years ago
I can reproduce this.
brew cask install libreoffice
==> Satisfying dependencies
complete
==> Downloading https://download.documentfoundation.org/libreoffice/stable/5.3.2
######################################################################## 100.0%
==> Verifying checksum for Cask libreoffice
==> Installing Cask libreoffice
Error: Command failed to execute!
==> Failed command:
/usr/bin/hdiutil mount -plist -nobrowse -readonly -noidme -mountrandom /tmp #<Pathname:/Users/commitay/Library/Caches/Homebrew/Cask/libreoffice--5.3.2.dmg>
==> Standard Output of failed command:
==> Standard Error of failed command:
==> Exit status of failed command:
#<Process::Status: pid 2021 SIGPIPE (signal 13)>
Error: nothing to install
I was able to fix this by manually ejecting the LibreOffice
disk using Disk Utility
and running brew cask install libreoffice
again.
Same error trying to install google-chrome
.
Trying this again (brew cask reinstall libreoffice
) somehow got up to the point where at least the old installation got removed. After that, brew cask install libreoffice
installed the new version. So that problem is solved for me now, although the process seems broken.
The trouble with cloudfoundry-cli
remains.
I hesitate to close this issue as it seems as if a reasonable fix is needed.
I can't reliably reproduce this error. Testing this all I'm doing is rolling back the VM snapshot and doing a clean install of HB/HBC.
brew cask install libreoffice
==> Satisfying dependencies
complete
==> Downloading https://download.documentfoundation.org/libreoffice/stable/5.3.2
######################################################################## 100.0%
==> Verifying checksum for Cask libreoffice
==> Moving App 'LibreOffice.app' to '/Applications/LibreOffice.app'.
==> Linking Binary 'gengal' to '/usr/local/bin/gengal'.
==> Linking Binary 'regmerge' to '/usr/local/bin/regmerge'.
==> Linking Binary 'regview' to '/usr/local/bin/regview'.
==> Linking Binary 'senddoc' to '/usr/local/bin/senddoc'.
==> Linking Binary 'ui-previewer' to '/usr/local/bin/ui-previewer'.
==> Linking Binary 'uno' to '/usr/local/bin/uno'.
==> Linking Binary 'unopkg' to '/usr/local/bin/unopkg'.
==> Linking Binary 'urelibs' to '/usr/local/bin/urelibs'.
==> Linking Binary 'uri-encode' to '/usr/local/bin/uri-encode'.
==> Linking Binary 'xpdfimport' to '/usr/local/bin/xpdfimport'.
==> Linking Binary 'soffice.wrapper.sh' to '/usr/local/bin/soffice'.
🍺 libreoffice was successfully installed!
brew cask install google-chrome
==> Satisfying dependencies
complete
==> Downloading https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg
######################################################################## 100.0%
==> No checksum defined for Cask google-chrome, skipping verification
==> Installing Cask google-chrome
Error: Command failed to execute!
==> Failed command:
/usr/bin/hdiutil mount -plist -nobrowse -readonly -noidme -mountrandom /tmp #<Pathname:/Users/commitay/Library/Caches/Homebrew/Cask/google-chrome--latest.dmg>
==> Standard Output of failed command:
==> Standard Error of failed command:
==> Exit status of failed command:
#<Process::Status: pid 1958 SIGPIPE (signal 13)>
Error: nothing to install
brew cask install google-chrome
==> Satisfying dependencies
complete
==> Downloading https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg
######################################################################## 100.0%
==> No checksum defined for Cask google-chrome, skipping verification
==> Moving App 'Google Chrome.app' to '/Applications/Google Chrome.app'.
🍺 google-chrome was successfully installed!
I cannot reproduce this:
-bash-4.4.12- /Users/miccal [> brew cask reinstall libreoffice
==> Satisfying dependencies
complete
==> Downloading https://download.documentfoundation.org/libreoffice/stable/5.3.2/mac/x86_64/LibreOffice_5.3.2_MacOS_x86-64.dmg
######################################################################## 100.0%
==> Verifying checksum for Cask libreoffice
==> Removing App '/Applications/LibreOffice.app'.
==> Unlinking Binary '/usr/local/bin/gengal'.
==> Unlinking Binary '/usr/local/bin/regmerge'.
==> Unlinking Binary '/usr/local/bin/regview'.
==> Unlinking Binary '/usr/local/bin/senddoc'.
==> Unlinking Binary '/usr/local/bin/ui-previewer'.
==> Unlinking Binary '/usr/local/bin/uno'.
==> Unlinking Binary '/usr/local/bin/unopkg'.
==> Unlinking Binary '/usr/local/bin/urelibs'.
==> Unlinking Binary '/usr/local/bin/uri-encode'.
==> Unlinking Binary '/usr/local/bin/xpdfimport'.
==> Unlinking Binary '/usr/local/bin/soffice'.
==> Moving App 'LibreOffice.app' to '/Applications/LibreOffice.app'.
==> Linking Binary 'gengal' to '/usr/local/bin/gengal'.
==> Linking Binary 'regmerge' to '/usr/local/bin/regmerge'.
==> Linking Binary 'regview' to '/usr/local/bin/regview'.
==> Linking Binary 'senddoc' to '/usr/local/bin/senddoc'.
==> Linking Binary 'ui-previewer' to '/usr/local/bin/ui-previewer'.
==> Linking Binary 'uno' to '/usr/local/bin/uno'.
==> Linking Binary 'unopkg' to '/usr/local/bin/unopkg'.
==> Linking Binary 'urelibs' to '/usr/local/bin/urelibs'.
==> Linking Binary 'uri-encode' to '/usr/local/bin/uri-encode'.
==> Linking Binary 'xpdfimport' to '/usr/local/bin/xpdfimport'.
==> Linking Binary 'soffice.wrapper.sh' to '/usr/local/bin/soffice'.
🍺 libreoffice was successfully installed!
I'm getting the same error when trying to install Spotify. Un-mounting the disk with Disk Utility
and retrying does not help for me.
$ brew cask install spotify
==> Satisfying dependencies
complete
==> Downloading https://download.spotify.com/Spotify.dmg
######################################################################## 100.0%
==> No checksum defined for Cask spotify, skipping verification
==> Installing Cask spotify
Error: Command failed to execute!
==> Failed command:
/usr/bin/hdiutil mount -plist -nobrowse -readonly -noidme -mountrandom /tmp #<Pathname:/Users/23051884/Library/Caches/Homebrew/Cask/spotify--latest.dmg>
==> Standard Output of failed command:
==> Standard Error of failed command:
==> Exit status of failed command:
#<Process::Status: pid 13157 SIGPIPE (signal 13)>
Error: nothing to install
Un-mounting the disk with Disk Utility and retrying does not help for me.
This will only work with versioned casks. google-chrome
and spotify
are both version :latest
@elektronaut0815 , @danielmartin , @andershammar
Please post the output of brew config
.
Thank you for your attention, here it is:
$ brew config
HOMEBREW_VERSION: 1.1.13-63-g206d6de845
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 206d6de845c9041bbbd4d955e56befb338295e96
Last commit: 4 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ddb97ac4a59967bcbd8542cb673f994bec61951d
Core tap last commit: 2 days ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit broadwell
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.12.2 => /usr/local/bin/git
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_74, 1.8.0_66, 1.7.0_67
macOS: 10.12.4-x86_64
Xcode: 8.2
CLT: 8.3.2.0.1.1492020469
X11: 2.7.11 => /opt/X11
Here's mine.
$ brew config
HOMEBREW_VERSION: 1.1.13-3683-g24a339ee
ORIGIN: https://github.com/Homebrew/brew
HEAD: 24a339ee239a4e13e5162085780687fcd2b7bc9f
Last commit: 21 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 0b669484c85ab945cd0d49b920fdb3f0e40d7cbd
Core tap last commit: 33 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648
Clang: 8.1 build 802
Git: 2.12.2 => /usr/local/bin/git
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_131, 1.6.0_65-b14-468
macOS: 10.12.4-x86_64
Xcode: N/A
CLT: 8.3.2.0.1.1492020469
X11: N/A
Maybe I should also mention that so far I have only seen this problem when trying to install Spotify. Other casks are installing fine.
@elektronaut0815 , @andershammar Thank you both for supplying brew config
.
@elektronaut0815 If you have already uninstalled cloudfoundry-cli
, you can remove the cloudfoundry-cli
folder from /usr/local/Caskroom
, that should fix the error with brew cask outdated
.
@miccal I'm able to consistently reproduce this error with google-chrome
and spotify
by switching to master
from 1.1.13
tag.
I can also reproduce this with libreoffice
but only when it is a fresh download/install on master
, installing with 1.1.13
and reinstalling on master
does not error.
I'm guessing this is because HBC has already accessed the .dmg
whereas google-chrome
and spotify
are :latest
so HBC always downloads the cask again.
@commitay Thanks for the update. I was able to install Spotify by following your example, i.e. moving back to the 1.1.13
tag.
@commitay I cannot reproduce this error at all.
@commitay Thank you, deleting the folder fixed that error!
I've done root cause analysis of this problem and the issue seems to be this commit: https://github.com/Homebrew/brew/commit/cc634b2d50cc0e8c1e8a38196f4bcdad4e0a69b6 Incrementing the timeout fixed the issue, at least on my machine. The fact that this problem was not easily reproducible makes now sense because, as with every timing issue, it depends on the machine speed and the size of the cask.
I can prepare a patch if you confirm this fixes the problem for you in Homebrew master
.
@danielmartin Thank you for investigating this.
Incrementing the timeout fixed the issue
This works for me when installing libreoffice
, google-chrome
and spotify
.
It also seems to resolve https://github.com/caskroom/homebrew-cask/issues/33116.
@miccal I think this can be closed as https://github.com/Homebrew/brew/issues/2571 has been merged.
General troubleshooting steps
brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command.Description of issue
Cask seems to have some issue on my machine, one problem is that it won't upgrade LibreOffice. Even though version 5.3.2 is reported by cask, 5.1.0.3 remains installed.
Output of your command with
--verbose --debug
Output of
brew cask doctor
Might be related
Some remains of cloudfoundry-cli won't disappear:
So here I am stuck now, thanks in advance for any advice!