Well, before you reinstall the whole system, try a partial installation of samba first. I understood your situation that way that your samba service is still not starting anymore
- backup
/etc/samba/smb.conf, /etc/samba/smb-local.conf, /etc/samba/smb-shares.conf and /etc/samba/smb.conf.distributed
somewhere and delete these files sudo systemctl disable samba
sudo rm -R /var/cache/samba
sudo apt-get update
sudo apt-get remove samba
and confirm the removalsudo apt-get install samba smb-app-osmc
- reboot
This should give you a virgin samba installation.