0

当我尝试安装 RVM 时出现以下错误:

$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
Cloning into rvm...
fatal: The remote end hung up unexpectedly
Cloning into rvm...
error: RPC failed; result=56, HTTP code = 100
fatal: The remote end hung up unexpectedly

ERROR: Unable to clone the RVM repository, attempted both git:// and https://

这是git clone我最近遇到的一个错误。例如,当我尝试克隆 nodejs 时。

error: RPC failed; result=56, HTTP code = 100
fatal: The remote end hung up unexpectedly

问题是什么?

4

1 回答 1

1

您似乎遇到了某种网络问题,导致您无法检索 Git 存储库。RVM 脚本首先尝试使用 克隆存储库 git clone --depth 1 git://github.com/wayneeseguin/rvm.git,如果失败,则使用. Git 使用 libcurl。错误的部分是 libcurl错误代码;意味着。该部分是返回给您的HTTP 服务器状态码;意味着。git clone https://github.com/wayneeseguin/rvm.gitresult=56RPC failed56Failure with receiving network data.HTTP code = 100100The client SHOULD continue with its request.

您最好的选择可能是启动网络流量嗅探器(在 Ubuntu 上,您可以使用Wireshark)来准确查看工作站上正在传输/接收的数据包。尝试在网络中的不同工作站和不同网络上安装 RVM。我的机器上没有任何问题。

于 2011-10-03T19:45:55.370 回答