I'm not convinced this should have been marked a duplicate of bug #996916. In anycase, uninstalling postGIS and postgresql may be a workaround. If so, surely it's a fixable bug...
Commenting out lines in blacklist.cfg did not help. I restored them.
I tried
sudo apt-get remove postgresql
and that did not help. I reversed it.
sudo apt-get remove postgresql pgadmin3 postgresql-9.4-postgis-2.1
and that let me upgrade.
I'm not convinced this should have been marked a duplicate of bug #996916. In anycase, uninstalling postGIS and postgresql may be a workaround. If so, surely it's a fixable bug...
Commenting out lines in blacklist.cfg did not help. I restored them.
I tried
sudo apt-get remove postgresql
and that did not help. I reversed it.
I tried
sudo apt-get remove postgresql pgadmin3 postgresql- 9.4-postgis- 2.1
and that let me upgrade.