Skip to content

Binaries fail to install on Ubuntu 20.04 LTS

Summary

Binaries fail to install on Ubuntu 20.04 LTS (focal).

Steps to reproduce

pubkey_url='https://dl.openfoam.com/pubkey.gpg'
repos_url='https://dl.openfoam.com/repos/deb'
apt_pubkey_path='/etc/apt/trusted.gpg.d/openfoam.gpg'
apt_source_path='/etc/apt/sources.list.d/openfoam.list'
ARCH='amd64'
DISTRIB_CODENAME='focal'

echo "deb [arch=${ARCH}] ${repos_url} ${DISTRIB_CODENAME} main" | sudo tee "${apt_source_path}"
curl -L "${pubkey_url}" | gpg --dearmor | sudo tee "${apt_pubkey_path}"
sudo apt update
sudo apt install openfoam2212-default

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 openfoam2212-default : Depends: openfoam2212-tutorials (= 2212.230110-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Example case

See above.

What is the current bug behaviour?

Fails to install.

What is the expected correct behavior?

Installs.

Relevant logs and/or images

Environment information

  • OpenFOAM version : v2212
  • Operating system : Ubuntu 20.04 LTS
  • Hardware info : amd64, x86_64
  • Compiler : gcc, clang

Possible fixes

It looks like openfoam2212-tutorials depends on a release candidate for openfoam2212-common that is unavailable:

openfoam2212-tutorials : Depends: openfoam2212-common (= 2212.0~rc2-1) but 2212.230110-1 is to be installed
Edited by Adam Erickson