[Samba] Problem with libldb1

Viktor Trojanovic viktor at troja.ch
Sun Sep 22 12:53:39 UTC 2019


I just ran "apt upgrade" on my DC (Ubuntu 18.04, Samba 4.10 from Louis
Repo) and it ended with error messages about unmet dependencies in regards
to libldb1.

root at DC1:~# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 python3-ldb : Depends: libldb1 (= 2:1.5.5-1bionic~1) but
2:1.5.4-1ubuntu1.2 is installed
 python3-samba : Depends: libldb1 (>= 2:1.5.5~) but 2:1.5.4-1ubuntu1.2 is
installed
                 Recommends: python3-gpg but it is not installed
 samba : Depends: libldb1 (>= 2:1.5.5~) but 2:1.5.4-1ubuntu1.2 is installed
 samba-dsdb-modules : Depends: libldb1 (> 2:1.5.5~) but 2:1.5.4-1ubuntu1.2
is installed
 samba-libs : Depends: libldb1 (>= 2:1.5.5) but 2:1.5.4-1ubuntu1.2 is
installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or
specify a solution).

I read some older threads here that say that an error with libldb1 is
expected due to some change in the ldb tools but it also says that the
command apt --fix-broken install should fix it which it apparently does not
for me.

root at DC1:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer
required:
  gettext-base libfreetype6 libpng16-16 libpython-stdlib
libpython2.7-minimal
  libpython2.7-stdlib linux-base python-minimal python2.7 python2.7-minimal
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libldb1
The following packages will be upgraded:
  libldb1
1 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
34 not fully installed or removed.
Need to get 0 B/141 kB of archives.
After this operation, 44.0 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 16384 files and directories currently installed.)
Preparing to unpack .../libldb1_2%3a1.5.5-1bionic~1_amd64.deb ...
Unpacking libldb1:amd64 (2:1.5.5-1bionic~1) over (2:1.5.4-1ubuntu1.2) ...
dpkg: error processing archive
/var/cache/apt/archives/libldb1_2%3a1.5.5-1bionic~1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/ldb/libldb-cmdline.so',
which is also in package ldb-tools 2:1.5.4-1ubuntu1.2
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libldb1_2%3a1.5.5-1bionic~1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Would appreciate your advice on how to go from here.

Thanks,
Viktor


More information about the samba mailing list