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.71k forks source link

beamer fails to install #84806

Closed joyarzun closed 4 years ago

joyarzun commented 4 years ago

General troubleshooting steps

Description of issue

beamer fails to install because the certificate has expired

Command that failed

brew cask install beamer  --force --verbose --debug

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

==> Downloading https://beamer-app.com/resources/downloads/Beamer-3.4.zip
##O#- #
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Error: Download failed on Cask 'beamer' with message: Download failed: https://beamer-app.com/resources/downloads/Beamer-3.4.zip

Output of brew cask doctor

==> Homebrew Version
2.4.1
==> macOS
10.15.4
==> SIP
Enabled
==> Java
N/A
==> xattr issues
<NONE>
==> 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 (3586 casks)
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-fonts (1508 casks)
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-drivers (151 casks)
==> Contents of $LOAD_PATH
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ruby-macho-2.2.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-rspec-1.40.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-performance-1.6.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rexml-3.2.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/plist-3.5.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mechanize-2.7.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/activesupport-6.0.3.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/zeitwerk-2.3.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/tzinfo-1.2.7/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/thread_safe-0.3.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/i18n-1.8.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby
/Library/Ruby/Site/2.6.0
/Library/Ruby/Site/2.6.0/universal-darwin19
/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/universal-darwin19
/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/universal-darwin19
/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

amar1729/formulae
homebrew/cask
homebrew/cask-drivers
homebrew/cask-fonts
homebrew/core
remind101/formulae
joyarzun commented 4 years ago

Looks like the app has moved to a paid version image

miccal commented 4 years ago

I think you are experiencing the problems reported in https://github.com/Homebrew/homebrew-cask/issues/83481.

joyarzun commented 4 years ago

I think you are experiencing the problems reported in #83481.

I installed curl with brew and the issue is still present

➜  ~ curl --version
curl 7.70.0 (x86_64-apple-darwin19.4.0) libcurl/7.70.0 SecureTransport zlib/1.2.11
Release-Date: 2020-04-29
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile libz NTLM NTLM_WB SSL UnixSockets
➜  ~ brew cask install beamer
==> Downloading https://beamer-app.com/resources/downloads/Beamer-3.4.zip
##O#- #
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Error: Download failed on Cask 'beamer' with message: Download failed: https://beamer-app.com/resources/downloads/Beamer-3.4.zip
➜  ~
miccal commented 4 years ago

Did you set export HOMEBREW_FORCE_BREWED_CURL=1?

ran-dall commented 4 years ago

@joyarzun You're on 10.15.4 so you need to set CURL_SSL_BACKEND=secure-transport Ref: https://github.com/Homebrew/brew/issues/7667#issuecomment-636457856

@miccal export HOMEBREW_FORCE_BREWED_CURL=1 is for earlier macOS versions, but it's amazing how many times we answer to this issue, isn't? πŸ˜‚

miccal commented 4 years ago

Sorry @ran-dall, I was following the advice given here, which I should have read more carefully.

joyarzun commented 4 years ago

@joyarzun You're on 10.15.4 so you need to set CURL_SSL_BACKEND=secure-transport Ref: Homebrew/brew#7667 (comment)

@miccal export HOMEBREW_FORCE_BREWED_CURL=1 is for earlier macOS versions, but it's amazing how many times we answer to this issue, isn't? πŸ˜‚

Looks like it didn't work

~ export CURL_SSL_BACKEND=secure-transport
➜  ~ brew cask install beamer
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
perl βœ”                coredns               grpc                  lanraragi             nqp                   rakudo                tomee-webprofile
vim βœ”                 cucumber-ruby         gssdp                 libtorrent-rasterbar  ocrmypdf              rsync                 translate-toolkit
abcmidi               dvm                   gupnp                 lmod                  pdf2json              subversion            weechat
aliyun-cli            eslint                igv                   mlton                 picard-tools          talisman
azure-cli             exploitdb             json-fortran          moarvm                questdb               tomee-plume
ccache                gluon                 jupyterlab            node-sass             r                     tomee-plus
==> Updated Casks
aircall               atext                 detectx-swift         kitty                 merlin-project        plexamp               screenflow

==> Downloading https://beamer-app.com/resources/downloads/Beamer-3.4.zip
##O#- #
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Error: Download failed on Cask 'beamer' with message: Download failed: https://beamer-app.com/resources/downloads/Beamer-3.4.zip
ran-dall commented 4 years ago

@joyarzun This is beyond the scope of HBC's support because it works for me on both my machine and on the ML.

$ brew cask install beamer
Updating Homebrew...
==> Auto-updated Homebrew!
Updated Homebrew from d6cc5ff37 to 0dbbefe33.
Updated 1 tap (homebrew/core).
==> Updated Formulae
aliyun-cli           coredns              cucumber-ruby        gluon                ocrmypdf             pdf2json             picard-tools

==> Downloading https://beamer-app.com/resources/downloads/Beamer-3.4.zip
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'beamer'.
==> Installing Cask beamer
==> Moving App 'Beamer.app' to '/Applications/Beamer.app'.
🍺  beamer was successfully installed!

Regardless, let me see if I can help you further. Can you see the setting in your env? Can you send me the output of printenv after you have exported the setting?

FWIW I don't use 10.15 for a long list of reasons, so I'm kinda flying a bit blind.

joyarzun commented 4 years ago

Sure, and btw I appreciate your effort

➜  ~ export CURL_SSL_BACKEND=secure-transport
➜  ~ printenv
TERM_SESSION_ID=w0t2p0:9E4854A2-BFB6-4606-A663-E851FDBFAF80
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.9VUDYhLAXS/Listeners
LC_TERMINAL_VERSION=3.3.11
COLORFGBG=7;0
ITERM_PROFILE=Default
XPC_FLAGS=0x0
PWD=/Users/joyarzun
SHELL=/bin/zsh
LC_CTYPE=UTF-8
TERM_PROGRAM_VERSION=3.3.11
TERM_PROGRAM=iTerm.app
PATH=/usr/local/opt/curl/bin:/usr/local/opt/mysql-client/bin:/usr/local/opt/node@12/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
LC_TERMINAL=iTerm2
COLORTERM=truecolor
TERM=xterm-256color
HOME=/Users/joyarzun
TMPDIR=/var/folders/tt/hftc6vks7q1frh6c_cqvd9sr0000gn/T/
USER=joyarzun
XPC_SERVICE_NAME=0
LOGNAME=joyarzun
ITERM_SESSION_ID=w0t2p0:9E4854A2-BFB6-4606-A663-E851FDBFAF80
__CF_USER_TEXT_ENCODING=0x0:0:0
SHLVL=1
OLDPWD=/Users/joyarzun
ZSH=/Users/joyarzun/.oh-my-zsh
PAGER=less
LESS=-R
LSCOLORS=Gxfxcxdxbxegedabagacad
CURL_SSL_BACKEND=secure-transport
_=/usr/bin/printenv

Something interesting:

➜  ~ curl https://beamer-app.com/resources/downloads/Beamer-3.4.zip -o file
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15.3M  100 15.3M    0     0  1095k      0  0:00:14  0:00:14 --:--:-- 2652k
➜  ~ brew cask install beamer
Updating Homebrew...
...

==> Downloading https://beamer-app.com/resources/downloads/Beamer-3.4.zip
##O#- #
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Error: Download failed on Cask 'beamer' with message: Download failed: https://beamer-app.com/resources/downloads/Beamer-3.4.zip

FWIW I don't use 10.15 for a long list of reasons, so I'm kinda flying a bit blind.

Wow, now I'm curious why you don't do the upgrade. If it's personal don't worry, otherwise please share

ran-dall commented 4 years ago

@joyarzun That is strange. I guess the next step would be to force use brew's version of curl so export HOMEBREW_FORCE_BREWED_CURL=1 like @miccal suggested. Please do report back if it works.

Wow, now I'm curious why you don't do the upgrade. If it's personal don't worry, otherwise please share

Well, the TL;DR is that Apple isn't the company they once were.

joyarzun commented 4 years ago

It works but it a little weird to set an env var. Anyways thank you very much

➜  ~ export HOMEBREW_FORCE_BREWED_CURL=1
➜  ~ brew cask install beamer
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
brave-browser                   fontgoggles                     navicat-for-mysql               navicat-for-sqlite              trilium-notes
cryptomator                     maccy                           navicat-for-oracle              navicat-premium-essentials
deckset                         marvel                          navicat-for-postgresql          obyte
dropshare                       navicat-for-mariadb             navicat-for-sql-server          proclaim

==> Downloading https://beamer-app.com/resources/downloads/Beamer-3.4.zip
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'beamer'.
==> Installing Cask beamer
==> Moving App 'Beamer.app' to '/Applications/Beamer.app'.
🍺  beamer was successfully installed!
➜  ~ brew cask uninstall beamer
==> Uninstalling Cask beamer
==> Backing App 'Beamer.app' up to '/usr/local/Caskroom/beamer/3.4/Beamer.app'.
==> Removing App '/Applications/Beamer.app'.
==> Purging files for version 3.4 of Cask beamer
➜  ~ unset HOMEBREW_FORCE_BREWED_CURL
➜  ~ rm /Users/joyarzun/Library/Caches/Homebrew/downloads/e8f3565f3d36accbb50b04f5e378d75e4b76de919a74550afa6794ce184b0de0--Beamer-3.4.zip
➜  ~ brew cask install beamer
==> Downloading https://beamer-app.com/resources/downloads/Beamer-3.4.zip
##O#- #
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Error: Download failed on Cask 'beamer' with message: Download failed: https://beamer-app.com/resources/downloads/Beamer-3.4.zip
ran-dall commented 4 years ago

@joyarzun No problem. I haven't seen this required on 10.15 and frankly, it's a bit strange that system curl downloads but brew cask doesn't. As you may be aware, you can set these variables for the settings in zsh configuration and not have to input them all the time.

Good, we could figure something out for you.