This question already has an answer here:

I am trying to install Gmsh in 12.04 x64:

xxx@sjb-linux:/320/installslinux/gmsh$ sudo apt-get install gmsh
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:
 gmsh : Depends: libmed1 (>= 3.0.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I have now tried all the advice I could get

sudo apt-get -f install
sudo apt-get clean

with no success, these commands report absolutely no problem.

I'll appreciate help.

marked as duplicate by Eliah Kagan, karel, Eric Carvalho, Sylvain Pineau, Seth Sep 11 '14 at 19:19

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • mention ubuntu version and System architecture like is it 32 bit or 64.. – Sukupa91 Dec 2 '13 at 10:52

gmsh won't install because libmed1 won't install either. The problem is that there is a conflict with different versions of package libhdf5.

So in order to fix it

  • Open synaptic and searched for libhdf5
  • Then install libhdf5-openmpi-1.8.4, this will remove some of the libhdf5 packages and IIRC some octave-3.2 packages too.

After that I went on to install libmed1 and once that was done I was finally able to install gmsh.

So far I haven't had any further problems related to this.


Problem is that gmsh having dependencies those having their own dependencies. So include the not going to be installed package to the main installation list.

sudo apt-get install gmsh libmed1

Not the answer you're looking for? Browse other questions tagged or ask your own question.