-2

我最近在 Ubuntu 21.04 上设置了一台新 PC,当我尝试安装 minion-nc 时,我得到了一个有问题的依赖项列表。下面是错误结果:

$ sudo apt-get install minion-nc
Reading package lists... Done
Building dependency tree... Done
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 resolve the situation:

The following packages have unmet dependencies:
 ont-guppy-cpu-for-minion : Depends: libhdf5-cpp-100 but it is not installable
                            Depends: libboost-atomic1.65.1 but it is not installable
                            Depends: libboost-chrono1.65.1 but it is not installable
                            Depends: libboost-date-time1.65.1 but it is not installable
                            Depends: libboost-filesystem1.65.1 but it is not installable
                            Depends: libboost-iostreams1.65.1 but it is not installable
                            Depends: libboost-program-options1.65.1 but it is not installable
                            Depends: libboost-regex1.65.1 but it is not installable
                            Depends: libboost-system1.65.1 but it is not installable
                            Depends: libboost-log1.65.1 but it is not installable
E: Unable to correct problems, you have held broken packages.

我尝试单独安装依赖项,但我再次遇到错误:

$ sudo apt-get install libhdf5-cpp-100
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libhdf5-cpp-100 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However, the following packages replace it:
  libhdf5-openmpi-hl-cpp-100 libhdf5-mpich-hl-cpp-100 libhdf5-hl-cpp-100

E: Package 'libhdf5-cpp-100' has no installation candidate
$ sudo apt-get install libboost-program-options1.65.1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libboost-program-options1.65.1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libboost-program-options1.65.1' has no installation candidate

我正在考虑尝试从我当前的 21.04 回滚到 Ubuntu 20.04,但我不确定这是否能解决问题,我想在我做出这样的举动之前我会在这里查看建议。

提前致谢!

4

1 回答 1

0

要解决包依赖问题,我将从以下命令开始:

  1. 重新同步本地包索引以确保所有可安装包的依赖项列表都是最新的。
$ sudo apt update
  1. 尝试纠正具有损坏依赖关系的系统:
$ sudo apt install -f

然后,尝试再次安装所需的软件包。

于 2021-08-13T19:52:20.907 回答