My PHPmyadmin (PMA) install was stuck. I started a new session and when doing apt-get purge phpmyadmin I got:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable).
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
I ran these in Google and found two issues here; Highest answers suggest removing lock file (as well as it's cached version), but that didn't help: