For the package script problem of "package_name
", you should look for:/var/lib/dpkg/info/package_name.preinstYou edit the offending part of the script from the root:
/var/lib/dpkg/info/package_name.postinst
/var/lib/dpkg/info/package_name.prerm
/var/lib/dpkg/info/package_name.postrm
by prepending it with "Then configures all partially installed packages by: # dpkg --configure -a#
" or,
by appending it with "|| true
".
source:http://linuxpoison.blogspot.com/2010/08/13578167755813.html