安装perlapi-5.8.8

我的问题是,我想在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