I try to run
sudo apt-get update and the terminal freezes and a message pops up:
Ubuntu experienced an internal error...
I am trying to work with OpenFOAM and all the times is asking me to update things and when I try it, it gets stuck.
Ubuntu version is 12.04.
Make a back up copy of your sources.list:
Now remove the original and update: