Installation of FEniCS on Ubuntu 22.04

Hi,

I tried to install FEniCS on Ubuntu 22.04 through the FEniCS ppa. Despite the package dolfin for Ubuntu 22.04 seems to be present in the repository, the package fenics seems to be missing. When I try to install FEniCS through apt typing

sudo apt install fenics

this is what I get

Package fenics is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package "fenics" has no installation candidate

also the package dolfin is missing, while dolfin-bin and dolfin-doc exist. Do you have any idea on how to solve the issue?

Thanks!

Looks like Ubuntu failed to build the fenics package for jammy for some reason. I don’t know why. They’ve still built dolfin.

I’ve added the fenics package to the PPA, but it’s just a dependency package so as a workaround you can instead install with

sudo apt-get install python3-dolfin python3-mshr

Note that that fenics (dolfin) is the legacy version of the suite. For new projects you might want to start using fenicsx (dolfinx).

2 Likes