The problem comes from the fact that the following line has been forgotten at beginning of file "/var/lib/dpkg/info/phpmyadmin.prerm" :
. /usr/share/debconf/confmodule DON'T FORGET the dot in column 1 !!! the "sourcing" of this file permits to call "db_get" without error. To do so, you may edit the file with nano ( sudo nano filename ) or gedit if you prefer a sophisticated editor ( gksudo "gedit filename" & ). Then, you may safely remove the package with apt-get or synaptic. -- Error removing phpmyadmin with apt-get (Error 127: Syntax Error) https://launchpad.net/bugs/28413 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs