Maison  >  Questions et réponses  >  le corps du texte

ruby - ubuntu12.04 安装 rvm 错误

想装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
黄舟黄舟2762 Il y a quelques jours663

répondre à tous(2)je répondrai

  • 天蓬老师

    天蓬老师2017-04-21 11:18:16

     不能连接到 extras.ubuntu.com:http: [IP: fe80::a2b3:ccff:fee0:d988 80]
    

    Cela devrait être le problème ici. Cela semble être assez lié à l'exécution

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

    Une erreur s'est produite avant la fin de l'exécution.

    apt-get install

    Il n'a pas été exécuté. Le package de dépendances de RVM n'a pas été installé

    répondre
    0
  • 黄舟

    黄舟2017-04-21 11:18:16

    Vous pouvez essayer de basculer la source apt-get d'ubuntu vers un miroir domestique tel que 163

    De plus, rvm peut rvm autolibs enable installer automatiquement les dépendances avant d'installer Ruby

    Basculer la source Ruby vers le serveur de Taobao rendra également l'installation plus rapide~ http://ruby.taobao.org

    répondre
    0
  • Annulerrépondre