这是控制台输出:
sergio@sergio-VirtualBox:~$ rvm list
rvm rubies
ruby-1.9.3 [ i386 ]
sergio@sergio-VirtualBox:~$ rvm use 1.9.3
Using /usr/share/ruby-rvm/gems/ruby-1.9.3
sergio@sergio-VirtualBox:~$ ruby -v
The program 'ruby' can be found in the following packages:
* ruby1.8
* ruby1.9.1
Try: sudo apt-get install <selected package>
Run Code Online (Sandbox Code Playgroud)
发生什么了?我需要重新启动机器吗?或者它应该立即起作用?我正在使用Ubuntu 11.10,任何帮助表示赞赏.
尝试使用RVM安装任何内容时出现以下错误:
Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/ubuntu/13.04/x86_64/ruby-2.1.1.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system..kshitiz password required for 'apt-get --quiet --yes update':
............................
Error running 'requirements_debian_update_system ruby-2.1.1',
showing last 15 lines of /home/kshitiz/.rvm/log/1400047196_ruby-2.1.1/update_system.log
++ /scripts/functions/logging : rvm_pretty_print() 78 > case "${TERM:-dumb}" in
++ /scripts/functions/logging : rvm_pretty_print() 81 > case "$1" in
++ /scripts/functions/logging : rvm_pretty_print() 83 > [[ -t 2 ]]
++ /scripts/functions/logging : rvm_pretty_print() 83 > return 1
++ /scripts/functions/logging …Run Code Online (Sandbox Code Playgroud) 我正在尝试在我的Ubuntu机器上安装RVM.
我使用curl来获取RVM,但是一些RVM命令(安装,要求)抛出了这个apt-get错误:
There has been error while updating 'apt-get', please give it some time and try again later.
For 404 errors check your sources configured in:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
Run Code Online (Sandbox Code Playgroud)
输入rvm | 头-1返回
rvm is a function
-bash: type: write error: Broken pipe
Run Code Online (Sandbox Code Playgroud)
哪个宝石
/usr/bin/gem
Run Code Online (Sandbox Code Playgroud)
我已经检查了"运行命令作为登录shell"选项
本教程的步骤如下:
sudo apt-get install curl
curl -L get.rvm.io | bash -s stable --auto
. ~/.bash_profile
rvm requirements - doesn't work properly
Run Code Online (Sandbox Code Playgroud)
我也看过官方的RVM文档,但它看起来非常相似.
有任何想法吗?
更新:我设法做到了.我禁用了所有第三方ppa网址,并且顺利安装.