brew install给出git@github.com:权限被拒绝(公钥)

时间:2019-07-31 07:37:14

标签: homebrew

我正在自制软件,并且在更新时,由于某些错误,我已将其卸载。因此,一旦我再次开始安装,它就会引发以下错误。

MacBook-Pro:~ admin$ /usr/bin/ruby -e "$(curl -fsSL 
https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew

Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Failed during: git fetch origin master:refs/remotes/origin/master --tags -- 
force
sudo: /private/etc/sudoers.d is owned by uid 503, should be 0
MacBook-Pro:~ admin$ ruby -e "$(curl -fsSL 
https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Failed to locate Homebrew!
MacBook-Pro:~ admin$

0 个答案:

没有答案