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

install google-chrome failed #4819

Closed
bixuanzju opened this issue Jun 11, 2014 · 6 comments · Fixed by #5063
Closed

install google-chrome failed #4819

bixuanzju opened this issue Jun 11, 2014 · 6 comments · Fixed by #5063

Comments

@bixuanzju
Copy link

Below is the error message:

==> Downloading https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg
Already downloaded: /Library/Caches/Homebrew/google-chrome-latest.dmg
Error: Error parsing plist output from command.
  command was:
  ["/usr/bin/hdiutil", "mount", "-plist", "-nobrowse", "-readonly", "-noidme", "-mountrandom", "/tmp", "#<Pathname:/Library/Caches/Homebrew/google-chrome-latest.dmg>"]
  output we attempted to parse:
  <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>system-entities</key>
    <array>
        <dict>
            <key>content-hint</key>
            <string>Apple_partition_map</string>
            <key>dev-entry</key>
            <string>/dev/disk1s1</string>
            <key>potentially-mountable</key>
            <false/>
            <key>unmapped-content-hint</key>
            <string>Apple_partition_map</string>
        </dict>
        <dict>
            <key>content-hint</key>
            <string>Apple_HFS</string>
            <key>dev-entry</key>
            <string>/dev/disk1s2</string>
            <key>mount-point</key>
            <string>/tmp/dmg.czSSzw</string>
            <key>potentially-mountable</key>
            <true/>
            <key>unmapped-content-hint</key>
            <string>Apple_HFS</string>
            <key>volume-kind</key>
            <string>hfs</string>
        </dict>
        <dict>
            <key>content-hint</key>
            <string>Apple_partition_scheme</string>
            <key>dev-entry</key>
            <string>/dev/disk1</string>
            <key>potentially-mountable</key>
            <false/>
            <key>unmapped-content-hint</key>
            <string>Apple_partition_scheme</string>
        </dict>
    </array>
</dict>
</plist>
2014-06-11 18:00:27.954 hdiutil[54937:507] Error loading /Library/Plug-ins/DiskImages/VirtualPCDiskImagePlugin.bundle/Contents/MacOS/VirtualPCDiskImagePlugin:  dlopen(/Library/Plug-ins/DiskImages/VirtualPCDiskImagePlugin.bundle/Contents/MacOS/VirtualPCDiskImagePlugin, 262): no suitable image found.  Did find:
    /Library/Plug-ins/DiskImages/VirtualPCDiskImagePlugin.bundle/Contents/MacOS/VirtualPCDiskImagePlugin: mach-o, but wrong architecture
2014-06-11 18:00:27.955 hdiutil[54937:507] Cannot find function pointer MacDiskImagePluginFactory for factory 7F1FD83E-6684-11D8-968F-000A957703C0 in CFBundle/CFPlugIn 0x7fbe0070ad50 </Library/Plug-ins/DiskImages/VirtualPCDiskImagePlugin.bundle> (bundle, not loaded)
@rolandwalker
Copy link
Contributor

Hi!

There have been some encoding issues when reading the output of external commands such as hdiutil due to Homebrew's switch to Ruby 2.0.

Could you make sure you have the very latest versions?

$ brew update && brew upgrade brew-cask && brew cleanup

If the problem persists, it would help to send us the output of brew cask doctor.

@rolandwalker
Copy link
Contributor

I'm making #4857 the official issue for this bug.

@bixuanzju
Copy link
Author

Sorry for the late response but the problem still remains after running commands:

$ brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup

The output of brew cask doctor is:

==> OS X Version:
10.9.3
==> Hardware Architecture:
intel-64
==> Ruby Version:
2.0.0-p451
==> Ruby Path:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
==> Homebrew Version:
0.9.5
==> Homebrew Executable Path:
/usr/local/bin/brew
==> Homebrew Cellar Path:
/usr/local/Cellar
==> Homebrew Repository Path:
/usr/local
==> Homebrew Origin:
https://github.com/Homebrew/homebrew.git
==> Homebrew-cask Version:
0.37.0
==> Homebrew-cask Install Location:
/usr/local/Cellar/brew-cask/0.37.0
==> Homebrew-cask Cached Downloads:
/Library/Caches/Homebrew
/Library/Caches/Homebrew/Casks
0 files
0.00 megs
==> Homebrew-cask Default Tap Path:
/usr/local/Library/Taps/caskroom/homebrew-cask
==> Homebrew-cask Alternate Cask Taps:

==> Homebrew-cask Default Tap Cask Count:
1636
==> Contents of $LOAD_PATH:
/usr/local/Cellar/brew-cask/0.37.0/rubylib
/usr/local/Library/Homebrew
/Library/Ruby/Site/2.0.0
/Library/Ruby/Site/2.0.0/x86_64-darwin13
/Library/Ruby/Site/2.0.0/universal-darwin13
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin13
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/universal-darwin13
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/x86_64-darwin13
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13
==> Contents of $RUBYLIB Environment Variable:

==> Contents of $RUBYOPT Environment Variable:

==> Contents of $RUBYPATH Environment Variable:

==> Contents of $RBENV_VERSION Environment Variable:

==> Contents of $CHRUBY_VERSION Environment Variable:

==> Contents of $GEM_HOME Environment Variable:

==> Contents of $GEM_PATH Environment Variable:

==> Contents of $BUNDLE_PATH Environment Variable:

==> Contents of $PATH Environment Variable:
PATH="/Users/jeremybi/.cabal/bin:/opt/homebrew-cask/Caskroom/ghc/7.8.2-r6/ghc-7.8.2.app/Contents/bin:/Users/jeremybi/.nix-profile/bin:/Users/jeremybi/bin:/usr/local/share/npm/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/X11/bin:/usr/X11R6/bin:/Users/jeremybi/.cask/bin:/Applications/MATLAB_R2013a.app/bin:/Applications/Racket/bin:/usr/local/Cellar/ruby/2.1.2_2/bin:/usr/texbin:/usr/local/Library/Contributions/cmd"
==> Contents of $SHELL Environment Variable:
SHELL="/usr/local/bin/zsh"
==> Contents of Locale Environment Variables:
LANG="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
==> Running As Privileged User:
No

@rolandwalker rolandwalker reopened this Jun 25, 2014
@rolandwalker rolandwalker self-assigned this Jun 25, 2014
@rolandwalker
Copy link
Contributor

Thanks for the followup.

On closer reading, this looks like a unique bug. You seem to have a bad or old installation of VirtualPC which is putting garbage into the output of the hdiutil utility. You could try to uninstall VirtualPC, or to delete the bad bundle directory at /Library/Plug-ins/DiskImages/VirtualPCDiskImagePlugin.bundle.

But we can also make some changes on our end to defend against this issue. I've re-opened and assigned myself.

@bixuanzju
Copy link
Author

@rolandwalker Thank you for the reply. How can I reinstall/update VirtualPC on my side? I took a close look at that directory, and there is only one VirtualPCDiskImagePlugin.bundle, can I delete it safely?

@bixuanzju
Copy link
Author

@rolandwalker Thank you! After I delete /Library/Plug-ins/DiskImages/VirtualPCDiskImagePlugin.bundle, Chrome is successfully installed.

rolandwalker added a commit to rolandwalker/homebrew-cask that referenced this issue Jun 25, 2014
- Raise `CaskError` instead of `Plist::ParseError` from module
- Improve error message when parse result is empty
- remove leading garbage text and emit it to stderr (seen in Homebrew#5060)
- remove trailing garbage text and emit it to stderr (seen in Homebrew#4819)

This has the incidental effect of emitting DMG licenses during
installation, which seems desirable as permanent functionality.

If not permanent, the warnings to STDERR should still be kept
temporarily to help get better bug reports on `hdiutil`.

A bug wrt DMG licenses must have been introduced in one of
Homebrew#4892, Homebrew#4887, Homebrew#4889, Homebrew#4900, Homebrew#4975, Homebrew#4978, or Homebrew#4857.  Presumably,
the cause is that STDERR was previously silenced when running
`hdiutil`.  It would be cleaner (and more reliable) to redirect
STDERR and examine it separately, rather than clean up the
merged outputs.

closes Homebrew#4819
closes Homebrew#5060
@miccal miccal removed the duplicate label Dec 23, 2016
@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

Successfully merging a pull request may close this issue.

3 participants