Ok, this is how I fixed it:
1. backup /var/lib/dpkg/status to a safe location 2. remove all courier entries from /var/lib/dpkg/status (nano it, search=ctrl-w) 3. sudo apt-get upgrade 4. sudo apt-get install courier-imap
I now need to reconfigure courier, but at least it's working again!
Ok, this is how I fixed it:
1. backup /var/lib/ dpkg/status to a safe location dpkg/status (nano it, search=ctrl-w)
2. remove all courier entries from /var/lib/
3. sudo apt-get upgrade
4. sudo apt-get install courier-imap
I now need to reconfigure courier, but at least it's working again!