LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-01-2018, 02:17 PM   #1
fl5x
LQ Newbie
 
Registered: Sep 2018
Posts: 2

Rep: Reputation: Disabled
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.

Last edited by fl5x; 09-01-2018 at 02:30 PM.
 
Old 09-01-2018, 11:10 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,813

Rep: Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143
Just a guess....have you tried installing 'libreplace-samba4'?
 
Old 09-02-2018, 04:13 AM   #3
fl5x
LQ Newbie
 
Registered: Sep 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba refuses to start on startup, but will start manually pepsimachine15 Linux - Software 8 04-20-2009 11:03 AM
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
Cannot start Samba-why? zener Ubuntu 3 04-27-2006 01:41 PM
Installed the wrong SAMBA packages.Now samba doesn't start Terrence Hinds Linux - Networking 3 10-11-2004 03:40 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration