ruby-on-rails - RVM稳定版本的安装错误

标签 ruby-on-rails installation rvm runtime-error

我想将RVM与Ruby 1.9.3和Rails 3.2.9一起安装。我尝试使用以下命令安装rvm,

\curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled # Or, --ruby=1.9.3



但是,我收到以下错误。
Upgrade Notes:


  * WARNING: You're using ~/.profile, make sure you load it,
    add the following line to ~/.bash_profile if it exists
    otherwise add it to ~/.bash_login:

      source ~/.profile

  * No new notes to display.

# RVM:  Shell scripts enabling management of multiple ruby environments.
# RTFM: https://rvm.io/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Cheatsheet: http://cheat.errtheblog.com/s/rvm
# Screencast: http://screencasts.org/episodes/how-to-use-rvm

# In case of any issues run 'rvm requirements' or read 'rvm notes'

Upgrade of RVM in /home/local/.rvm/ is complete.

ajesh.co,TION
#
#   Thank you for using RVM!
#   I sincerely hope that RVM helps to make your life easier and
#   more enjoyable!!!
#
# ~Wayne


rvm 1.19.6 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

Searching for binary rubies, this might take some time.
Installing requirements for ubuntu, might require sudo password.
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/

请帮忙。谢谢。 :)-

最佳答案

未安装软件包,因为apt-get在执行时被暂停,从而使apt处于锁定状态。

您可以使用以下方法删除锁定文件

sudo rm /var/lib/apt/lists/lock

您可能还需要删除缓存目录中的锁定文件
sudo rm /var/cache/apt/archives/lock

之后,再次尝试安装命令

关于ruby-on-rails - RVM稳定版本的安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16162192/

相关文章:

ruby-on-rails - 带有 Rails API 应用程序错误的 activeadmin:Admin::DashboardController#index 中的 ArgumentError

ruby-on-rails - 事件管理员多选过滤器

ruby-on-rails - 在 Rails + RSpec 中对 String 对象使用 have_selector

installation - OCaml:安装后无法运行utop

ruby - 无法安装 ruby​​ 2.0.0

ruby-on-rails - 为暂存和生产环境使用不同的 gemset 是个好主意吗?

rvm - 如何使用 bash 脚本更改 RVM gemset?

ruby-on-rails - AbstractController::DoubleRenderError cannot be fixed with “redirect_to and return”

linux - 安装Pymol报错

installation - 确定flash OCX是否安装?