Can't restart Samba

Issues related to applications and software problems
sunnyD
Posts: 7
Joined: 2022/06/24 01:05:44

Re: Can't restart Samba

Post by sunnyD » 2022/06/28 23:31:22

Hi Trevor. Thank you for the replies!

The output of rpm -qa libtdb\* samba\* looks like this.

Code: Select all

# rpm -qa libtdb\* samba\*
samba-common-4.10.16-18.el7_9.noarch
samba-common-tools-4.10.16-18.el7_9.x86_64
libtdb-1.3.18-1.el7.i686
samba-libs-4.10.16-18.el7_9.x86_64
samba-common-libs-4.10.16-18.el7_9.x86_64
samba-4.10.16-18.el7_9.x86_64
samba-client-libs-4.10.16-18.el7_9.x86_64
libtdb-1.3.18-1.el7.x86_64
As I mentioned at the end of my first post, I already did yum update recently following one of the solutions when i googled it.

I ran rpm -Va, and here are the piped output related to Samba package.

Code: Select all

S.5....T.  c /etc/samba/smb.conf
.M.......    /var/lib/samba/private
I found out S.5....T. is not a problem message. Is it right?

So, should I check /usr/bin or /usr/lib then?

Thank you for your help!

sunnyD
Posts: 7
Joined: 2022/06/24 01:05:44

Re: Can't restart Samba

Post by sunnyD » 2022/06/28 23:56:47

jlehtone wrote:
2022/06/27 15:32:45
The update of libtdb.i686 should have removed the older version of libtdb.i686 and with it the older /usr/lib/libtdb.so.1.3.16.
However, you show that the file is still in system, like it was never installed from an RPM package.
If it wasn't, then where did it come from?

Overall, why does the system have 32-bit anything? Samba does not need them.
Hi jlehtone! Thank you for your replies!

I moved /usr/lib/libtdb.so.1.3.16 out of the /usr/lib Directory, but same error message was printed out.

Code: Select all

Jun 29 08:41:40 penta01 systemd[1]: Starting Samba SMB Daemon...
Jun 29 08:41:40 penta01 smbd[202880]: /usr/sbin/smbd: relocation error: /usr/lib64/samba/libauth-samba4.so: symbol lp_min_domain_uid, version SMBCONF_0 not defined in file libsmbconf.so.0 with ... time reference
Jun 29 08:41:40 penta01 systemd[1]: smb.service: main process exited, code=exited, status=127/n/a
Jun 29 08:41:40 penta01 systemd[1]: Failed to start Samba SMB Daemon.
Jun 29 08:41:40 penta01 systemd[1]: Unit smb.service entered failed state.
Jun 29 08:41:40 penta01 systemd[1]: smb.service failed.
I took over my former colleague's work these days, so I'm not sure how did 32-bit version get into the system.

But, i just found out the logs that he copied some of files to /lib/ directory before.

Here are the logs.

Code: Select all

  236  25/08/21 08:51:58 cp -a /usr/lib64/libsa* /lib/
  247  25/08/21 08:53:35 cp -a /usr/lib64/libdc* /lib/
  249  25/08/21 08:53:49 cp -a /usr/lib64/libsmb* /lib/
  252  25/08/21 08:54:47 cp -a /usr/lib64/libnd* /lib/
  255  25/08/21 08:55:26 cp -a /usr/lib64/libnet* /lib/
  257  25/08/21 08:55:38 cp -a /usr/lib64/libte* /lib/
  261  25/08/21 08:56:06 cp -a /usr/lib64/libconfig* /lib/
  264  25/08/21 08:56:42 cp -a /usr/lib64/libtdb.so.1 /lib/
   46  02/11/21 14:04:28 cp -a /usr/lib64/libtdb.so.1 /lib
Thank you for your help!
Last edited by sunnyD on 2022/06/30 05:29:01, edited 1 time in total.

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Can't restart Samba

Post by jlehtone » 2022/06/29 14:04:30

The /etc/samba/smb.conf is a configuration file and therefore not a problem.

The libtdb-1.3.18-1.el7.i686 is the only 32-bit package. We could as well remove it.
Rather than doing it directly, we could ask first which transactions have had it:

Code: Select all

yum history list libtdb.i686
(It is quite likely that you did install other packages with it.)


The /lib is a symbolic link that points to /usr/lib.
Therefore, the cp -a /usr/lib64/libsa* /lib/ was same as cp -a /usr/lib64/libsa* /usr/lib/
It is a mystery why those packages were copied. It hints about not understanding the package management.

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can't restart Samba

Post by TrevorH » 2022/06/29 14:58:01

Plus that lot of cp commands affects a _lot_ of things. Try ls -la /usr/lib64/libsa* /usr/lib64/libdc* /usr/lib64/libsmb* /usr/lib64/libnd* /usr/lib64/libnet* /usr/lib64/libte* /usr/lib64/libconfig* /usr/lib64/libtdb.so.1 /usr/lib64/libtdb.so.1 to see what it would have copied and then you have to work out how many of those are still in /lib and should not be, how many have been overwritten with their correct 32 bit equivalents etc
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Can't restart Samba

Post by jlehtone » 2022/06/29 18:56:27

TrevorH wrote:
2022/06/29 14:58:01
... and then you have to work out how many of those are still in /lib and should not be, how many have been overwritten with their correct 32 bit equivalents etc
To help in that, one can get a list that reveals "orphans" with:

Code: Select all

rpm -qf /usr/lib/*

sunnyD
Posts: 7
Joined: 2022/06/24 01:05:44

Re: Can't restart Samba

Post by sunnyD » 2022/06/30 05:58:36

Thank you for the replies! :)

I was trying to figure out what's the point, but I'm not sure what to look for through all the commands that you suggested me to do. Sorry about it.

Hear are the yum history list libtdb.i686.

Code: Select all

# yum history list libtdb.i686
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

ID     | Command line             | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
   256 | install libtdb-1.3.18-1. | 2022-06-27 09:56 | Install        |    1 EE
history list
TrevorH wrote:
2022/06/29 14:58:01
Try ls -la /usr/lib64/libsa* /usr/lib64/libdc* /usr/lib64/libsmb* /usr/lib64/libnd* /usr/lib64/libnet* /usr/lib64/libte* /usr/lib64/libconfig* /usr/lib64/libtdb.so.1 /usr/lib64/libtdb.so.1

Code: Select all

# ls -la /usr/lib64/libsa* /usr/lib64/libdc* /usr/lib64/libsmb* /usr/lib64/libnd* /usr/lib64/libnet* /usr/lib64/libte* /usr/lib64/libconfig* /usr/lib64/libtdb.so.1 /usr/lib64/libtdb.so.1
lrwxrwxrwx  1 root root      18 Nov 11  2019 /usr/lib64/libconfig.so.9 -> libconfig.so.9.1.3
lrwxrwxrwx  1 root root      20 Nov 11  2019 /usr/lib64/libconfig++.so.9 -> libconfig++.so.9.1.3
-rwxr-xr-x. 1 root root   49176 Jun 10  2014 /usr/lib64/libconfig.so.9.1.3
-rwxr-xr-x. 1 root root   95288 Jun 10  2014 /usr/lib64/libconfig++.so.9.1.3
lrwxrwxrwx  1 root root      26 Jun 27 09:37 /usr/lib64/libdcerpc-binding.so.0 -> libdcerpc-binding.so.0.0.1
-rwxr-xr-x  1 root root  138376 Feb  1 01:33 /usr/lib64/libdcerpc-binding.so.0.0.1
lrwxrwxrwx  1 root root      23 Jun 27 09:38 /usr/lib64/libdcerpc-samr.so.0 -> libdcerpc-samr.so.0.0.1
-rwxr-xr-x  1 root root   10792 Feb  1 01:32 /usr/lib64/libdcerpc-samr.so.0.0.1
lrwxrwxrwx  1 root root      18 Jun 27 09:37 /usr/lib64/libdcerpc.so.0 -> libdcerpc.so.0.0.1
-rwxr-xr-x  1 root root  214032 Feb  1 01:33 /usr/lib64/libdcerpc.so.0.0.1
lrwxrwxrwx  1 root root      24 Nov 11  2019 /usr/lib64/libdconf-dbus-1.so.0 -> libdconf-dbus-1.so.0.0.0
-rwxr-xr-x. 1 root root   54776 Nov  3  2018 /usr/lib64/libdconf-dbus-1.so.0.0.0
lrwxrwxrwx  1 root root      17 Nov 11  2019 /usr/lib64/libdconf.so.1 -> libdconf.so.1.0.0
-rwxr-xr-x. 1 root root   58888 Nov  3  2018 /usr/lib64/libdconf.so.1.0.0
lrwxrwxrwx  1 root root      18 Aug 11  2021 /usr/lib64/libndctl.so.6 -> libndctl.so.6.14.0
-rwxr-xr-x  1 root root  143872 Apr  1  2020 /usr/lib64/libndctl.so.6.14.0
lrwxrwxrwx  1 root root      15 Nov 11  2019 /usr/lib64/libndp.so.0 -> libndp.so.0.0.0
-rwxr-xr-x. 1 root root   24448 Aug  9  2019 /usr/lib64/libndp.so.0.0.0
lrwxrwxrwx  1 root root      23 Jun 27 09:37 /usr/lib64/libndr-krb5pac.so.0 -> libndr-krb5pac.so.0.0.1
-rwxr-xr-x  1 root root   64736 Feb  1 01:33 /usr/lib64/libndr-krb5pac.so.0.0.1
lrwxrwxrwx  1 root root      19 Jun 27 09:37 /usr/lib64/libndr-nbt.so.0 -> libndr-nbt.so.0.0.1
-rwxr-xr-x  1 root root   93336 Feb  1 01:33 /usr/lib64/libndr-nbt.so.0.0.1
lrwxrwxrwx  1 root root      15 Jun 27 09:37 /usr/lib64/libndr.so.0 -> libndr.so.0.2.0
-rwxr-xr-x  1 root root   98416 Feb  1 01:33 /usr/lib64/libndr.so.0.2.0
lrwxrwxrwx  1 root root      24 Jun 27 09:37 /usr/lib64/libndr-standard.so.0 -> libndr-standard.so.0.0.1
-rwxr-xr-x  1 root root 3283040 Feb  1 01:33 /usr/lib64/libndr-standard.so.0.0.1
-rwxr-xr-x  1 root root  422456 Feb  1 01:33 /usr/lib64/libnetapi.so.0
-rw-r--r--  1 root root  538482 Dec 11  2015 /usr/lib64/libnetcdff.a
lrwxrwxrwx  1 root root      19 Jul 31  2020 /usr/lib64/libnetcdff.so -> libnetcdff.so.5.3.1
lrwxrwxrwx  1 root root      19 Jul 31  2020 /usr/lib64/libnetcdff.so.5 -> libnetcdff.so.5.3.1
-rwxr-xr-x  1 root root  446912 Dec 11  2015 /usr/lib64/libnetcdff.so.5.3.1
-rw-r--r--  1 root root     961 Dec 11  2015 /usr/lib64/libnetcdf.settings
lrwxrwxrwx  1 root root      18 Jul 31  2020 /usr/lib64/libnetcdf.so -> libnetcdf.so.7.2.0
lrwxrwxrwx  1 root root      18 Jul 31  2020 /usr/lib64/libnetcdf.so.7 -> libnetcdf.so.7.2.0
-rwxr-xr-x  1 root root 1826408 Dec 11  2015 /usr/lib64/libnetcdf.so.7.2.0
lrwxrwxrwx  1 root root      17 Nov 11  2019 /usr/lib64/libnetcf.so.1 -> libnetcf.so.1.4.0
-rwxr-xr-x. 1 root root   79584 Aug  4  2017 /usr/lib64/libnetcf.so.1.4.0
lrwxrwxrwx  1 root root      31 Nov 11  2019 /usr/lib64/libnetfilter_conntrack.so.3 -> libnetfilter_conntrack.so.3.6.0
-rwxr-xr-x. 1 root root  125584 May 26  2017 /usr/lib64/libnetfilter_conntrack.so.3.6.0
lrwxrwxrwx  1 root root      18 Feb 25  2020 /usr/lib64/libnetpbm.so.11 -> libnetpbm.so.11.79
-rwxr-xr-x  1 root root  268008 Apr 11  2018 /usr/lib64/libnetpbm.so.11.79
lrwxrwxrwx  1 root root      20 Jun 23 13:50 /usr/lib64/libnetsnmp.so.31 -> libnetsnmp.so.31.0.2
-rwxr-xr-x  1 root root  849792 Apr  6 01:28 /usr/lib64/libnetsnmp.so.31.0.2
lrwxrwxrwx  1 root root      16 Aug 11  2021 /usr/lib64/libnettle.so -> libnettle.so.4.7
lrwxrwxrwx  1 root root      16 Aug 11  2021 /usr/lib64/libnettle.so.4 -> libnettle.so.4.7
-rwxr-xr-x  1 root root  201328 Apr 16  2021 /usr/lib64/libnettle.so.4.7
lrwxrwxrwx  1 root root      29 Jun 27 09:37 /usr/lib64/libsamba-credentials.so.0 -> libsamba-credentials.so.0.0.1
-rwxr-xr-x  1 root root   80864 Feb  1 01:33 /usr/lib64/libsamba-credentials.so.0.0.1
-rwxr-xr-x  1 root root 1350536 Feb  1 01:33 /usr/lib64/libsamba-errors.so.1
lrwxrwxrwx  1 root root      28 Jun 27 09:37 /usr/lib64/libsamba-hostconfig.so.0 -> libsamba-hostconfig.so.0.0.1
-rwxr-xr-x  1 root root  188952 Feb  1 01:33 /usr/lib64/libsamba-hostconfig.so.0.0.1
lrwxrwxrwx  1 root root      25 Jun 27 09:37 /usr/lib64/libsamba-passdb.so.0 -> libsamba-passdb.so.0.27.2
-rwxr-xr-x  1 root root  230672 Feb  1 01:33 /usr/lib64/libsamba-passdb.so.0.27.2
lrwxrwxrwx  1 root root      22 Jun 27 09:37 /usr/lib64/libsamba-util.so.0 -> libsamba-util.so.0.0.1
-rwxr-xr-x  1 root root  503816 Feb  1 01:33 /usr/lib64/libsamba-util.so.0.0.1
lrwxrwxrwx  1 root root      17 Jun 27 09:37 /usr/lib64/libsamdb.so.0 -> libsamdb.so.0.0.1
-rwxr-xr-x  1 root root  102080 Feb  1 01:33 /usr/lib64/libsamdb.so.0.0.1
lrwxrwxrwx  1 root root      22 Nov 11  2019 /usr/lib64/libsamplerate.so.0 -> libsamplerate.so.0.1.8
-rwxr-xr-x. 1 root root 1490248 Jun 10  2014 /usr/lib64/libsamplerate.so.0.1.8
lrwxrwxrwx  1 root root      17 Nov 11  2019 /usr/lib64/libsane.so -> libsane.so.1.0.24
lrwxrwxrwx  1 root root      17 Nov 11  2019 /usr/lib64/libsane.so.1 -> libsane.so.1.0.24
-rwxr-xr-x. 1 root root  183224 Oct 31  2018 /usr/lib64/libsane.so.1.0.24
lrwxrwxrwx  1 root root      17 Jun 23 13:49 /usr/lib64/libsasl2.so -> libsasl2.so.3.0.0
lrwxrwxrwx  1 root root      17 Jun 23 13:48 /usr/lib64/libsasl2.so.3 -> libsasl2.so.3.0.0
-rwxr-xr-x  1 root root  121312 Feb 24 22:27 /usr/lib64/libsasl2.so.3.0.0
lrwxrwxrwx  1 root root      17 Nov 11  2019 /usr/lib64/libsatyr.so.3 -> libsatyr.so.3.0.0
-rwxr-xr-x. 1 root root 2501264 Oct 31  2018 /usr/lib64/libsatyr.so.3.0.0
-rwxr-xr-x  1 root root  575640 Feb  1 01:33 /usr/lib64/libsmbconf.so.0
lrwxrwxrwx  1 root root      20 Nov 11  2019 /usr/lib64/libsmbios_c.so.2 -> libsmbios_c.so.2.2.1
-rwxr-xr-x. 1 root root  239800 Oct 31  2018 /usr/lib64/libsmbios_c.so.2.2.1
-rwxr-xr-x  1 root root   48320 Feb  1 01:33 /usr/lib64/libsmbldap.so.2
lrwxrwxrwx  1 root root      16 Jun 27 09:36 /usr/lib64/libtdb.so.1 -> libtdb.so.1.3.18
lrwxrwxrwx  1 root root      16 Jun 27 09:36 /usr/lib64/libtdb.so.1 -> libtdb.so.1.3.18
lrwxrwxrwx  1 root root      20 Aug 11  2021 /usr/lib64/libteamdctl.so.0 -> libteamdctl.so.0.1.5
-rwxr-xr-x  1 root root   23984 Oct  1  2020 /usr/lib64/libteamdctl.so.0.1.5
lrwxrwxrwx  1 root root      16 Aug 11  2021 /usr/lib64/libteam.so.5 -> libteam.so.5.6.0
-rwxr-xr-x  1 root root   53992 Oct  1  2020 /usr/lib64/libteam.so.5.6.0
lrwxrwxrwx  1 root root      31 Nov 11  2019 /usr/lib64/libtelepathy-farstream.so.3 -> libtelepathy-farstream.so.3.0.0
-rwxr-xr-x. 1 root root  168248 Jun 10  2014 /usr/lib64/libtelepathy-farstream.so.3.0.0
lrwxrwxrwx  1 root root      27 Nov 11  2019 /usr/lib64/libtelepathy-glib.so.0 -> libtelepathy-glib.so.0.84.1
-rwxr-xr-x. 1 root root 2387992 Apr 11  2018 /usr/lib64/libtelepathy-glib.so.0.84.1
lrwxrwxrwx  1 root root      28 Nov 11  2019 /usr/lib64/libtelepathy-logger.so.3 -> libtelepathy-logger.so.3.3.0
-rwxr-xr-x. 1 root root  210248 Jun 10  2014 /usr/lib64/libtelepathy-logger.so.3.3.0
-rw-r--r--. 1 root root      15 Sep  7  2017 /usr/lib64/libtermcap.so
lrwxrwxrwx  1 root root      19 Aug 11  2021 /usr/lib64/libtevent.so.0 -> libtevent.so.0.9.39
-rwxr-xr-x  1 root root   79040 Apr  2  2020 /usr/lib64/libtevent.so.0.9.39
lrwxrwxrwx  1 root root      23 Jun 27 09:37 /usr/lib64/libtevent-util.so.0 -> libtevent-util.so.0.0.1
-rwxr-xr-x  1 root root   19272 Feb  1 01:33 /usr/lib64/libtevent-util.so.0.0.1

I was going to find out what has been copied and overwritten to /usr/lib directory, but i have no idea what has been changed since my former colleague did it.
jlehtone wrote:
2022/06/29 18:56:27
TrevorH wrote:
2022/06/29 14:58:01
... and then you have to work out how many of those are still in /lib and should not be, how many have been overwritten with their correct 32 bit equivalents etc
To help in that, one can get a list that reveals "orphans" with:

Code: Select all

rpm -qf /usr/lib/*
I guess compare {ls -la /usr/lib64/libsa* /usr/lib64/libdc* /usr/lib64/libsmb* /usr/lib64/libnd* /usr/lib64/libnet* /usr/lib64/libte* /usr/lib64/libconfig* /usr/lib64/libtdb.so.1 /usr/lib64/libtdb.so.1} to the output of rpm -qf /usr/lib/*.

Code: Select all

file /usr/lib/libsamba-credentials.so.0 is not owned by any package
file /usr/lib/libsamba-credentials.so.0.0.1 is not owned by any package
file /usr/lib/libsamba-errors.so.1 is not owned by any package
file /usr/lib/libsamba-hostconfig.so.0 is not owned by any package
file /usr/lib/libsamba-hostconfig.so.0.0.1 is not owned by any package
file /usr/lib/libsamba-passdb.so.0 is not owned by any package
file /usr/lib/libsamba-passdb.so.0.27.1 is not owned by any package
file /usr/lib/libsamba-passdb.so.0.27.2 is not owned by any package
file /usr/lib/libsamba-util.so.0 is not owned by any package
file /usr/lib/libsamba-util.so.0.0.1 is not owned by any package
file /usr/lib/libsamdb.so.0 is not owned by any package
file /usr/lib/libsamdb.so.0.0.1 is not owned by any package
file /usr/lib/libsamplerate.so.0 is not owned by any package
file /usr/lib/libsamplerate.so.0.1.8 is not owned by any package
file /usr/lib/libsane.so is not owned by any package
file /usr/lib/libsane.so.1 is not owned by any package
file /usr/lib/libsane.so.1.0.24 is not owned by any package
file /usr/lib/libsapdbS.so is not owned by any package
file /usr/lib/libsapdbS.so.2 is not owned by any package
file /usr/lib/libsapdbS.so.2.0.0 is not owned by any package
file /usr/lib/libsasl2.so is not owned by any package
file /usr/lib/libsasl2.so.3 is not owned by any package
file /usr/lib/libsasl2.so.3.0.0 is not owned by any package
file /usr/lib/libsatyr.so.3 is not owned by any package
file /usr/lib/libsatyr.so.3.0.0 is not owned by any package
file /usr/lib/libdcerpc-binding.so.0 is not owned by any package
file /usr/lib/libdcerpc-binding.so.0.0.1 is not owned by any package
file /usr/lib/libdcerpc-samr.so.0 is not owned by any package
file /usr/lib/libdcerpc-samr.so.0.0.1 is not owned by any package
file /usr/lib/libdcerpc.so.0 is not owned by any package
file /usr/lib/libdcerpc.so.0.0.1 is not owned by any package
file /usr/lib/libdconf-dbus-1.so.0 is not owned by any package
file /usr/lib/libdconf-dbus-1.so.0.0.0 is not owned by any package
file /usr/lib/libdconf.so.1 is not owned by any package
file /usr/lib/libdconf.so.1.0.0 is not owned by any package
file /usr/lib/libsmbclient.so.0 is not owned by any package
file /usr/lib/libsmbclient.so.0.5.0 is not owned by any package
file /usr/lib/libsmbconf.so.0 is not owned by any package
file /usr/lib/libsmbios_c.so.2 is not owned by any package
file /usr/lib/libsmbios_c.so.2.2.1 is not owned by any package
file /usr/lib/libsmbldap.so.2 is not owned by any package
file /usr/lib/libndctl.so.6 is not owned by any package
file /usr/lib/libndctl.so.6.13.0 is not owned by any package
file /usr/lib/libndctl.so.6.14.0 is not owned by any package
file /usr/lib/libndp.so.0 is not owned by any package
file /usr/lib/libndp.so.0.0.0 is not owned by any package
file /usr/lib/libndr-krb5pac.so.0 is not owned by any package
file /usr/lib/libndr-krb5pac.so.0.0.1 is not owned by any package
file /usr/lib/libndr-nbt.so.0 is not owned by any package
file /usr/lib/libndr-nbt.so.0.0.1 is not owned by any package
file /usr/lib/libndr.so.0 is not owned by any package
file /usr/lib/libndr.so.0.1.0 is not owned by any package
file /usr/lib/libndr.so.0.2.0 is not owned by any package
file /usr/lib/libndr-standard.so.0 is not owned by any package
file /usr/lib/libndr-standard.so.0.0.1 is not owned by any package
file /usr/lib/libnetapi.so.0 is not owned by any package
file /usr/lib/libnetcdff.a is not owned by any package
file /usr/lib/libnetcdff.so is not owned by any package
file /usr/lib/libnetcdff.so.5 is not owned by any package
file /usr/lib/libnetcdff.so.5.3.1 is not owned by any package
file /usr/lib/libnetcdf.settings is not owned by any package
file /usr/lib/libnetcdf.so is not owned by any package
file /usr/lib/libnetcdf.so.7 is not owned by any package
file /usr/lib/libnetcdf.so.7.2.0 is not owned by any package
file /usr/lib/libnetcf.so.1 is not owned by any package
file /usr/lib/libnetcf.so.1.4.0 is not owned by any package
file /usr/lib/libnetfilter_conntrack.so.3 is not owned by any package
file /usr/lib/libnetfilter_conntrack.so.3.6.0 is not owned by any package
file /usr/lib/libnetpbm.so.11 is not owned by any package
file /usr/lib/libnetpbm.so.11.79 is not owned by any package
file /usr/lib/libnetsnmp.so.31 is not owned by any package
file /usr/lib/libnetsnmp.so.31.0.2 is not owned by any package
file /usr/lib/libnettle.so is not owned by any package
file /usr/lib/libnettle.so.4 is not owned by any package
file /usr/lib/libnettle.so.4.7 is not owned by any package
file /usr/lib/libteamdctl.so.0 is not owned by any package
file /usr/lib/libteamdctl.so.0.1.5 is not owned by any package
file /usr/lib/libteam.so.5 is not owned by any package
file /usr/lib/libteam.so.5.4.0 is not owned by any package
file /usr/lib/libteam.so.5.6.0 is not owned by any package
file /usr/lib/libtelepathy-farstream.so.3 is not owned by any package
file /usr/lib/libtelepathy-farstream.so.3.0.0 is not owned by any package
file /usr/lib/libtelepathy-glib.so.0 is not owned by any package
file /usr/lib/libtelepathy-glib.so.0.84.1 is not owned by any package
file /usr/lib/libtelepathy-logger.so.3 is not owned by any package
file /usr/lib/libtelepathy-logger.so.3.3.0 is not owned by any package
file /usr/lib/libtemplate.so is not owned by any package
file /usr/lib/libtemplate.so.2 is not owned by any package
file /usr/lib/libtemplate.so.2.0.0 is not owned by any package
file /usr/lib/libtermcap.so is not owned by any package
file /usr/lib/libtevent.so.0 is not owned by any package
file /usr/lib/libtevent.so.0.9.37 is not owned by any package
file /usr/lib/libtevent.so.0.9.39 is not owned by any package
file /usr/lib/libtevent-util.so.0 is not owned by any package
file /usr/lib/libtevent-util.so.0.0.1 is not owned by any package
file /usr/lib/libconfig.so.9 is not owned by any package
file /usr/lib/libconfig++.so.9 is not owned by any package
file /usr/lib/libconfig.so.9.1.3 is not owned by any package
file /usr/lib/libconfig++.so.9.1.3 is not owned by any package
file /usr/lib/libtdb.so.1.3.16 is not owned by any package
libtdb-1.3.18-1.el7.i686
These are the logs that have name of libsa* libdc* libsmb* libnd* libnet* libte* libconfig* libtdb.so.1* .

Let me know if I am wrong.

I really appreciate your help!

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Can't restart Samba

Post by jlehtone » 2022/06/30 13:08:48

sunnyD wrote:
2022/06/30 05:58:36

Code: Select all

# yum history list libtdb.i686
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

ID     | Command line             | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
   256 | install libtdb-1.3.18-1. | 2022-06-27 09:56 | Install        |    1 EE
history list
... the output of rpm -qf /usr/lib/*.

Code: Select all

...
file /usr/lib/libconfig++.so.9.1.3 is not owned by any package
file /usr/lib/libtdb.so.1.3.16 is not owned by any package
libtdb-1.3.18-1.el7.i686
One downside of "rpm -qf" is that it does not show the name of a file that belongs to a package.
In your output there was one line that lists name of package: "libtdb-1.3.18-1.el7.i686"
All other lines were "file filename is not owned by any package".

It is also interesting that yum transaction (ID=256) did install only one package and that it did have some extra output (EE).
One can see details of that transaction with:

Code: Select all

yum history info 256
Since we are pretty sure that we do not need the libtdb.i686, we should remove it.
Either with yum remove libtdb.i686 or yum history undo 256
The latter removes also packages that were installed as dependencies in the transaction.


If I would install libtdb.i686 on CentOS 7 that has no 32-bit packages, then yum would install glibc.i686 and nss-softokn-freebl.i686 as dependencies. Three packages.
Do you get a long list with rpm -qa | grep i686 ?

One can parse the names from the output of rpm and do something:

Code: Select all

rpm -qf /usr/lib/* | grep "is not owned by any package" | while read A B C ; do echo ${B} ; done
In that I did just "echo" the name.

Alas, on system that has no 32-bit packages there are files (and directories) I have at least one directory that "is not owned by any package", yet it contains files that are from a package. So, simple doing something for every hit is not proper. One can get complex though:

Code: Select all

rpm -qf /usr/lib/* | grep "is not owned by any package" | while read A B C ; do echo ${B} ; [[ -d ${B} ]] || ls -l ${B} /usr/lib64/${B#/usr/lib/}; done

sunnyD
Posts: 7
Joined: 2022/06/24 01:05:44

Re: Can't restart Samba

Post by sunnyD » 2022/07/01 07:46:40

Hi jlehtone! Thank you for the reply!

Here are the output of yum history info 256 and rpm -qa | grep i686.

Code: Select all

# yum history info 256
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Transaction ID : 256
Begin time     : Mon Jun 27 09:56:54 2022
Begin rpmdb    : 2598:d37c70bdd9012272677bce1c880daa01876893fb
End time       :            09:56:55 2022 (1 seconds)
End rpmdb      : 2599:271ea7076af1cc646a44151d84b418f6612d5faa
User           :  <sunnyD>
Return-Code    : Success
Command Line   : install libtdb-1.3.18-1.el7.i686
Transaction performed with:
    Installed     rpm-4.11.3-48.el7_9.x86_64                       @updates
    Installed     subscription-manager-1.24.51-1.el7.centos.x86_64 @updates
    Installed     yum-3.4.3-168.el7.centos.noarch                  @base
    Installed     yum-metadata-parser-1.1.4-10.el7.x86_64          @anaconda
    Installed     yum-plugin-fastestmirror-1.1.31-54.el7_8.noarch  @base
Packages Altered:
    Install libtdb-1.3.18-1.el7.i686 @base
Scriptlet output:
   1 /sbin/ldconfig: File /lib/libboost_program_options.so is empty, not checked.
   2 /sbin/ldconfig: File /lib/libboost_program_options.so.1.53.0 is empty, not checked.
   3 /sbin/ldconfig: libraries libtdb.so.1 and libtdb.so.1.3.16 in directory /lib have same soname but different type.
history info
...

Code: Select all

# rpm -qa | grep i686
glibc-2.17-326.el7_9.i686
readline-6.2-11.el7.i686
nss-3.67.0-4.el7_9.i686
libsepol-2.5-10.el7.i686
libcom_err-1.42.9-19.el7.i686
libstdc++-4.8.5-44.el7.i686
krb5-libs-1.15.1-51.el7_9.i686
libgcc-4.8.5-44.el7.i686
openssl-libs-1.0.2k-25.el7_9.i686
libtdb-1.3.18-1.el7.i686
libselinux-2.5-15.el7.i686
nss-util-3.67.0-1.el7_9.i686
sqlite-3.7.17-8.el7_7.1.i686
nss-softokn-freebl-3.67.0-3.el7_9.i686
ncurses-libs-5.9-14.20130511.el7_4.i686
zlib-1.2.7-20.el7_9.i686
pcre-8.32-17.el7.i686
nspr-4.32.0-1.el7_9.i686
libstdc++-devel-4.8.5-44.el7.i686
libverto-0.2.5-4.el7.i686
nss-pem-1.0.3-7.el7.i686
keyutils-libs-1.5.8-3.el7.i686
nss-softokn-3.67.0-3.el7_9.i686

So, should I remove libtdb.i686 either with yum remove libtdb.i686 or yum history undo 256 ?

Thank you for commands that I can parse the package names, "not owned by any package", but what should i do with those outputs?

Move all out of /usr/lib directories?

I sincerely thank you.

Post Reply