Setting up postgresql-common (165) ... Can't exec "insserv": No such file or directory at /usr/sbin/update-rc.d line 203. update-rc.d: error: insserv rejected the script header dpkg: error processing package postgresql-common (--configure):
ln -s /usr/lib/insserv/insserv /sbin/insserv
References
1. http://askubuntu.com/questions/218511/apt-get-giving-an-error