phpmyadmin remove problem

Bug #3151 reported by Simon Brakhane
80
This bug affects 14 people
Affects Status Importance Assigned to Milestone
phpmyadmin (Ubuntu)
Fix Released
Medium
MOTU

Bug Description

Hi there, i got some problems with apt-get remove phpmyadmin, it looks like the package got some wrong dependences or something else goes wrong. Im using a up to date Breezy. Here are some informations, i tried to remove php4-mysql whit it but it dosent work.

root@ubuntu:/mnt/# apt-get remove phpmyadmin php4-mysql
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
Die folgenden Pakete werden ENTFERNT:
  php4-mysql phpmyadmin
0 aktualisiert, 0 neu installiert, 2 zu entfernen und 0 nicht aktualisiert.
Es müssen 0B Archive geholt werden.
Nach dem Auspacken werden 11,2MB Plattenplatz freigegeben worden sein.
Möchten Sie fortfahren [J/n]? j
(Lese Datenbank ... 74706 Dateien und Verzeichnisse sind derzeit installiert.)
Entferne phpmyadmin ...
/var/lib/dpkg/info/phpmyadmin.prerm: line 12: db_get: command not found
dpkg: Fehler beim Bearbeiten von phpmyadmin (--remove):
 Unterprozess pre-removal script gab den Fehlerwert 127 zurück
dpkg: php4-mysql: Abhängigkeitsproblem, aber lösche es auf Anfrage dennoch:
 phpmyadmin hängt ab von php4-mysql | php5-mysql | php5-mysqli; aber:
  Paket php4-mysql bereitstellt, soll gelöscht werden.
  Paket php5-mysql bereitstellt, ist nicht installiert.
  Paket php5-mysqli bereitstellt, ist nicht installiert.
Entferne php4-mysql ...
Fehler traten auf beim Bearbeiten von:
 phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)

After getting this error i looked at line 12 of /var/lib/dpkg/info/phpmyadmin.prerm - I quoted it out an tada, i can remove the package without any errors or dependence problems.

Hope its realy a bug and it will be fixed.

Changed in phpmyadmin:
assignee: nobody → motu
Revision history for this message
Andrew Mitchell (ajmitch) wrote :

This is known & couldn't be helped for release - The security update had to go in without the other changes which fixed this bug from debian

Revision history for this message
Thomas Babut (thbabut) wrote :

I fixed this problem for me with adding the following code in the file /var/lib/dpkg/info/phpmyadmin.prerm:

Find:
# Package maintainer's commands follow:

Replace with:
. /usr/share/debconf/confmodule

# Package maintainer's commands follow:

Revision history for this message
Thomas Babut (thbabut) wrote :

I fixed this problem for me with adding the following code in the file /var/lib/dpkg/info/phpmyadmin.prerm:

Find:

# Package maintainer's commands follow:

Replace with:

. /usr/share/debconf/confmodule

# Package maintainer's commands follow:

Changed in phpmyadmin:
status: New → PendingUpload
Changed in phpmyadmin:
status: PendingUpload → Fixed
Revision history for this message
nilsja (nilsjansen) wrote :

i already had this line in /var/lib/dpkg/info/phpmyadmin.prerm. problem first appeared when i tried to unsinstall apache via the software center.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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