想裝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
應該是這裡的問題.好像相當與執行
沒有執行完就出錯了.
apt-get install
就沒有執行.RVM的依賴套件沒有裝上
可以試著把ubuntu的apt-get源切換到163等國內的鏡像上
另外, rvm安裝ruby前可以
rvm autolibs enable
自動安裝依賴把ruby的來源切換到taobao的伺服器也會安裝更快~ http://ruby.taobao.org