Question
Trying to uninstall phpmyadmin "dpkg: error while cleaning up:"
When I’m trying to uninstall phpmyadmin by typing:
sudo apt-get remove phpmyadmin*
I get this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'phpmyadmin' for glob 'phpmyadmin*'
The following packages were automatically installed and are no longer required:
dbconfig-common dbconfig-mysql javascript-common libjs-jquery libjs-sphinxdoc libjs-underscore libmcrypt4
linux-headers-4.4.0-57 linux-headers-4.4.0-57-generic linux-image-4.4.0-57-generic php-gd php-mcrypt
php-phpseclib php-tcpdf php7.0-gd php7.0-mcrypt
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
phpmyadmin
0 upgraded, 0 newly installed, 1 to remove and 54 not upgraded.
1 not fully installed or removed.
After this operation, 25.0 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 124123 files and directories currently installed.)
Removing phpmyadmin (4:4.5.4.1-2ubuntu2) ...
/var/lib/dpkg/info/phpmyadmin.prerm: 44: /etc/dbconfig-common/phpmyadmin.conf: Syntax error: "(" unexpected
dpkg: error processing package phpmyadmin (--remove):
subprocess installed pre-removal script returned error exit status 2
/var/lib/dpkg/info/phpmyadmin.config: 44: /etc/dbconfig-common/phpmyadmin.conf: Syntax error: "(" unexpected
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×