Saturday, October 3, 2015

[SOLVED] - Unable To Uninstall phpMyAdmin in Ubuntu 14.04

I was unable to uninstall my phpMyAdmin due to some error I committed while trying to install it. After that while trying to uninstall it I started to get the following errors:

Errors were encountered while processing:phpmyadminE: Sub-process /usr/bin/dpkg returned an error code (1) 

Eventually the steps below worked for me:

Step 1:

 cd /var/lib/dpkg/info/  

Step 2:

  ls -l phpmyadmin.*  
 -rw-r--r-- 1 root root  165 2008-03-05 21:42 phpmyadmin.conffiles  
 -rwxr-xr-x 1 root root  287 2008-03-05 21:42 phpmyadmin.config  
 -rw-r--r-- 1 root root 33524 2008-08-06 11:31 phpmyadmin.list  
 -rw-r--r-- 1 root root 51996 2008-03-05 21:42 phpmyadmin.md5sums  
 -rwxr-xr-x 1 root root 3286 2008-03-05 21:42 phpmyadmin.postinst  
 -rwxr-xr-x 1 root root 1762 2008-03-05 21:42 phpmyadmin.postrm  
 -rwxr-xr-x 1 root root 1762 2008-08-06 09:12 phpmyadmin.postrm.orig  
 -rwxr-xr-x 1 root root  339 2008-03-05 21:42 phpmyadmin.preinst  
 -rw-r--r-- 1 root root 22441 2008-03-05 21:42 phpmyadmin.templates  

Step 3:

Now delete the phpMyAdmin files:

 sudo rm -r phpmyadmin.*  

Step 4:

Verify whether the phpMyAdmin files are still around:

 sudo apt-get remove phpmyadmin  

You should get the following message 'Package 'phpmyadmin' is not installed, so not removed' which confirms all the phpMyAdmin files have successfully been removed.

Step 5:

Finally if you wish you may install phpMyAdmin again:

 sudo apt-get install phpmyadmin  

No comments:

Post a Comment

Thank you for your Feedback!
www.evagabond.me

Top Magento Hosting:

Top 5 Posts (Weekly)