Package: postgresql Version: 7.4.7-6sarge1 Upgrading postgresql fails in the post-installation script if one does not have a database called "template0":
Setting up postgresql (7.4.7-6sarge1) ... [...] Applying security update in database template1...success Applying security update in database template0... dpkg: error processing postgresql (--configure): subprocess post-installation script returned error exit status 2 Errors were encountered while processing: postgresql /A