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?

Laurengineer
  • 101
  • 2
  • Run `sudo add-apt-repository universe` and try installation again – Kulfy Jan 12 '19 at 20:13
  • Thanks @Kulfy, unfortunately I think that's already added: "sudo add-apt-repository universe" – Laurengineer Jan 12 '19 at 20:15
  • Does this answer your question? [Unable to correct problems, you have held broken packages](https://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages) – karel Dec 23 '20 at 11:20

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