Installing rvm rails on Ubuntu 14.04.4:
在Ubuntu 14.04.4上安装rvm rails:
\curl -L https://get.rvm.io | bash -s stable --ruby
Output shows:
输出显示了:
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
finally errors:
最后的错误:
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
I have tried:
我有尝试:
sudo apt-get update
sudo apt-get upgrade
\curl -L https://get.rvm.io | bash -s stable --ruby
Doesnt fix.
不解决。
My /etc/apt/sources.list looks like this:
我/etc/apt/sources.列表看起来像这样:
deb http://archive.ubuntu.com/ubuntu trusty main multiverse universe restricted
deb http://archive.ubuntu.com/ubuntu trusty-security main multiverse universe restricted
From what i have searched, I need to download the 3.1~rc1+r3.0.13-12ubuntu0.1
package and install it manually? If this is the case how would I do this?
从我搜索的内容中,我需要下载3.1~rc1+r3.0.13-12ubuntu0.1包并手动安装?如果是这样的话,我该怎么做呢?
Also I'd like to understand why this package is not at the latest version - maybe a dumb question but I don't understand what could be the cause?
我也想知道为什么这个包不是最新的版本——可能是一个愚蠢的问题,但我不明白是什么原因?
Installing these packages using apt-get:
使用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.
2 个解决方案
#1
2
I ended up using aptitude and selecting the non-default option to downgrade the libffi6 package to allow libffi-dev to be installed:
我最终使用了天赋,并选择了非默认选项来降级libffi6包,以便安装libffi-dev:
sudo aptitude install libffi-dev
#2
1
try to install libffi6.
试着安装libffi6。
apt-get install libffi6
apt-get安装libffi6
if it doesn't work try it like this:
如果它不工作,试着这样做:
add deb http://cz.archive.ubuntu.com/ubuntu trusty main
to /etc/apt/sources.list
添加deb http://cz.archive.ubuntu.com/ubuntu trusty main到/etc/apt/sources.list。
Then:
然后:
apt-get update && apt-get upgrade
apt-get install libffi6
#1
2
I ended up using aptitude and selecting the non-default option to downgrade the libffi6 package to allow libffi-dev to be installed:
我最终使用了天赋,并选择了非默认选项来降级libffi6包,以便安装libffi-dev:
sudo aptitude install libffi-dev
#2
1
try to install libffi6.
试着安装libffi6。
apt-get install libffi6
apt-get安装libffi6
if it doesn't work try it like this:
如果它不工作,试着这样做:
add deb http://cz.archive.ubuntu.com/ubuntu trusty main
to /etc/apt/sources.list
添加deb http://cz.archive.ubuntu.com/ubuntu trusty main到/etc/apt/sources.list。
Then:
然后:
apt-get update && apt-get upgrade
apt-get install libffi6