Linux errors I encountered today:
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
After trying several thing I found a post on Ubuntu forum forum: link; which offered the answer.
To make dpkg forget about those partially installed packages I had to delete the files they created in this folder:
sudo rm man-db.*
sudo rm phpmyadminman-db.*
sudo rm libapache2-mod-php5.*
And finally I managed to uninstall phpmyadmin.
sudo apt-get remove –purge phpmyadmin
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)