Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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:
 phpmyadmin

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.