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:

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
–
chunkyb2002Oct 22 '11 at 20:10

@chunkyb2002: Yeah, restarting Debian is usually a stupid suggestion... although it would work in this case :)
–
FlimzyOct 27 '11 at 8:49