I also had this perl loop error while trying to upgrade from squeeze to wheezy, and found what i think could be a workaround. after forcing a remove with : "dpkg -r --force-all libtext-charwidth-perl" The upgrade ran without errors.