无法通过apt-get在Ubuntu 12.04.4上找到软件包libffi和libffi5-dev


9
$ sudo apt-get install libffi libffi5-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libffi
E: Unable to locate package libffi5-dev

另一个尝试:

$ sudo apt-get install libffi5 libffi-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libffi5

$ cat /etc/issue  
Ubuntu 12.04.4 LTS \n \l

我现在该怎么办?


Answers:


20

这些包称为libffi6libffi-dev

可以在http://packages.ubuntu.com/上搜索软件包名称


要搜索软件包,请使用apt-cache search
以下示例可为您提供帮助:

$ apt-cache search libffi
libffi-dev - Foreign Function Interface library (development files)
libffi6 - Foreign Function Interface library runtime
libffi6-dbg - Foreign Function Interface library runtime (debug symbols)
ffindex-dbg - simple index/database for huge amounts of small files (debug)
libbfio-dbg - Library to provide basic input/output abstraction (debug)
libffindex0 - library for simple index/database for huge amounts of small files
libffindex0-dev - library for simple index/database for huge amounts of small files (development)
libjffi-java - Java Foreign Function Interface
libjffi-jni - Java Foreign Function Interface (JNI library)

1
@Jan通过提供(修改)了您的答案apt-cache search
潘迪2014年

libffi5和libffi6不是同一回事。例如,当在raspbian上下载并运行pypy3时,我仍然会收到“加载共享库时出错:libffi.so.5:无法打开共享库文件:没有这样的文件或目录”
Ant6n19年

0

libffi5如果另一个软件包特别需要,您也可以尝试安装上游Debian 软件包libffi5

请参阅:https : //packages.debian.org/wheezy/libffi5或适用于您的Ubuntu版本的上游Debian版本。

下载适合.deb您的体系结构的Debian软件包(),然后使用进行安装dpkg。例如dpkg -i libffi5_3.0.10-3+deb7u2_amd64.deb。然后修复原始安装(apt-get -f install),或重新安装所需的软件包(apt-get install ...)。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.