Error while installing RVM on ubuntu 11.04. Seems to be git clone's error

别等时光非礼了梦想. 提交于 2019-12-25 02:21:42

问题


When I try to install RVM the following error shows up:

$ 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://

This is a git clone error I'm getting recently. e.g When I try to clone nodejs.

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

What is the problem?


回答1:


It would seem you're having some sort of network issue that is preventing you from retrieving the Git repository. The RVM script attempts to clone the repository first using git clone --depth 1 git://github.com/wayneeseguin/rvm.git, and if that fails, using git clone https://github.com/wayneeseguin/rvm.git. Git uses libcurl. The result=56 part of the RPC failed error is the libcurl error code; 56 means Failure with receiving network data.. The HTTP code = 100 part is the HTTP server status code that was returned to you; 100 means The client SHOULD continue with its request..

Your best bet is probably to start a network traffic sniffer (on Ubuntu, you can use Wireshark) to see exactly what packets are being transmitted/received on your workstation. Try installing RVM on different workstations in your network and on different networks. I did not have any issues on my machine.



来源:https://stackoverflow.com/questions/7575229/error-while-installing-rvm-on-ubuntu-11-04-seems-to-be-git-clones-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!