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.
I have just updated the FEniCS PPA to the latest 2019.2 snapshot. You might have inadvertently got caught in the middle of the upgrade. If so, it should be fine for upgrade now. You might want to perform
sudo apt-get dist-upgrade
after running sudo apt-get upgrade.
Your reference to pip install is a problem. You can not maintain a pip installation of fenics at the same time as an ubuntu installation. The libraries need to be self-consistent and you will break that if you try to run one on top of the other.
Installation from the FEniCS PPA should be fine now, so let me know if it continues to give problems (make sure you delete your pip installation first).
Incidentally, I do not recommend not installing the recommended packages. Use
apt install fenics
(the -y automatically proceeds with installation, add it if you like. Without it the installation will pause to give you a chance to review what packages will be installed)
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.
Hi @bhaveshshrimali, your link isn’t publically accessible, is there an option for sharing it?
I presume at this point you’ve run apt-getupdate (you must have done or else fenics wouldn’t be requesting python3-dolfin (>= 2019.2)). Must be something tangled in the subdependencies. I’m firing up an ubuntu cloud installation to inspect.
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:
python3-dolfin : Depends: python3-dolfin-real but it is not going to be installed
E: Unable to correct problems, you have held broken packages.