今天,我试图在我刚安装的Linux上安装Homebrew。我像往常一样安装了curl和git,但是当我试图安装Homebrew时,我在我的终端中得到了这样的信息:
david@david-ThinkPad-T460p:~$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
==> Checking for `sudo` access (which may request your password)...
==> This script will install:
/home/linuxbrew/.linuxbrew/bin/brew
/home/linuxbrew/.linuxbrew/share/doc/homebrew
/home/linuxbrew/.linuxbrew/share/man/man1/brew.1
/home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
/home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
/home/linuxbrew/.linuxbrew/Homebrew
==> HOMEBREW_BREW_GIT_REMOTE is set to a non-default URL:
... will be used as the Homebrew/brew Git remote.
==> HOMEBREW_CORE_GIT_REMOTE is set to a non-default URL:
... will be used as the Homebrew/homebrew-core Git remote.
Press RETURN/ENTER to continue or any other key to abort:
==> /usr/bin/sudo /bin/chown -R david:david /home/linuxbrew/.linuxbrew/Homebrew
==> Downloading and installing Homebrew...
fatal: '...' does not appear to be a git repository
fatal: Konnte nicht vom Remote-Repository lesen.
Bitte stellen Sie sicher, dass die korrekten Zugriffsberechtigungen bestehen
und das Repository existiert.
Failed during: git fetch --force origin有人能帮我吗,因为我对这门学科还很陌生,而且还在使用Linux呢?
发布于 2022-10-03 17:37:20
跑
unset HOMEBREW_BREW_GIT_REMOTE HOMEBREW_CORE_GIT_REMOTE然后再运行安装程序。
https://stackoverflow.com/questions/73694356
复制相似问题