Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I mean, WTH? I messed up the server and I had to do a brand new reinstall purging everything, I also used locate mysql to check where else mysql was hiding.

When I try to install mysql-server-5.1 apt-get throws me an error saying:

Errors where encountered while processing:
 mysql-server-5.1
E: Sub-process /usr/bin/dpkg returned an error code (1)

And now it also trows me the error even if I want to install something completely unrelated to mysql!

share|improve this question
    
So sparx.me gave a bad advice to your former question, right? Renaming the mysql directory and then purging does not work. And then you tried it manually or with force. So now you have a broken system... –  mailq Aug 22 '11 at 8:47
    
Thanks, that's very helpful. Anyway I ended reinstalling the system. It was a virtual box so no worries. –  Zequez Aug 22 '11 at 23:00
add comment

1 Answer

You get that error because the packaging system doesn't want to compound any existing damage by making other changes to the state of the system when it's in an inconsistent and damaged state. Fix whatever's wrong with your mysql-server-5.1 installation (there's not enough information in your question to give you advice on that, and it's a separate question that should be asked separately anyway), and then apt-get will allow you to do whatever else it is you want to do.

share|improve this answer
    
I don't have mysql-server-5.1 installed! I removed it completely, no traces in the whole system! If I do sudo updatedb and then locate mysql I get nothing. And then when I try to install mysql-server-5.1 again I get exactly the same error –  Zequez Aug 21 '11 at 23:55
    
The packaging system thinks differently. Deleting files off the filesystem doesn't change the packaging system's mind, either (in fact, it's entirely likely you've made things worse). Ask a separate question about fixing your packaging state. –  womble Aug 21 '11 at 23:58
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.