我一直在尝试安装开放FOAM在 18.04 上执行此操作后出现以下错误sudo apt-get install openfoam6
:
The following packages have unmet dependencies.
openfoam6 : Depends: libopenmpi2 but it is not installable
E: Unable to correct problems, you have held broken packages.
我尝试运行sudo apt-get install libopenmpi2
并得到:
E: Package 'libopenmpi2' has no installation candidate
我不太熟悉这类问题,但我认为如果我能找到一些东西这里那么它应该可以安装吗?
有什么想法可以尝试修复它吗?
答案1
很有可能问题 1817,正如最后说明的那样“相当奇怪”因为它似乎是安装顺序问题。建议的修复方法(请阅读问题以了解更多详细信息):
$ sudo dpkg --remove --force-all libopenmpi-dev
$ sudo apt install libopenmpi-dev