E: Sub-process /usr/bin/dpkg returned an error code (1)

Linux errors I encountered today:

Errors were encountered while processing:

man-db

phpmyadmin

libapache2-mod-php5

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:

/var/lib/dpkg/info

cd /var/lib/dpkg/info

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

Next:

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s