gpt4 book ai didi

ruby - 安装 rvm rails - 未满足的依赖项 libffi-dev 依赖于 libffi6 - Ubuntu 14.04.4 LTS

转载 作者:太空宇宙 更新时间:2023-11-03 18:10:09 63 4
gpt4 key购买 nike

在 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

不修复。

我的/etc/apt/sources.list 看起来像这样:

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.

最佳答案

我最终使用 aptitude 并选择非默认选项来降级 libffi6 包以允许安装 libffi-dev:

sudo aptitude install libffi-dev

关于ruby - 安装 rvm rails - 未满足的依赖项 libffi-dev 依赖于 libffi6 - Ubuntu 14.04.4 LTS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35885808/

63 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com