首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >首次自制安装失败

首次自制安装失败
EN

Stack Overflow用户
提问于 2016-12-07 05:26:01
回答 1查看 1.7K关注 0票数 0

我刚刚被介绍给Rails,并按照指示安装"homebrew“(使用Mac 10.11.3)。我试着通过复制粘贴安装代码行的方式安装Homebrew,但是不知怎么的,我收到了一条“失败的”消息(这是我第一次尝试安装)。

我不知道,所以我再次输入了代码行,下面是出现的情况(第二次,我得到了“文件存在”和“失败期间”):

代码语言:javascript
复制
 ==> Downloading and installing Homebrew...
remote: Counting objects: 54, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 54 (delta 45), reused 40 (delta 33), pack-reused 0
Unpacking objects: 100% (54/54), done.
error: cannot lock ref 'refs/remotes/origin/master': Unable to 
create '/usr/local/Homebrew/.git/refs/remotes/origin/master.lock':
File exists.

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
From https://github.com/Homebrew/brew
! [new branch]      master     -> origin/master  (unable to update
local ref)
Failed during: git fetch origin master:refs/remotes/origin/master --
tags --force --depth=1

我对发展完全陌生,不知道该怎么做。有人有小费吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-12-07 05:31:27

删除此文件

/usr/local/Homebrew/.git/refs/remotes/origin/master.lock

试一试

代码语言:javascript
复制
rm -f /usr/local/Homebrew/.git/refs/remotes/origin/master.lock

然后再试

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41010011

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档