First up, dist-upgrade
does not change the version of Ubuntu - it's just a modified upgrade task that will add and remove packages if required (upgrade
won't). If you want to move to a newer release look at do-release-upgrade
.
Second, and more relevantly, if you're using a Python stack, and you depend on having certain versions of parts of that stack, after years of testing I would strongly recommend using pip and virtualenv to containerise your whole Python environment.
It's a bit more learning but a lot less stress when the underlying Ubuntu does change.
Installing PyMC in a virtualenv is a bit more than a pip install
but not much more:
sudo apt-get install ipython python-dev gfortran libatlas-base-dev build-essential
# activate your virtualenv now
pip install matplotlib scipy numpy networkx nose pymc
Note this is just one of a hundred million different ways of installing this manually. For simplicity you could just install straight into Ubuntu's system site packages. It's a similar process but you can offload most of the packages to Ubuntu repo packages instead.