rm -rf /var/lib/dpkg/info/yourerrorsofware*
dpkg --remove --force-remove-reinstreq yourerrorsoftware
dpkg --purge --force-remove-reinstreq yourerrorsoftware
rm -rf /var/lib/dpkg/info/yourerrorsofware*
dpkg --remove --force-remove-reinstreq yourerrorsoftware
dpkg --purge --force-remove-reinstreq yourerrorsoftware