Cannot install FEnics on Linux Mint 18

I tried to install Fenics on Linux mint 18 Sarah based on Ubuntu 16.04 Xenial using instructions from the official website.But I get the following error

The following packages have unmet dependencies:
fenics : Depends: python3-dolfin (>= 2019.1) but it is not going to be installed
Depends: dolfin-doc (>= 2019.1) but it is not going to be installed
Depends: dolfin-bin (>= 2019.1) but it is not going to be installed
Depends: python3-mshr (>= 2019.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I tried to install the packages python3-dolfin but it depended on pybind-11

The following packages have unmet dependencies:
python3-dolfin : Depends: python3-pybind11 (< 2.2.4) but 2.4.3-1~ubuntu16.04.1 is to be installed

Pybind-11 was installed but then I get the following error:

The following packages have unmet dependencies:
python3-dolfin : Depends: python3-pybind11 (< 2.2.4) but 2.4.3-1~ubuntu16.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Is there a way to install Fenics without the docker? Can you please point me towards the relevant guide?

Looks like Mint needs to rebuild their dolfin. You can do it yourself

apt-get source dolfin
sudo apt-get build-depends dolfin
cd dolfin
dpkg-buildpackage
1 Like