12

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?

HopelessN00b
  • 1,891
Jane Panda
  • 1,237

2 Answers2

11
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).
Pylsa
  • 31,383
4

On Ubuntu (17) I did

apt purge samba samba-common

followed by

apt install system-config-samba

which worked for me.

loop
  • 171