I tried installing fenics on Colab using the following code:
!apt-get install -y -qq software-properties-common python-software-properties module-init-tools !add-apt-repository -y ppa:fenics-packages/fenics !apt-get update -qq !apt install -y --no-install-recommends fenics
Unfortunately, the installation fails and I get the following message:
E: Package 'python-software-properties' has no installation candidate Hit:1 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ InRelease Ign:2 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease Ign:3 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 InRelease Hit:4 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 Release Hit:5 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 Release Hit:6 http://ppa.launchpad.net/c2d4u.team/c2d4u4.0+/ubuntu bionic InRelease Hit:8 http://security.ubuntu.com/ubuntu bionic-security InRelease Hit:9 http://archive.ubuntu.com/ubuntu bionic InRelease Hit:11 http://ppa.launchpad.net/fenics-packages/fenics/ubuntu bionic InRelease Hit:12 http://archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:13 http://archive.ubuntu.com/ubuntu bionic-backports InRelease Hit:14 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease Reading package lists... Done 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: fenics : Depends: python3-dolfin (>= 2019.2) but it is not going to be installed Depends: dolfin-doc (>= 2019.2) but it is not going to be installed Depends: dolfin-bin (>= 2019.2) but it is not going to be installed Depends: python3-mshr (>= 2019.2) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
Any help would be appreciated. Thanks.