Homebrew / homebrew-cask

🍻 A CLI workflow for the administration of macOS applications distributed as binaries
https://brew.sh
BSD 2-Clause "Simplified" License
20.93k stars 10.72k forks source link

Can not install loginputmac #67733

Closed Ninzero closed 5 years ago

Ninzero commented 5 years ago

General troubleshooting steps

Description of issue

I am trying to install loginputmac, but it doesn't work.

Command that failed

brew cask install loginputmac

Output of command with --force --verbose --debug

==> Cask::Installer#install
==> Printing caveats
==> Cask::Installer#fetch
==> Satisfying dependencies
==> Downloading
==> Downloading https://loginput-mac2.content-delivery.top/loginputmac2_latest.pkg
/usr/bin/curl -q --show-error --user-agent Homebrew/2.1.10-12-g9812693\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.14.6\)\ curl/7.54.0 --location --silent --head --request GET https://loginput-mac2.content-delivery.top/loginputmac2_latest.pkg
Already downloaded: /Users/Ninzero/Library/Caches/Homebrew/downloads/464403b24c719515b4e007d46051b528694fc37272bbd478ca450175b82ee2d2--loginputmac2_latest.pkg
==> Checking quarantine support
/usr/bin/xattr
/usr/bin/swift /usr/local/Homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Quarantine is available.
==> Verifying Gatekeeper status of /Users/Ninzero/Library/Caches/Homebrew/downloads/464403b24c719515b4e007d46051b528694fc37272bbd478ca450175b82ee2d2--loginputmac2_latest.pkg
/usr/bin/xattr -p com.apple.quarantine /Users/Ninzero/Library/Caches/Homebrew/downloads/464403b24c719515b4e007d46051b528694fc37272bbd478ca450175b82ee2d2--loginputmac2_latest.pkg
==> /Users/Ninzero/Library/Caches/Homebrew/downloads/464403b24c719515b4e007d46051b528694fc37272bbd478ca450175b82ee2d2--loginputmac2_latest.pkg is quarantined
==> Downloaded to -> /Users/Ninzero/Library/Caches/Homebrew/downloads/464403b24c719515b4e007d46051b528694fc37272bbd478ca450175b82ee2d2--loginputmac2_latest.pkg
==> Verifying SHA-256 checksum for Cask 'loginputmac'.
==> Installing Cask loginputmac
==> Cask::Installer#stage
==> Extracting primary container
==> Using container class UnpackStrategy::Pkg for /Users/Ninzero/Library/Caches/Homebrew/downloads/464403b24c719515b4e007d46051b528694fc37272bbd478ca450175b82ee2d2--loginputmac2_latest.pkg
cp -p /Users/Ninzero/Library/Caches/Homebrew/downloads/464403b24c719515b4e007d46051b528694fc37272bbd478ca450175b82ee2d2--loginputmac2_latest.pkg /usr/local/Caskroom/loginputmac/2.2.3/loginputmac2_latest.pkg
==> Verifying Gatekeeper status of /Users/Ninzero/Library/Caches/Homebrew/downloads/464403b24c719515b4e007d46051b528694fc37272bbd478ca450175b82ee2d2--loginputmac2_latest.pkg
/usr/bin/xattr -p com.apple.quarantine /Users/Ninzero/Library/Caches/Homebrew/downloads/464403b24c719515b4e007d46051b528694fc37272bbd478ca450175b82ee2d2--loginputmac2_latest.pkg
==> /Users/Ninzero/Library/Caches/Homebrew/downloads/464403b24c719515b4e007d46051b528694fc37272bbd478ca450175b82ee2d2--loginputmac2_latest.pkg is quarantined
==> Propagating quarantine from /Users/Ninzero/Library/Caches/Homebrew/downloads/464403b24c719515b4e007d46051b528694fc37272bbd478ca450175b82ee2d2--loginputmac2_latest.pkg to /usr/local/Caskroom/loginputmac/2.2.3
/usr/bin/xattr -p com.apple.quarantine /Users/Ninzero/Library/Caches/Homebrew/downloads/464403b24c719515b4e007d46051b528694fc37272bbd478ca450175b82ee2d2--loginputmac2_latest.pkg
/usr/bin/xargs -0 -- /bin/chmod -h u\+w
/usr/bin/xargs -0 -- /usr/bin/xattr -w -s com.apple.quarantine 0181\;5d56d7e7\;Homebrew\\x20Cask\;F008BFF5-5D1E-4B26-84CA-7029C98D6CFB
==> Creating metadata directory /usr/local/Caskroom/loginputmac/.metadata/2.2.3/20190816163433.117.
==> Creating metadata subdirectory /usr/local/Caskroom/loginputmac/.metadata/2.2.3/20190816163433.117/Casks.
==> Installing artifacts
==> 2 artifact/s defined
#<SortedSet:0x00007fb18fb44f40>
==> Installing artifact of class Cask::Artifact::Pkg
==> Running installer for loginputmac; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
/usr/bin/sudo -E -- env LOGNAME=Ninzero USER=Ninzero USERNAME=Ninzero /usr/sbin/installer -pkg /usr/local/Caskroom/loginputmac/2.2.3/loginputmac2_latest.pkg -target / -verboseR
Password:
installer: Package name is 落格输入法 macOS 2
installer: Installing at base path /
installer:PHASE:正在准备安装…
installer:PHASE:正在准备磁盘…
installer:PHASE:正在准备“落格输入法 macOS 2”…
installer:PHASE:正在等待其他安装完成…
installer:PHASE:正在配置安装…
installer:STATUS:
installer:%20.679273
installer:PHASE:正在写文件…
installer:%41.813359
installer:PHASE:正在写文件…
installer:PHASE:正在验证软件包…
installer:%97.750000
installer: The install failed (安装器遇到了一个错误,导致安装失败。请联系软件制造商以获得帮助。)
==> Purging files for version 2.2.3 of Cask loginputmac
Error: Failure while executing; `/usr/bin/sudo -E -- env LOGNAME=Ninzero USER=Ninzero USERNAME=Ninzero /usr/sbin/installer -pkg /usr/local/Caskroom/loginputmac/2.2.3/loginputmac2_latest.pkg -target / -verboseR` exited with 1. Here's the output:
installer: Package name is 落格输入法 macOS 2
installer: Installing at base path /
installer:PHASE:正在准备安装…
installer:PHASE:正在准备磁盘…
installer:PHASE:正在准备“落格输入法 macOS 2”…
installer:PHASE:正在等待其他安装完成…
installer:PHASE:正在配置安装…
installer:STATUS:
installer:%20.679273
installer:PHASE:正在写文件…
installer:%41.813359
installer:PHASE:正在写文件…
installer:PHASE:正在验证软件包…
installer:%97.750000
installer: The install failed (安装器遇到了一个错误,导致安装失败。请联系软件制造商以获得帮助。)
Follow the instructions here:
  https://github.com/Homebrew/homebrew-cask#reporting-bugs
/usr/local/Homebrew/Library/Homebrew/system_command.rb:111:in `assert_success'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:52:in `run!'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:29:in `run'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:33:in `run!'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/pkg.rb:59:in `block in run_installer'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/pkg.rb:65:in `with_choices_file'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/pkg.rb:52:in `run_installer'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/pkg.rb:34:in `install_phase'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:214:in `block in install_artifacts'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/set.rb:674:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/set.rb:674:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:205:in `install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:103:in `install'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/install.rb:23:in `block in run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/install.rb:16:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/install.rb:16:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/abstract_command.rb:36:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:93:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:159:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:124:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:9:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:102:in `<main>'
Error: Kernel.exit
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:168:in `exit'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:168:in `rescue in run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:147:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:124:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:9:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:102:in `<main>'

Output of brew cask doctor

==> Homebrew Version
2.1.10-12-g9812693
==> macOS
10.14.6
==> SIP
Enabled
==> Java
N/A
==> Gatekeeper support
Enabled
==> Homebrew Cask Install Location
<NONE>
==> Homebrew Cask Staging Location
/usr/local/Caskroom
==> Homebrew Cask Taps:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask (3554 casks)
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-drivers (138 casks)
==> Contents of $LOAD_PATH
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/simplecov-cobertura-1.3.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/ruby-macho-2.2.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rubocop-rspec-1.35.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rubocop-performance-1.4.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rubocop-0.74.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/unicode-display_width-1.6.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/ruby-progressbar-1.10.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rspec-wait-0.0.9/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rspec-retry-0.6.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rspec-its-1.3.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rspec-3.8.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rspec-mocks-3.8.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rspec-expectations-3.8.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rspec-core-3.8.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rspec-support-3.8.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/ronn-0.7.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rdiscount-2.2.0.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/extensions/universal-darwin-18/2.3.0/rdiscount-2.2.0.1
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/rainbow-3.0.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/plist-3.5.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/parser-2.6.3.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/parallel_tests-2.29.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/parallel-1.17.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/mustache-1.1.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/mechanize-2.7.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/webrobots-0.1.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/ntlm-http-0.1.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/nokogiri-1.10.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/extensions/universal-darwin-18/2.3.0/nokogiri-1.10.3
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/mini_portile2-2.4.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/net-http-persistent-3.1.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/net-http-digest_auth-1.4.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/mime-types-3.2.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/mime-types-data-3.2019.0331/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/jaro_winkler-1.5.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/extensions/universal-darwin-18/2.3.0/jaro_winkler-1.5.3
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/http-cookie-1.0.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/hpricot-0.8.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/extensions/universal-darwin-18/2.3.0/hpricot-0.8.6
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/domain_name-0.5.20190701/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/unf-0.1.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/unf_ext-0.0.7.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/extensions/universal-darwin-18/2.3.0/unf_ext-0.0.7.6
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/diff-lcs-1.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/coveralls-0.8.23/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/thor-0.20.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/term-ansicolor-1.7.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/tins-1.21.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/simplecov-0.16.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/simplecov-html-0.10.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/docile-1.3.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/json-2.2.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/extensions/universal-darwin-18/2.3.0/json-2.2.0
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/connection_pool-2.2.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/backports-3.15.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/ast-2.4.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/activesupport-5.2.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/tzinfo-1.2.5/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/thread_safe-0.3.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/minitest-5.11.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/i18n-1.6.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.3.0/gems/concurrent-ruby-1.1.5/lib
/Library/Ruby/Site/2.3.0
/Library/Ruby/Site/2.3.0/x86_64-darwin18
/Library/Ruby/Site/2.3.0/universal-darwin18
/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-darwin18
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/vendor_ruby/2.3.0/universal-darwin18
/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-darwin18
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/universal-darwin18
/usr/local/Homebrew/Library/Homebrew
==> Environment Variables
LC_ALL="en_US.UTF-8"
PATH="/usr/local/Homebrew/Library/Homebrew/shims/scm:/usr/bin:/bin:/usr/sbin:/sbin"
SHELL="/bin/zsh"

Output of brew tap

homebrew/cask
homebrew/cask-drivers
homebrew/core
reitermarkus commented 5 years ago

Does installing it manually work?

Ninzero commented 5 years ago

No, problem remains, should I try to contact the developer?

reitermarkus commented 5 years ago

Yes, if installing it manually doesn't work, there's nothing we can do.

Ninzero commented 5 years ago

Actually, I just downloaded the installer from the website of Loginput. And it worked. So it seems like there is something wrong with the installer downloaded by home-brew.

Ninzero commented 5 years ago

What I downloaded from their website is a .dmg file, but Homebrew only downloaded a .pkg file. I think you have to download the whole .dmg file and open the installer inside it. Because the installer will try to open another .pdf file inside the .dmg file, and when it can't find the .pdf file, the installation failed. I tested install loginput directly in the dmg, it succeeded. But after I extract the .pkg file from the .dmg file, the error turned up again.

Ninzero commented 5 years ago

I have contact the developer and the problem will be solved. Thank you anyway