无法安装软件包:libtbb2-dev:冲突:libtbb-dev 但要安装 2021.5.0-7ubuntu2

无法安装软件包:libtbb2-dev:冲突:libtbb-dev 但要安装 2021.5.0-7ubuntu2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'itascasoftware' instead of './itascasoftware_700.146.deb'
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:
 libtbb2-dev : Conflicts: libtbb-dev but 2021.5.0-7ubuntu2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

答案1

您可以使用 dpkg 'force' 来安装包并忽略未满足的依赖关系:

sudo dpkg --force-all -i ./itascasoftware_700.146.deb

它将解压软件包并列出缺少的依赖项。您将看到类似以下内容:

dpkg: itascasoftware: dependency problems, but configuring anyway as you requested:
 itascasoftware depends on libmkl-dev (>= 2020.0.166-1); however:
  Package libmkl-dev is not installed.
 itascasoftware depends on libncurses5-dev; however:
  Package libncurses5-dev is not installed.
 itascasoftware depends on libncursesw5-dev; however:
  Package libncursesw5-dev is not installed.
 itascasoftware depends on libcurl4-gnutls-dev; however:
  Package libcurl4-gnutls-dev is not installed.
 itascasoftware depends on libzmq3-dev; however:
  Package libzmq3-dev is not installed.
 itascasoftware depends on ttf-mscorefonts-installer; however:
  Package ttf-mscorefonts-installer is not installed.

然后你可以手动使用 apt 安装列出的缺失依赖项

相关内容