version `SAMBA_4.10.7' not found (libraries) in Samba 4.10.8

Asked by Tommaso Molesti on 2019-09-06

Hi everyone, I installed Samba 4.10.8 in my NAS, but when I type "systemctl status samba-ad-dc.service" the result is this :

● samba-ad-dc.service - Samba Active Directory Domain Controller
   Loaded: loaded (/etc/systemd/system/samba-ad-dc.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2019-09-06 10:22:29 UTC; 7min ago

Sep 06 10:22:29 nas samba[11032]: /usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libsamdb-common-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/

Sep 06 10:22:29 nas samba[11032]: /usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libservice-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/samba

Sep 06 10:22:29 nas samba[11032]: /usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libsocket-blocking-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sb

Sep 06 10:22:29 nas samba[11032]: /usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libndr-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/samba)

Sep 06 10:22:29 nas samba[11032]: /usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libpopt-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/samba)

Sep 06 10:22:29 nas samba[11032]: /usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libsamba-debug-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/s

Sep 06 10:22:29 nas samba[11032]: /usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libMESSAGING-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/sam

Sep 06 10:22:29 nas systemd[1]: samba-ad-dc.service: Control process exited, code=exited status=1

Sep 06 10:22:29 nas systemd[1]: samba-ad-dc.service: Failed with result 'exit-code'.

Sep 06 10:22:29 nas systemd[1]: Failed to start Samba Active Directory Domain Controller.

What can I do?
Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Last query:
2019-09-06
Last reply:
2019-09-10
Chris Guiver (guiverc) said : #1

Thank you for taking the time to report this issue and helping to make Ubuntu better.

Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We understand the difficulties you are facing, but it is better to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs.

You can also find help with your problem in the support forum of your local Ubuntu community http://loco.ubuntu.com/ or asking at https://askubuntu.com or https://ubuntuforums.org, or look at https://discourse.ubuntu.com/t/community-support/709. For help on reporting bugs, see https://help.ubuntu.com/community/ReportingBugs.

Manfred Hampl (m-hampl) said : #3

There seems to be a conflict between different versions of samba installed in different directories.
How and from which source did you install samba?

For diagnostic purposes please provide the output that you receive for the following commands:

uname -a
lsb_release -crid
dpkg -l | grep samba
which samba
samba --version
/usr/local/samba/sbin/samba --version
/usr/sbin/samba --version

Tommaso Molesti (tommimolesti) said : #4

I installed samba simply typing "apt install samba cifs-utils".

root@nas:/# uname -a
Linux nas 5.0.0-27-generic #28~18.04.1-Ubuntu SMP Thu Aug 22 03:00:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

root@nas:/# lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic

root@nas:/# dpkg -l | grep samba
ii libcrypt-smbhash-perl 0.12-4 all generate LM/NT hash of a password for samba
ii samba 2:4.10.8+karoshi-1~linuxschools1+bionic1 amd64 SMB/CIFS file, print and login server for Unix
ii samba-client-libs 4.10.7-1 amd64 Samba client libraries
ii samba-common 2:4.10.8+karoshi-1~linuxschools1+bionic1 all common files used by both the Samba server and client
ii samba-libs:amd64 2:4.10.8+karoshi-1~linuxschools1+bionic1 amd64 Samba core libraries

root@nas:/# which samba
/usr/sbin/samba

root@nas:/# /usr/local/samba/sbin/samba --version
/usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libprocess-model-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/samba)
/usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libcliauth-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/samba)
/usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libcluster-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/samba)
/usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libevents-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/samba)
/usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libsamba-modules-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/samba)
/usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libgensec-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/samba)
/usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libsamdb-common-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/samba)
/usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libservice-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/samba)
/usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libsocket-blocking-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/samba)
/usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libndr-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/samba)
/usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libpopt-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/samba)
/usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libsamba-debug-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/samba)
/usr/local/samba/sbin/samba: /usr/lib/x86_64-linux-gnu/samba/libMESSAGING-samba4.so: version `SAMBA_4.10.7' not found (required by /usr/local/samba/sbin/samba)

root@nas:/# /usr/sbin/samba --version
Version 4.10.8

Manfred Hampl (m-hampl) said : #5

It seems that in the directory /usr/local/samba you have an installation of samba 4.10.7 (from whatever foreign source), and in /usr/sbin there is samba 4.10.8 (probably installed by the Ubuntu package management tools from a PPA).

Where does the installation in /usr/local/samba come from?
I assume that deinstalling that version will make the Ubuntu version work.

Tommaso Molesti (tommimolesti) said : #6

I tried to reinstall samba with "apt install --reinstall samba cifs-utils" but now, this is the problem:

root@nas:/usr/sbin# systemctl stop samba-ad-dc.service nmbd.service smbd.service
Failed to stop nmbd.service: Unit nmbd.service not loaded.
Failed to stop smbd.service: Unit smbd.service not loaded.

Manfred Hampl (m-hampl) said : #7

What is the current Status - has the samba installation in /usr/local/samba been removed?

What is the full outptu of the coommand

apt install --reinstall samba

Tommaso Molesti (tommimolesti) said : #8

root@nas:/# apt install --reinstall samba cifs-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libjpeg-turbo8 libjpeg8
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
Need to get 13.1 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 cifs-utils amd64 2:6.8-1 [71.5 kB]
Get:2 http://ppa.launchpad.net/linux-schools/samba-latest/ubuntu bionic/main amd64 samba amd64 2:4.10.8+karoshi-1~linuxschools1+bionic1 [13.0 MB]
Fetched 13.1 MB in 2s (6,737 kB/s)
(Reading database ... 114704 files and directories currently installed.)
Preparing to unpack .../samba_2%3a4.10.8+karoshi-1~linuxschools1+bionic1_amd64.deb ...
Unpacking samba (2:4.10.8+karoshi-1~linuxschools1+bionic1) over (2:4.10.8+karoshi-1~linuxschools1+bionic1) ...
Preparing to unpack .../cifs-utils_2%3a6.8-1_amd64.deb ...
Unpacking cifs-utils (2:6.8-1) over (2:6.8-1) ...
Setting up cifs-utils (2:6.8-1) ...
Setting up samba (2:4.10.8+karoshi-1~linuxschools1+bionic1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

I don't know if the samba installation in /usr/local/samba has been removed...

Manfred Hampl (m-hampl) said : #9

What is now the output of

ps ax | egrep 'samba|smb'

tommaso@nas:~$ ps ax | egrep 'samba|smb'
10166 pts/1 S+ 0:00 grep -E --color=auto samba|smb

I solved the prevoius problems, following a guide I installed winbind but "winbind.service" does not work correctly.
This is the output of the status of this daemon.

root@nas:/home/tommaso# systemctl status winbind.service
● winbind.service - Samba Winbind Daemon
   Loaded: loaded (/lib/systemd/system/winbind.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2019-09-10 09:15:48 UTC; 2min 2s ago
     Docs: man:winbindd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 3016 ExecStart=/usr/sbin/winbindd --foreground --no-process-group $WINBINDOPTIONS (code=exited, status=1/FAILURE)
 Main PID: 3016 (code=exited, status=1/FAILURE)

Sep 10 09:15:48 nas systemd[1]: Starting Samba Winbind Daemon...
Sep 10 09:15:48 nas systemd[1]: winbind.service: Main process exited, code=exited, status=1/FAILURE
Sep 10 09:15:48 nas systemd[1]: winbind.service: Failed with result 'exit-code'.
Sep 10 09:15:48 nas systemd[1]: Failed to start Samba Winbind Daemon.

This is the output of "systemctl status smbd.service nmbd.service samba-ad-dc.service"

root@nas:/home/tommaso# systemctl status smbd.service nmbd.service samba-ad-dc.service
● smbd.service - Samba SMB Daemon
   Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2019-09-10 09:16:31 UTC; 1s ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 3055 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
 Main PID: 3055 (code=exited, status=1/FAILURE)

Sep 10 09:16:31 nas systemd[1]: Starting Samba SMB Daemon...
Sep 10 09:16:31 nas smbd[3055]: [2019/09/10 09:16:31.624380, 0] ../../source3/smbd/server.c:1850(main)
Sep 10 09:16:31 nas smbd[3055]: server role = 'active directory domain controller' not compatible with running smbd standalone.
Sep 10 09:16:31 nas smbd[3055]: You should start 'samba' instead, and it will control starting smbd if required
Sep 10 09:16:31 nas systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Sep 10 09:16:31 nas systemd[1]: smbd.service: Failed with result 'exit-code'.
Sep 10 09:16:31 nas systemd[1]: Failed to start Samba SMB Daemon.

● nmbd.service - Samba NMB Daemon
   Loaded: loaded (/lib/systemd/system/nmbd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2019-09-10 09:16:31 UTC; 1s ago
     Docs: man:nmbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 3056 ExecStart=/usr/sbin/nmbd --foreground --no-process-group $NMBDOPTIONS (code=exited, status=1/FAILURE)
 Main PID: 3056 (code=exited, status=1/FAILURE)

Sep 10 09:16:31 nas systemd[1]: Starting Samba NMB Daemon...
Sep 10 09:16:31 nas nmbd[3056]: [2019/09/10 09:16:31.570953, 0] ../../source3/nmbd/nmbd.c:921(main)
Sep 10 09:16:31 nas nmbd[3056]: server role = 'active directory domain controller' not compatible with running nmbd standalone.
Sep 10 09:16:31 nas nmbd[3056]: You should start 'samba' instead, and it will control starting the internal nbt server
Sep 10 09:16:31 nas systemd[1]: nmbd.service: Main process exited, code=exited, status=1/FAILURE
Sep 10 09:16:31 nas systemd[1]: nmbd.service: Failed with result 'exit-code'.
Sep 10 09:16:31 nas systemd[1]: Failed to start Samba NMB Daemon.

● samba-ad-dc.service - Samba Active Directory Domain Controller
   Loaded: loaded (/etc/systemd/system/samba-ad-dc.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-09-10 09:16:31 UTC; 1s ago
  Process: 3057 ExecStart=/usr/sbin/samba -D (code=exited, status=0/SUCCESS)
 Main PID: 3069 (samba)
    Tasks: 21 (limit: 9830)
   CGroup: /system.slice/samba-ad-dc.service
           ├─3069 samba: root process
           ├─3101 samba: task[s3fs_parent]
           ├─3102 samba: task[dcesrv]
           ├─3103 samba: task[nbtd]
           ├─3105 samba: tfork waiter process
           ├─3108 samba: task[wrepl]
           ├─3109 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground
           ├─3110 samba: task[ldapsrv]
           ├─3111 samba: task[cldapd]
           ├─3112 samba: task[kdc]
           ├─3114 samba: task[dreplsrv]
           ├─3115 samba: task[winbindd_parent]
           ├─3116 samba: task[ntp_signd]
           ├─3117 samba: tfork waiter process
           ├─3118 samba: task[kccsrv]
           ├─3119 /usr/sbin/winbindd -D --option=server role check:inhibit=yes --foreground
           ├─3120 samba: task[dnsupdate]
           ├─3121 samba: task[dns]
           ├─3133 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground
           ├─3134 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground
           └─3136 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground

Sep 10 09:16:32 nas samba[3120]: task[dnsupdate][3120]: [2019/09/10 09:16:32.586143, 0] ../../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
Sep 10 09:16:32 nas samba[3120]: task[dnsupdate][3120]: /usr/sbin/samba_dnsupdate: elif not check_dns_name(d):
Sep 10 09:16:32 nas samba[3120]: task[dnsupdate][3120]: [2019/09/10 09:16:32.586198, 0] ../../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
Sep 10 09:16:32 nas samba[3120]: task[dnsupdate][3120]: /usr/sbin/samba_dnsupdate: File "/usr/sbin/samba_dnsupdate", line 324, in check_dns_name
Sep 10 09:16:32 nas samba[3120]: task[dnsupdate][3120]: [2019/09/10 09:16:32.586281, 0] ../../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
Sep 10 09:16:32 nas samba[3120]: task[dnsupdate][3120]: /usr/sbin/samba_dnsupdate: raise Exception("Unable to contact a working DNS server while looking for %s as %s"
Sep 10 09:16:32 nas samba[3120]: task[dnsupdate][3120]: [2019/09/10 09:16:32.586351, 0] ../../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
Sep 10 09:16:32 nas samba[3120]: task[dnsupdate][3120]: /usr/sbin/samba_dnsupdate: Exception: Unable to contact a working DNS server while looking for A nas.marconinew.lo
Sep 10 09:16:32 nas samba[3120]: task[dnsupdate][3120]: [2019/09/10 09:16:32.637838, 0] ../../source4/dsdb/dns/dns_update.c:331(dnsupdate_nameupdate_done)
Sep 10 09:16:32 nas samba[3120]: task[dnsupdate][3120]: dnsupdate_nameupdate_done: Failed DNS update with exit code 1

Manfred Hampl (m-hampl) said : #12

Have you read the error messages? It seems that you are starting the wrong demon processes.

server role = 'active directory domain controller' not compatible with running smbd standalone.
You should start 'samba' instead, and it will control starting smbd if required

server role = 'active directory domain controller' not compatible with running nmbd standalone.
You should start 'samba' instead, and it will control starting the internal nbt server

Yes I had already read that error, I'm sure that these are the process that I have to run, if you know something that could help me please write because my server must work asap.
Thanks.

Can you help with this problem?

Provide an answer of your own, or ask Tommaso Molesti for more information if necessary.

To post a message you must log in.