Seems to be related to a corrupted debconf database as running /usr/share/debconf/fix_db.pl fixed it.
Seems to be related to a corrupted debconf database as running /usr/share/ debconf/ fix_db. pl fixed it.