linux - 安装 perlapi-5.8.8

标签 linux perl ubuntu perl-module

我的问题是我想在 ubuntu 上安装 libgtk-perl 软件包,但由于其未满足的依赖项(即 perlapi-5.8.8)而失败,我也尝试过自动安装依赖项,但也失败了。问题是它是一个虚拟包,即使安装了 perl-base(如说明中所示)也无法安装 perlapi。谁能帮我安装 perlapu-5.8.8

adminuser@adminuser-VirtualBox:~$ sudo apt-get install libgtk-perl
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:
 libgtk-perl : Depends: perlapi-5.8.8
E: Unable to correct problems, you have held broken packages.
adminuser@adminuser-VirtualBox:~$ sudo apt-get install perlapi-5.8.8
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package perlapi-5.8.8 is a virtual package provided by:
  perl-base 5.8.8-7 [Not candidate version]

E: Package 'perlapi-5.8.8' has no installation candidate
adminuser@adminuser-VirtualBox:~$ sudo apt-get install perl-base
Reading package lists... Done
Building dependency tree        
Reading state information... Done
perl-base is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

最佳答案

您正在尝试使用 Perl 包 Gtk。为此,您尝试安装一个使用 Perl 5.8.8 构建的二进制文件,这需要您切换到 Perl 5.8.8(或 5.8.9)。除了是倒退的一大步之外,如果不破坏您的系统,您将无法做您想做的事。将 Perl 切换为 Perl 5.8.8 会导致问题。

如果您的系统没有为您的 Perl 版本提供 Perl 模块 Gtk 的包,请按如下方式自行安装(在安装必要的 C 库之后):

cpan Gtk

关于linux - 安装 perlapi-5.8.8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32551028/

相关文章:

node.js - 尽管 cordova 是最新的,但使用 ionic 创建新应用时出现 Cordova 版本错误

linux - 如何突破 smtp 限制?

perl - 删除特定行中的选项卡

java - 在 Java 或 Perl 中创建随机 XML 条目

ubuntu - 在 ubuntu 14.04 中安装 android studio 时出错?

ubuntu - send_nsca 无法在 Amazon EC2 Ubuntu 微实例上运行

objective-c - Linux 上的 Swift Objective-C 互操作性,错误 : 'Foundation/Foundation.h' file not found

linux - Logrotate 重复文件

linux - 设置 flutter 路径时遇到问题 - 找不到 flutter 命令

perl - Perl 有交互式命令行环境吗?