0

I've been trying to install openFOAM on 18.04 and get the following error after 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.

I tried running sudo apt-get install libopenmpi2 and get:

E: Package 'libopenmpi2' has no installation candidate

I'm not really familiar with this kind of issue, but I was under the assumption that if I can find something here then it should be installable?

Any ideas on what to try to fix it?

1 Answers1

0

Quite likely issue 1817, which as the final note says is "quite weird" in that it appears to be an installation order issue. The suggested fix (please read the issue for more detail):

$ sudo dpkg --remove --force-all libopenmpi-dev
$ sudo apt install libopenmpi-dev
Mark
  • 1