LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Cannot start samba (https://www.linuxquestions.org/questions/linux-server-73/cannot-start-samba-4175637594/)

fl5x 09-01-2018 02:17 PM

Cannot start samba
 
I recently upgraded to Ubuntu Server 18.04 from 16.04. The main issue I have found is that Samba no longer work. So I uninstalled Samba:
Code:

sudo apt-get remove --purge samba samba-*
and installed again:
Code:

sudo apt install samba
There are errors during installation:
Code:

● smbd.service - Samba SMB Daemon
  Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
  Active: failed (Result: exit-code) since Sat 2018-09-01 21:09:37 CEST; 10ms ago
    Docs: man:smbd(8)
          man:samba(7)
          man:smb.conf(5)
  Process: 20864 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=127)
 Main PID: 20864 (code=exited, status=127)
smbd.service: Main process exited, code=exited, status=127/n/a
Starting Samba SMB Daemon...
smbd[20864]: /usr/sbin/smbd: error while loading shared libraries: libreplace.so.0: cannot open shared object file: No such file or directory
systemd[1]: smbd.service: Failed with result 'exit-code'.
systemd[1]: Failed to start Samba SMB Daemon.

If I run
Code:

testparm
I get this:
Code:

testparm: error while loading shared libraries: libreplace.so.0: cannot open shared object file: No such file or directory
I have uninstalled and then installed libwbclient0
Code:

sudo apt-get install libwbclient0
Any suggestions are welcome.

ferrari 09-01-2018 11:10 PM

Just a guess....have you tried installing 'libreplace-samba4'?

fl5x 09-02-2018 04:13 AM

Code:

sudo apt install libreplace-samba4
Code:

Couldn't find package libreplace-samba4
I had to manually create the folder: /usr/lib/x86_64-linux-gnu/samba/

After that, I was able to install libwbclient0 first and samba later with no errors.

Now Samba seems to be properly installed although it seems to need further configuration as not all users are able to login. Even the same user in some machines is able to login however in others fails.

Upgrading from 14.04 to 16.04 was way easier!


All times are GMT -5. The time now is 01:24 AM.