在 Debian 中安装 aptitude 时出现损坏的软件包

在 Debian 中安装 aptitude 时出现损坏的软件包

我想在我最新的debian10.0.4中安装aptitude(主机是debian9,主机中的虚拟机是debian10.0.4):

sudo apt-get install  aptitude
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:
 aptitude : Depends: libapt-pkg5.0 (>= 1.1) but it is not going to be installed
            Recommends: libparse-debianchangelog-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

要安装依赖项:

sudo apt-get install  libapt-pkg5.0   libparse-debianchangelog-perl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libapt-pkg5.0 is already the newest version (1.8.2).
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:
 libparse-debianchangelog-perl : Depends: libclass-accessor-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

要安装依赖项:

sudo apt install  libclass-accessor-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:
 libclass-accessor-perl : Depends: libsub-name-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

继续安装依赖:

sudo apt install    libsub-name-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:
 libsub-name-perl : Depends: perlapi-5.24.1
E: Unable to correct problems, you have held broken packages.

继续安装:

sudo apt install  perlapi-5.24.1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package perlapi-5.24.1 is a virtual package provided by:
  perl-base 5.24.1-3+deb9u5 [Not candidate version]
  perl-base 5.24.1-3+deb9u6 [Not candidate version]

E: Package 'perlapi-5.24.1' has no installation candidate

那么该如何解决这个问题呢?

相关内容