failure to source /usr/share/debconf/confmodule in phpmyadmin.prerm causes package removal to fail

Bug #4200 reported by Brad K.
This bug report is a duplicate of:  Bug #3151: phpmyadmin remove problem. Edit Remove
4
Affects Status Importance Assigned to Milestone
phpmyadmin (Ubuntu)
New
Medium
Unassigned

Bug Description

during the pre-removal process, phpmyadmin.prerm is called but cannot find the db_* modules due the /usr/share/debconf/confmodule not being source in this file (see below)

root@host:~# apt-get remove --purge phpmyadmin
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  phpmyadmin*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 11.1MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 25126 files and directories currently installed.)
Removing phpmyadmin ...
/var/lib/dpkg/info/phpmyadmin.prerm: line 12: db_get: command not found
dpkg: error processing phpmyadmin (--purge):
 subprocess pre-removal script returned error exit status 127
Errors were encountered while processing:
 phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@host:~#

-----

recommend adding ". /usr/share/debconf/confmodule" into the .prerm file just prior to the initial 'if' statement. removal/purge goes pleasantly after this fix.

=====

(phpmyadmin_4%3a2.6.4-pl1-1ubuntu1.1_all.deb)

Revision history for this message
Brad K. (zelmak) wrote :

sorry for the duplicate; I guess search doesn't work (searched for phpmyadmin) when the bug isn't open. that might be a bug in itself when a bug is fixed, but the fixed package is not yet placed into repository for distribution...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.