我把Ubuntu Saucy Salamander(13.10)作为操作系统并试图做
rvm requirements
但总是在“更新系统”阶段出错。这是我的日志:
rvm requirements
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system...............
Error running 'requirements_debian_update_system ',
showing last 15 lines of /home/uhtshka/.rvm/log/1388083633/update_system.log
404 Not Found
Err http://ppa.launchpad.net saucy/main i386 Packages
404 Not Found
Ign http://ppa.launchpad.net saucy/main Translation-en_US
Ign http://ppa.launchpad.net saucy/main Translation-en
W: Failed to fetch http://ppa.launchpad.net/upubuntu-com/conky/ubuntu/dists/saucy/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/upubuntu-com/conky/ubuntu/dists/saucy/main/binary-i386/Packages 404 Not Found
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
Requirements installation failed with status: 100.
此处已经尝试过的解决方案:
http://stackoverflow.com/questions/18947072/error-while-installing-ruby-using-rvm
http://stackoverflow.com/questions/19373560/why-do-i-get-a-requirements-error-when-trying-to-install-ruby-with-rvm
http://stackoverflow.com/questions/19373560/why-do-i-get-a-requirements-error-when-trying-to-install-ruby-with-rvm/19375476#19375476
https://gist.github.com/pcjpcj2/5443017
但这一切对我都有用。有人可以帮我吗?
更新1:
也尝试过头:
rvm get head --autolibs=3
Downloading https://get.rvm.io
Downloading https://github.com/wayneeseguin/rvm/archive/master.tar.gz
Upgrading the RVM installation in /home/uhtshka/.rvm/
RVM PATH line found in /home/uhtshka/.profile /home/uhtshka/.bashrc /home/uhtshka/.zshrc.
RVM sourcing line found in /home/uhtshka/.bash_profile /home/uhtshka/.zlogin.
Upgrade of RVM in /home/uhtshka/.rvm/ is complete.
# uhtshka,
#
# Thank you for using RVM!
# We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.
In case of problems: http://rvm.io/help and https://twitter.com/rvm_io
Upgrade Notes:
* No new notes to display.
需求阶段的相同问题
答案 0 :(得分:2)
我按照这个建议解决了我的问题:
$ rvm autolibs read-fail
$ rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/13.10/x86_64/ruby-1.9.3-p484.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Missing required packages: gawk libgdbm-dev libffi-dev
RVM autolibs is now configured with mode '2' => 'check and stop if missing',
please run `rvm autolibs enable` to let RVM do its job or run and read `rvm autolibs [help]`
or visit https://rvm.io/rvm/autolibs for more information.
Requirements installation failed with status: 1.
之后我刚安装了错过的需求包,rvm要求的结果是:
Checking requirements for ubuntu.
Requirements installation successful.
感谢大家的关注!
答案 1 :(得分:1)
我通过做 -
解决了这个问题$ rvm autolibs disable
$ rvm install 1.8.7
(手动抓取并手动安装丢失的包装,在我的情况下,以下包装丢失了)
$ sudo apt get install gawk libreadline6-dev zlib1g-dev libssl-dev \
libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev \
libncurses5-dev automake libtool bison libffi-dev
$ rvm requirements
$ curl -sSL https://get.rvm.io | bash -s stable --ruby
希望您通过上述步骤获得成功。
答案 2 :(得分:0)
下面的解决方案是解决rvm requirment错误返回100
如果在/etc/apt/sources.list中注释了任何deb命令,而不是尝试从/etc/apt/sources.list中取消注释该命令
命令是:
$ sudo vi /etc/apt/sources.list
如果问题没有解决,请将sources.list文件替换为其他Ubuntu的sources.list
命令是:
$ mv /etc/apt/sources.list
请在执行此操作前进行备份
命令是:
$ cp /etc/apt/sources.list sources_backup.list
问题应该在这个时候解决,如果不是重新安装Ubuntu。
注意:如果sources.list文件已损坏,则会导致安装其他软件包出现问题。
答案 3 :(得分:-1)
我是通过以下方式完成的:
$ rvm autolibs disable
$ rvm install 1.9.3