problem is solved for me! all I did was editing the file /var/lib/dpkg/info/irda-utils.prerm
previous content was:
#! /bin/sh
set -e
--- followed by an automatically added part I don't remember and as removing worked afterwards the file doesn't exist any more ----
then I commented everything out except for the first line and it worked! though it still gave this "package is in a very bad inconsistent state" error I could remove it with "sudo dpkg --purge --force-all irda-utils"
UPDATE:
problem is solved for me! all I did was editing the file /var/lib/ dpkg/info/ irda-utils. prerm
previous content was:
#! /bin/sh
set -e
--- followed by an automatically added part I don't remember and as removing worked afterwards the file doesn't exist any more ----
then I commented everything out except for the first line and it worked! though it still gave this "package is in a very bad inconsistent state" error I could remove it with "sudo dpkg --purge --force-all irda-utils"