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.

My Samba installation has become a mess, and now the services won't even start correctly anymore, for some reason.

Is there a way to completely remove Samba, as if it was never there, and then reinstall it so I can have a fresh setup?

share|improve this question

1 Answer 1

up vote 7 down vote accepted
sudo apt-get purge samba

will remove the entire package, along with configuration files, which apt-get remove samba won't. After the purge, reinstall samba using

sudo apt-get install samba

from man apt-get:

purge
    purge is identical to remove except that packages are removed and
    purged (any configuration files are deleted too).
share|improve this answer
    
Well it looks like that sort of worked, but now it seems to have hung on "Starting Samba daemons: nmbd smbd". I didn't see any errors before that, but to be fair it went by fairly quick, heh. –  Bob Aug 28 '10 at 21:58
    
@Bob you may need a reboot –  BloodPhilia Aug 28 '10 at 22:00
    
Awesome, that did the trick! I guess sometimes rebooting -does- work on *nixy stuff. Thanks! –  Bob Aug 28 '10 at 22:17
    
@Bob Great it worked for you! Good luck with your fresh samba install! Haha! ;) –  BloodPhilia Aug 28 '10 at 22:24

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.