Removing postgresql (9.5+173) ... Removing postgresql-9.5-postgis-2.2 (2.2.1+dfsg-2) ... Removing postgresql-contrib (9.5+173) ... Removing postgresql-contrib-9.5 (9.5.2-1) ... update-alternatives: warning: forcing reinstallation of alternative /usr/share/postgresql/9.5/man/man1/postmaster.1.gz because link group postmaster.1.gz is broken Removing postgresql-9.5 (9.5.2-1) ... Purging configuration files for postgresql-9.5 (9.5.2-1) ... Dropping cluster main... Can't exec "": No such file or directory at /usr/bin/pg_ctlcluster line 282. Error: could not stop server, aborting dpkg: error processing package postgresql-9.5 (--purge): subprocess installed post-removal script returned error exit status 1