This will purge something and print everything that prevents the purge to complete. You can then cut&paste the output between "libc6:i386" and "|" until the command doesn't print anything anymore.
Eventually, I got everything cleaned up but had this error:
I solved the issue eventually by manually purging libc6:i386 and every dependency. If you need to do the same, here is a helper:
echo $(dpkg --purge libc6:i386 |& grep "depends on"|grep :i386|cut -d" " -f2)
This will purge something and print everything that prevents the purge to complete. You can then cut&paste the output between "libc6:i386" and "|" until the command doesn't print anything anymore.
Eventually, I got everything cleaned up but had this error:
Internal Error, No file name for libc6
See comment #7 of this issue for a solution: https:/ /bugs.launchpad .net/ubuntu/ +source/ dpkg/+bug/ 983543/ comments/ 7