Package libpam-runtime is not configured yet.
dpkg: error processing libpam0g (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libpam-runtime

Go to http://bugs.debian.org and put libpam-runtime in the search box and under normal bugs you will see your problem The line that has to be changed in in the third post in the patch the file to be changed is /var/lib/dpkg/info/libpam-runtime.postinst, once you have changed the line then use the dpkg --configure command suggested in the first post reporting the bug.