在Ubuntu 14.04.4上安装rvm rails:
\curl -L https://get.rvm.io | bash -s stable --ruby产出显示:
rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/14.04/x86_64/ruby-2.2.1.tar.bz2最后,错误:
The following packages have unmet dependencies:
libffi-dev : Depends: libffi6 (= 3.1~rc1+r3.0.13-12) but 3.1~rc1+r3.0.13-12ubuntu0.1 is to be installed我试过:
sudo apt-get update
sudo apt-get upgrade
\curl -L https://get.rvm.io | bash -s stable --ruby解决不了。
My /etc/apt/sources.list . like如下所示:
deb http://archive.ubuntu.com/ubuntu trusty main multiverse universe restricted
deb http://archive.ubuntu.com/ubuntu trusty-security main multiverse universe restricted根据我搜索的内容,我需要下载3.1~rc1+r3.0.13-12ubuntu0.1包并手动安装它?如果是这样,我该怎么做呢?
另外,我想了解为什么这个包不是最新版本的--也许是个愚蠢的问题,但我不明白原因是什么?
使用apt-get安装这些软件包:
$ sudo apt-get install libffi6
libffi6 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ sudo apt-get install libffi-dev
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libffi-dev : Depends: libffi6 (= 3.1~rc1+r3.0.13-12) but 3.1~rc1+r3.0.13-12ubuntu0.1 is to be installed
E: Unable to correct problems, you have held broken packages. 发布于 2016-03-10 02:02:48
最后,我使用了智能,并选择了非默认选项来降低libffi6包的级别,以便安装libffi-dev:
sudo aptitude install libffi-dev发布于 2016-03-09 08:01:46
尝试安装libffi6。
apt-获取安装libffi6
如果它不起作用,试着这样做:
将deb http://cz.archive.ubuntu.com/ubuntu trusty main添加到/etc/apt/sources.list
然后:
apt-get update && apt-get upgrade
apt-get install libffi6https://stackoverflow.com/questions/35885808
复制相似问题