Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I interrupt my remote-session during the installation of myphpadmin. Now I want to remove and reinstall it. Now suddenly when I type in sudo apt-get remove phpmyadmin the following error message occur:

 Unterprozess installiertes pre-removal-Skript gab den Fehlerwert 1 zurück
configured to not write apport reports
                                      debconf: DbDriver "config": /var/cache/deb                             conf/config.dat is locked by another process: Die Ressource ist zur Zeit nicht v                             erfügbar
dpkg: Fehler beim Aufräumen:
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurüc                             k
Fehler traten auf beim Bearbeiten von:

The text is german

share|improve this question
This might sound stupid (sorry if it does!) but have you restarted the machine since the failure? It should stop any processes that might have a file lock and let you remove it – chunkyb2002 Oct 22 '11 at 20:10
@chunkyb2002: Yeah, restarting Debian is usually a stupid suggestion... although it would work in this case :) – Flimzy Oct 27 '11 at 8:49
up vote 0 down vote accepted

It sounds like dpkg is still running. Try killing it:

killall dpkg

Then re-run your removal command.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .