perl - APT 错误 : Depends: perl (= 5. 14.2-6ubuntu2) 但要安装 5.14.2-6ubuntu2.1

标签 perl ubuntu apt

关闭。这个问题是off-topic .它目前不接受答案。












想改进这个问题? Update the question所以它是on-topic对于堆栈溢出。


9年前关闭。







Improve this question




我只是尝试在 Ubuntu 上使用 apt 安装 libperl-dev,但出现以下错误:

user@comp-2:~$ sudo apt-get install libperl-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:
 libperl-dev : Depends: perl (= 5.14.2-6ubuntu2) but 5.14.2-6ubuntu2.1 is to be installed
               Depends: libperl5.14 (= 5.14.2-6ubuntu2) but 5.14.2-6ubuntu2.1 is to be installed
E: Unable to correct problems, you have held broken packages.

我试图用谷歌搜索这个问题,但没有找到清楚的东西。
有人可以解释一下这是什么意思:“取决于:libperl5.14 (= 5.14.2-6ubuntu2) 但要安装 5.14.2-6ubuntu2.1”,以及如何解决?
谢谢你的前面。

最佳答案

基本上,错误消息告诉您所有三个软件包(libperl-dev、perl 和 libperl5.14)都需要具有完全相同的版本(5.14.2-6ubuntu2 或 5.14.2-6ubuntu2.1),但您正在尝试混合他们俩。我不能告诉你为什么会这样(也许你正试图混合来自不同发行版的包,比如 debian testing/unstable),但如果你使用 aptitude,你可以在交互式依赖求解器中检查情况(也许它甚至会自动为您找到可接受的解决方案)。

因此,请使用 aptitude 并检查软件包的版本,包括您尝试安装的版本和您已经拥有的版本。

关于perl - APT 错误 : Depends: perl (= 5. 14.2-6ubuntu2) 但要安装 5.14.2-6ubuntu2.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12618314/

相关文章:

perl - chomp 给我 1's and 0' s

c++ - 从 perl 更新 C++ 变量

perl - 舞者2 : fetching nested data from hash stored in YAML session

debian - 如何获取 debian 软件包的 *.changes 文件?

ubuntu - 在 Ubuntu 上安装 krb5-user

perl - 如何在独立的 Perl 脚本中使用 Mojolicious 渲染?

ubuntu - Ansible开发环境

python - 在 Ubuntu 11.04 上加载 pygtk 时出现问题

ubuntu - Vagrant ubuntu 框内联脚本发出 "mesg ttyname failed Inappropriate ioctl for device"

c# - 是否有与 Java 的注释处理工具 (apt) 等效的 C#?