1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

fatal: unable to access SSL certificate problem: unable to get local issuer certificate

Posted at

原因

pyenv upgradeしようとしたら
これ実行しろと言われて、実行したらエラー

git -C /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow

エラー内容

[ec2-user@ip-172-31-19-171 .pyenv]$ brew upgrade pyenv
Error: 
  homebrew-core is a shallow clone.
To `brew update`, first run:
  git -C /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
This command may take a few minutes to run due to the large size of the repository.
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!

一時的解決

git config --global http.sslVerify false

man-in-the-middle?攻撃されるぽので、すぐに以下で、戻した方が良いみたい

git config --global http.sslVerify true
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?