If you have this:

debconf: DbDriver "config": mkdir :No such file or directory

You might just have deleted /var/cache/debconf. Solving this is easy:

mkdir -f /var/cache/debconf
apt-get -f install