ruby - ubuntu12.04 安装 rvm 错误
黄舟
黄舟 2017-04-21 11:16:16
0
2
671

想装rvm,使用如下命令:

curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install 1.9.3

结果安装失败,提示如下:

Searching for binary rubies, this might take some time.
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system - using Zsh, can not show progress, be patient...
Error running 'requirements_debian_update_system ruby-1.9.3-p448',
please read /home/songwei/.rvm/log/1378687043_ruby-1.9.3-    p448/update_system.log
Requirements installation failed with status: 100.

请问如何解决呢?网上貌似没什么方法.....

下面是log文件:

命中 http://cn.archive.ubuntu.com precise Release.gpg
命中 http://cn.archive.ubuntu.com precise-updates Release.gpg
命中 http://cn.archive.ubuntu.com precise-backports Release.gpg
命中 http://cn.archive.ubuntu.com precise Release
命中 http://cn.archive.ubuntu.com precise-updates Release
命中 http://cn.archive.ubuntu.com precise-backports Release
命中 http://cn.archive.ubuntu.com precise/main Sources
命中 http://cn.archive.ubuntu.com precise/restricted Sources
命中 http://cn.archive.ubuntu.com precise/universe Sources
命中 http://cn.archive.ubuntu.com precise/multiverse Sources
命中 http://cn.archive.ubuntu.com precise/main i386 Packages
命中 http://cn.archive.ubuntu.com precise/restricted i386 Packages
命中 http://cn.archive.ubuntu.com precise/universe i386 Packages
命中 http://cn.archive.ubuntu.com precise/multiverse i386 Packages
命中 http://cn.archive.ubuntu.com precise/main TranslationIndex
命中 http://cn.archive.ubuntu.com precise/multiverse TranslationIndex
命中 http://cn.archive.ubuntu.com precise/restricted TranslationIndex
命中 http://cn.archive.ubuntu.com precise/universe TranslationIndex
命中 http://cn.archive.ubuntu.com precise-updates/main Sources
命中 http://cn.archive.ubuntu.com precise-updates/restricted Sources
命中 http://cn.archive.ubuntu.com precise-updates/universe Sources
命中 http://cn.archive.ubuntu.com precise-updates/multiverse Sources
命中 http://cn.archive.ubuntu.com precise-updates/main i386 Packages
命中 http://cn.archive.ubuntu.com precise-updates/restricted i386 Packages
命中 http://cn.archive.ubuntu.com precise-updates/universe i386 Packages
命中 http://cn.archive.ubuntu.com precise-updates/multiverse i386 Packages
命中 http://cn.archive.ubuntu.com precise-updates/main TranslationIndex
命中 http://cn.archive.ubuntu.com precise-updates/multiverse TranslationIndex
命中 http://cn.archive.ubuntu.com precise-updates/restricted TranslationIndex
命中 http://cn.archive.ubuntu.com precise-updates/universe TranslationIndex
命中 http://cn.archive.ubuntu.com precise-backports/main Sources
命中 http://cn.archive.ubuntu.com precise-backports/restricted Sources
命中 http://cn.archive.ubuntu.com precise-backports/universe Sources
命中 http://cn.archive.ubuntu.com precise-backports/multiverse Sources
命中 http://cn.archive.ubuntu.com precise-backports/main i386 Packages
命中 http://cn.archive.ubuntu.com precise-backports/restricted i386 Packages
命中 http://cn.archive.ubuntu.com precise-backports/universe i386 Packages
命中 http://cn.archive.ubuntu.com precise-backports/multiverse i386 Packages
命中 http://cn.archive.ubuntu.com precise-backports/main TranslationIndex
命中 http://cn.archive.ubuntu.com precise-backports/multiverse TranslationIndex
命中 http://cn.archive.ubuntu.com precise-backports/restricted TranslationIndex
命中 http://cn.archive.ubuntu.com precise-backports/universe TranslationIndex
命中 http://cn.archive.ubuntu.com precise/main Translation-zh_CN
命中 http://cn.archive.ubuntu.com precise/main Translation-en
命中 http://cn.archive.ubuntu.com precise/multiverse Translation-zh_CN
命中 http://cn.archive.ubuntu.com precise/multiverse Translation-en
命中 http://cn.archive.ubuntu.com precise/restricted Translation-zh_CN
命中 http://cn.archive.ubuntu.com precise/restricted Translation-en
命中 http://cn.archive.ubuntu.com precise/universe Translation-zh_CN
命中 http://cn.archive.ubuntu.com precise/universe Translation-en
命中 http://cn.archive.ubuntu.com precise-updates/main Translation-zh_CN
命中 http://cn.archive.ubuntu.com precise-updates/main Translation-en
命中 http://cn.archive.ubuntu.com precise-updates/multiverse Translation-zh_CN
命中 http://cn.archive.ubuntu.com precise-updates/multiverse Translation-en
命中 http://cn.archive.ubuntu.com precise-updates/restricted Translation-zh_CN
命中 http://cn.archive.ubuntu.com precise-updates/restricted Translation-en
命中 http://cn.archive.ubuntu.com precise-updates/universe Translation-zh_CN
命中 http://cn.archive.ubuntu.com precise-updates/universe Translation-en
命中 http://cn.archive.ubuntu.com precise-backports/main Translation-en
命中 http://cn.archive.ubuntu.com precise-backports/multiverse Translation-en
命中 http://cn.archive.ubuntu.com precise-backports/restricted Translation-en
命中 http://cn.archive.ubuntu.com precise-backports/universe Translation-en
命中 http://security.ubuntu.com precise-security Release.gpg
命中 http://download.virtualbox.org precise Release.gpg
命中 http://ppa.launchpad.net precise Release.gpg
命中 http://ppa.launchpad.net precise Release.gpg
命中 http://ppa.launchpad.net precise Release.gpg
命中 http://dl.google.com stable Release.gpg
命中 http://download.virtualbox.org precise Release
命中 http://security.ubuntu.com precise-security Release
命中 http://dl.google.com stable Release
命中 http://ppa.launchpad.net precise Release.gpg
命中 http://ppa.launchpad.net precise Release.gpg
命中 http://ppa.launchpad.net precise Release.gpg
命中 http://ppa.launchpad.net precise Release.gpg
命中 http://ppa.launchpad.net precise Release.gpg
命中 http://ppa.launchpad.net precise Release.gpg
命中 http://ppa.launchpad.net precise Release.gpg
命中 http://ppa.launchpad.net precise Release.gpg
命中 http://ppa.launchpad.net precise Release.gpg
命中 http://download.virtualbox.org precise/contrib i386 Packages
命中 http://dl.google.com stable/main i386 Packages
命中 http://security.ubuntu.com precise-security/main Sources
忽略 http://download.virtualbox.org precise/contrib TranslationIndex
忽略 http://dl.google.com stable/main TranslationIndex
命中 http://ppa.launchpad.net precise Release
命中 http://ppa.launchpad.net precise Release
命中 http://ppa.launchpad.net precise Release
命中 http://ppa.launchpad.net precise Release
命中 http://ppa.launchpad.net precise Release
命中 http://ppa.launchpad.net precise Release
命中 http://security.ubuntu.com precise-security/restricted Sources
命中 http://security.ubuntu.com precise-security/universe Sources
命中 http://security.ubuntu.com precise-security/multiverse Sources
命中 http://security.ubuntu.com precise-security/main i386 Packages
命中 http://security.ubuntu.com precise-security/restricted i386 Packages
命中 http://security.ubuntu.com precise-security/universe i386 Packages
命中 http://security.ubuntu.com precise-security/multiverse i386 Packages
命中 http://security.ubuntu.com precise-security/main TranslationIndex
命中 http://security.ubuntu.com precise-security/multiverse TranslationIndex
命中 http://security.ubuntu.com precise-security/restricted TranslationIndex
命中 http://ppa.launchpad.net precise Release
命中 http://ppa.launchpad.net precise Release
命中 http://ppa.launchpad.net precise Release
命中 http://ppa.launchpad.net precise Release
命中 http://security.ubuntu.com precise-security/universe TranslationIndex
命中 http://security.ubuntu.com precise-security/main Translation-en
命中 http://security.ubuntu.com precise-security/multiverse Translation-en
命中 http://ppa.launchpad.net precise Release
命中 http://ppa.launchpad.net precise Release
命中 http://ppa.launchpad.net precise/main Sources
命中 http://ppa.launchpad.net precise/main i386 Packages
忽略 http://ppa.launchpad.net precise/main TranslationIndex
命中 http://ppa.launchpad.net precise/main Sources
命中 http://ppa.launchpad.net precise/main i386 Packages
命中 http://security.ubuntu.com precise-security/restricted Translation-en
忽略 http://ppa.launchpad.net precise/main TranslationIndex
命中 http://ppa.launchpad.net precise/main Sources
命中 http://ppa.launchpad.net precise/main i386 Packages
忽略 http://ppa.launchpad.net precise/main TranslationIndex
命中 http://ppa.launchpad.net precise/main i386 Packages
忽略 http://ppa.launchpad.net precise/main TranslationIndex
命中 http://ppa.launchpad.net precise/main Sources
命中 http://ppa.launchpad.net precise/main i386 Packages
命中 http://security.ubuntu.com precise-security/universe Translation-en
忽略 http://ppa.launchpad.net precise/main TranslationIndex
命中 http://ppa.launchpad.net precise/main Sources
命中 http://ppa.launchpad.net precise/main i386 Packages
忽略 http://ppa.launchpad.net precise/main TranslationIndex
命中 http://ppa.launchpad.net precise/main i386 Packages
忽略 http://ppa.launchpad.net precise/main TranslationIndex
命中 http://ppa.launchpad.net precise/main Sources
命中 http://ppa.launchpad.net precise/main i386 Packages
忽略 http://ppa.launchpad.net precise/main TranslationIndex
命中 http://ppa.launchpad.net precise/main Sources
命中 http://ppa.launchpad.net precise/main i386 Packages
忽略 http://ppa.launchpad.net precise/main TranslationIndex
命中 http://ppa.launchpad.net precise/main i386 Packages
忽略 http://ppa.launchpad.net precise/main TranslationIndex
命中 http://ppa.launchpad.net precise/main Sources
命中 http://ppa.launchpad.net precise/main i386 Packages
忽略 http://ppa.launchpad.net precise/main TranslationIndex
命中 http://ppa.launchpad.net precise/main i386 Packages
忽略 http://ppa.launchpad.net precise/main TranslationIndex
忽略 http://dl.google.com stable/main Translation-zh_CN
忽略 http://dl.google.com stable/main Translation-zh
忽略 http://dl.google.com stable/main Translation-en
忽略 http://download.virtualbox.org precise/contrib Translation-zh_CN
忽略 http://download.virtualbox.org precise/contrib Translation-zh
忽略 http://download.virtualbox.org precise/contrib Translation-en
忽略 http://ppa.launchpad.net precise/main Translation-zh_CN
忽略 http://ppa.launchpad.net precise/main Translation-zh
忽略 http://ppa.launchpad.net precise/main Translation-en
忽略 http://ppa.launchpad.net precise/main Translation-zh_CN
忽略 http://ppa.launchpad.net precise/main Translation-zh
忽略 http://ppa.launchpad.net precise/main Translation-en
忽略 http://ppa.launchpad.net precise/main Translation-zh_CN
忽略 http://ppa.launchpad.net precise/main Translation-zh
忽略 http://ppa.launchpad.net precise/main Translation-en
忽略 http://ppa.launchpad.net precise/main Translation-zh_CN
忽略 http://ppa.launchpad.net precise/main Translation-zh
忽略 http://ppa.launchpad.net precise/main Translation-en
忽略 http://ppa.launchpad.net precise/main Translation-zh_CN
忽略 http://ppa.launchpad.net precise/main Translation-zh
忽略 http://ppa.launchpad.net precise/main Translation-en
忽略 http://ppa.launchpad.net precise/main Translation-zh_CN
忽略 http://ppa.launchpad.net precise/main Translation-zh
忽略 http://ppa.launchpad.net precise/main Translation-en
忽略 http://ppa.launchpad.net precise/main Translation-zh_CN
忽略 http://ppa.launchpad.net precise/main Translation-zh
忽略 http://ppa.launchpad.net precise/main Translation-en
忽略 http://ppa.launchpad.net precise/main Translation-zh_CN
忽略 http://ppa.launchpad.net precise/main Translation-zh
忽略 http://ppa.launchpad.net precise/main Translation-en
忽略 http://ppa.launchpad.net precise/main Translation-zh_CN
忽略 http://ppa.launchpad.net precise/main Translation-zh
忽略 http://ppa.launchpad.net precise/main Translation-en
忽略 http://ppa.launchpad.net precise/main Translation-zh_CN
忽略 http://ppa.launchpad.net precise/main Translation-zh
忽略 http://ppa.launchpad.net precise/main Translation-en
忽略 http://ppa.launchpad.net precise/main Translation-zh_CN
忽略 http://ppa.launchpad.net precise/main Translation-zh
忽略 http://ppa.launchpad.net precise/main Translation-en
忽略 http://ppa.launchpad.net precise/main Translation-zh_CN
忽略 http://ppa.launchpad.net precise/main Translation-zh
忽略 http://ppa.launchpad.net precise/main Translation-en
获取:1 http://extras.ubuntu.com precise Release.gpg [72 B]
命中 http://extras.ubuntu.com precise Release
忽略 http://extras.ubuntu.com precise/main TranslationIndex
错误 http://extras.ubuntu.com precise/main Sources
  不能连接到 extras.ubuntu.com:http: [IP: fe80::a2b3:ccff:fee0:d988 80]
错误 http://extras.ubuntu.com precise/main i386 Packages
  不能连接到 extras.ubuntu.com:http: [IP: fe80::a2b3:ccff:fee0:d988 80]
错误 http://extras.ubuntu.com precise/main Translation-zh_CN
  不能连接到 extras.ubuntu.com:http: [IP: fe80::a2b3:ccff:fee0:d988 80]
错误 http://extras.ubuntu.com precise/main Translation-zh
  不能连接到 extras.ubuntu.com:http: [IP: fe80::a2b3:ccff:fee0:d988 80]
错误 http://extras.ubuntu.com precise/main Translation-en
  不能连接到 extras.ubuntu.com:http: [IP: fe80::a2b3:ccff:fee0:d988 80]
下载 72 B,耗时 1分 33秒 (0 B/s)
W: 无法下载 http://extras.ubuntu.com/ubuntu/dists/precise/main/source/Sources  不能连接到 extras.ubuntu.com:http: [IP: fe80::a2b3:ccff:fee0:d988 80]

W: 无法下载 http://extras.ubuntu.com/ubuntu/dists/precise/main/binary-i386/Packages  不能连接到 extras.ubuntu.com:http: [IP: fe80::a2b3:ccff:fee0:d988 80]

W: 无法下载 http://extras.ubuntu.com/ubuntu/dists/precise/main/i18n/Translation-zh_CN  不能连接到 extras.ubuntu.com:http: [IP: fe80::a2b3:ccff:fee0:d988 80]

W: 无法下载 http://extras.ubuntu.com/ubuntu/dists/precise/main/i18n/Translation-zh  不能连接到 extras.ubuntu.com:http: [IP: fe80::a2b3:ccff:fee0:d988 80]

W: 无法下载 http://extras.ubuntu.com/ubuntu/dists/precise/main/i18n/Translation-en  不能连接到 extras.ubuntu.com:http: [IP: fe80::a2b3:ccff:fee0:d988 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
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
黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

全部回复(2)
Peter_Zhu
 不能连接到 extras.ubuntu.com:http: [IP: fe80::a2b3:ccff:fee0:d988 80]

应该是这里的问题.好像相当与执行

sudo apt-get update && sudo apt-get install blablabla

没有执行完就出错了.

apt-get install

就没有执行.RVM的依赖包没有装上

黄舟

可以尝试把ubuntu的apt-get源切换到163等国内的镜像上

另外, rvm安装ruby前可以rvm autolibs enable 自动安装依赖

把ruby的源切换到taobao的服务器也会安装更快~ http://ruby.taobao.org

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板