在ubuntu 11.04上安装RVM时出错.似乎是git clone的错误 [英] Error while installing RVM on ubuntu 11.04. Seems to be git clone's error

查看:77
本文介绍了在ubuntu 11.04上安装RVM时出错.似乎是git clone的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

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

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

出什么问题了?

推荐答案

似乎您遇到了某种网络问题,这使您无法 从检索Git存储库. RVM脚本试图 首先使用克隆存储库 git clone --depth 1 git://github.com/wayneeseguin/rvm.git,如果失败, 使用git clone https://github.com/wayneeseguin/rvm.git. Git的用途 libcurl . RPC failed错误的result=56部分是 libcurl错误代码56表示Failure with receiving network data.. HTTP code = 100部分是HTTP服务器状态代码 被退还给您; 100表示The client SHOULD continue with its request..

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..

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

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.

这篇关于在ubuntu 11.04上安装RVM时出错.似乎是git clone的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆