0

尝试了链接 http://railscasts.com/episodes/200-rails-3-beta-and-rvm


gokul@gokul-laptop:~$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
gokul@gokul-laptop:~$ mkdir -p ~/.rvm/src/ && cd ~/.rvm/src && rm -rf ./rvm/ && git clone git://github.com/wayneeseguin/rvm.git && cd rvm && ./install

The program 'git' is currently not installed.  You can install it by typing:

sudo apt-get install git-core
git: command not found

gokul@gokul-laptop:~/.rvm/src$ sudo apt-get install git-core
[sudo] password for gokul: 
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

gokul@gokul-laptop:~/.rvm/src$ 

任何人?

4

1 回答 1

1

最后一条错误消息 ( E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?) 表示有其他进程一直在锁定 aptitude。

在 aptitude 保持锁定之前,您无法安装任何新软件包。
有 Synaptic 启动吗?如果是这样,您应该关闭它。您是否同时安装任何其他软件包?
您应该等待其他安装停止才能安装 git。

于 2010-04-30T09:59:00.040 回答