1

我正在尝试使用 rvm 在我的机器上安装 ruby​​。我已经安装了rvm。当我使用 $ rvm 要求时

它给出了以下错误。

tahir@tahir:~$ rvm requirements
Installing requirements for ubuntu, might require sudo password.
[sudo] password for suhail: 
Ign http://pk.archive.ubuntu.com quantal InRelease
Ign http://security.ubuntu.com quantal-security InRelease
Ign http://extras.ubuntu.com quantal InRelease
Hit http://extras.ubuntu.com quantal Release.gpg
Ign http://pk.archive.ubuntu.com quantal-updates InRelease
Hit http://security.ubuntu.com quantal-security Release.gpg
Hit http://extras.ubuntu.com quantal Release
Hit http://security.ubuntu.com quantal-security Release
Ign http://pk.archive.ubuntu.com quantal-backports InRelease
Hit http://extras.ubuntu.com quantal/main Sources
Hit http://security.ubuntu.com quantal-security/main Sources
Hit http://extras.ubuntu.com quantal/main i386 Packages
Hit http://pk.archive.ubuntu.com quantal Release.gpg
Hit http://security.ubuntu.com quantal-security/restricted Sources
Hit http://security.ubuntu.com quantal-security/universe Sources
Hit http://pk.archive.ubuntu.com quantal-updates Release.gpg
Hit http://security.ubuntu.com quantal-security/multiverse Sources
Hit http://pk.archive.ubuntu.com quantal-backports Release.gpg
Hit http://security.ubuntu.com quantal-security/main i386 Packages
Hit http://security.ubuntu.com quantal-security/restricted i386 Packages
Hit http://pk.archive.ubuntu.com quantal Release
Hit http://security.ubuntu.com quantal-security/universe i386 Packages
Ign http://extras.ubuntu.com quantal/main Translation-en_US
Hit http://pk.archive.ubuntu.com quantal-updates Release
Hit http://security.ubuntu.com quantal-security/multiverse i386 Packages
Ign http://extras.ubuntu.com quantal/main Translation-en
Hit http://pk.archive.ubuntu.com quantal-backports Release
Hit http://security.ubuntu.com quantal-security/main Translation-en
Hit http://pk.archive.ubuntu.com quantal/main Sources
Hit http://security.ubuntu.com quantal-security/multiverse Translation-en
Hit http://pk.archive.ubuntu.com quantal/restricted Sources
Hit http://pk.archive.ubuntu.com quantal/universe Sources
Hit http://security.ubuntu.com quantal-security/restricted Translation-en
Hit http://pk.archive.ubuntu.com quantal/multiverse Sources
Hit http://pk.archive.ubuntu.com quantal/main i386 Packages
Hit http://security.ubuntu.com quantal-security/universe Translation-en
Hit http://pk.archive.ubuntu.com quantal/restricted i386 Packages
Hit http://pk.archive.ubuntu.com quantal/universe i386 Packages
Hit http://pk.archive.ubuntu.com quantal/multiverse i386 Packages
Hit http://pk.archive.ubuntu.com quantal/main Translation-en
Hit http://pk.archive.ubuntu.com quantal/multiverse Translation-en
Ign http://security.ubuntu.com quantal-security/main Translation-en_US
Hit http://pk.archive.ubuntu.com quantal/restricted Translation-en
Ign http://security.ubuntu.com quantal-security/multiverse Translation-en_US
Ign http://security.ubuntu.com quantal-security/restricted Translation-en_US
Ign http://security.ubuntu.com quantal-security/universe Translation-en_US
Hit http://pk.archive.ubuntu.com quantal/universe Translation-en
Hit http://pk.archive.ubuntu.com quantal-updates/main Sources
Hit http://pk.archive.ubuntu.com quantal-updates/restricted Sources
Hit http://pk.archive.ubuntu.com quantal-updates/universe Sources
Hit http://pk.archive.ubuntu.com quantal-updates/multiverse Sources
Hit http://pk.archive.ubuntu.com quantal-updates/main i386 Packages
Hit http://pk.archive.ubuntu.com quantal-updates/restricted i386 Packages
Hit http://pk.archive.ubuntu.com quantal-updates/universe i386 Packages
Hit http://pk.archive.ubuntu.com quantal-updates/multiverse i386 Packages
Hit http://pk.archive.ubuntu.com quantal-updates/main Translation-en
Hit http://pk.archive.ubuntu.com quantal-updates/multiverse Translation-en
Hit http://pk.archive.ubuntu.com quantal-updates/restricted Translation-en
Hit http://pk.archive.ubuntu.com quantal-updates/universe Translation-en
Hit http://pk.archive.ubuntu.com quantal-backports/main Sources
Hit http://pk.archive.ubuntu.com quantal-backports/restricted Sources
Hit http://pk.archive.ubuntu.com quantal-backports/universe Sources
Hit http://pk.archive.ubuntu.com quantal-backports/multiverse Sources
Hit http://pk.archive.ubuntu.com quantal-backports/main i386 Packages
Hit http://pk.archive.ubuntu.com quantal-backports/restricted i386 Packages
Hit http://pk.archive.ubuntu.com quantal-backports/universe i386 Packages
Hit http://pk.archive.ubuntu.com quantal-backports/multiverse i386 Packages
Hit http://pk.archive.ubuntu.com quantal-backports/main Translation-en
Hit http://pk.archive.ubuntu.com quantal-backports/multiverse Translation-en
Hit http://pk.archive.ubuntu.com quantal-backports/restricted Translation-en
Hit http://pk.archive.ubuntu.com quantal-backports/universe Translation-en
Ign http://pk.archive.ubuntu.com quantal/main Translation-en_US
Ign http://pk.archive.ubuntu.com quantal/multiverse Translation-en_US
Ign http://pk.archive.ubuntu.com quantal/restricted Translation-en_US
Ign http://pk.archive.ubuntu.com quantal/universe Translation-en_US
Ign http://pk.archive.ubuntu.com quantal-updates/main Translation-en_US
Ign http://pk.archive.ubuntu.com quantal-updates/multiverse Translation-en_US
Ign http://pk.archive.ubuntu.com quantal-updates/restricted Translation-en_US
Ign http://pk.archive.ubuntu.com quantal-updates/universe Translation-en_US
Ign http://pk.archive.ubuntu.com quantal-backports/main Translation-en_US
Ign http://pk.archive.ubuntu.com quantal-backports/multiverse Translation-en_US
Ign http://pk.archive.ubuntu.com quantal-backports/restricted Translation-en_US
Ign http://pk.archive.ubuntu.com quantal-backports/universe Translation-en_US
Reading package lists...
Installing required packages: gawk, g++, libreadline6-dev, zlib1g-dev, libssl-dev, libyaml-dev, libsqlite3-dev, sqlite3, libxml2-dev, libxslt1-dev, autoconf, libgdbm-dev, libncurses5-dev, automake, libtool, bison, libffi-dev..................
Error running 'requirements_debian_libs_install gawk g++ libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libgdbm-dev libncurses5-dev automake libtool bison libffi-dev',
please read /home/suhail/.rvm/log/1370081458_package_install_gawk_g++_libreadline6-dev_zlib1g-dev_libssl-dev_libyaml-dev_libsqlite3-dev_sqlite3_libxml2-dev_libxslt1-dev_autoconf_libgdbm-dev_libncurses5-dev_automake_libtool_bison_libffi-dev.log

我试图用 sudo apt-get install 删除 requirements_debian_libs_install 但它仍然失败

我也尝试使用 $ sudo apt-get -f install 但它仍然中断(说依赖项未满足)并且没有安装。

应该怎么做才能修复错误?

4

1 回答 1

1

我猜你已经通过 apt-get 安装了 rvm

如果是这样,请将其删除并通过https://rvm.io/rvm/install上的指南重新安装此命令将使用 ruby​​ 安装 rvm(稳定)

\curl -L https://get.rvm.io | bash -s stable --ruby

如果需要,您可以指定 ruby​​ 的哪个版本,或者之后安装您想要的任何版本。rvm 使用

rvm use 1.9.3

另外,我建议每个用户安装它,而不是全局安装。除非您有任何特殊需要为每个用户安装它。

于 2013-07-12T04:43:26.383 回答