gpt4 book ai didi

git - 无法在我的 ubuntu 机器上安装 linuxbrew

转载 作者:行者123 更新时间:2023-12-04 18:50:35 25 4
gpt4 key购买 nike

当我尝试安装 Linux brew 时,我遇到了权限问题。

以下是我收到的错误消息。

Press RETURN to continue or any other key to abort
==> Downloading and installing Linuxbrew...
/home/linuxbrew/.linuxbrew/Homebrew/.git/branches/: Permission denied
Failed during: git init -q

我试图设置文件夹权限,但它不起作用。
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"

Press RETURN to continue or any other key to abort
==> Downloading and installing Linuxbrew...
/home/linuxbrew/.linuxbrew/Homebrew/.git/branches/: Permission denied
Failed during: git init -q

最佳答案

一、sudo chmod 755 /home/linuxbrew/将在 /home/linuxbrew/ 上申请 755仅,不在子文件夹上。

二、除了chmod ,查看owner/home/linuxbrew/及其子文件夹。
例如见 Linuxbrew/brew issue 550 :

It was caused by having an existing /home/linuxbrew/.linuxbrew/Homebrew directory that is not owned by you.
PR 22 should fix that.

关于git - 无法在我的 ubuntu 机器上安装 linuxbrew,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56876215/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com