On 22.09.2019 15:07, Rowland penny via samba wrote:> On 22/09/2019 13:53, Viktor Trojanovic via samba wrote: >> 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. >> > Yes, but did you run 'apt-get update' first ? > > Rowland > >Yes, apt update, then apt upgrade, as usual. Viktor
On 22/09/2019 14:10, Viktor Trojanovic via samba wrote:> On 22.09.2019 15:07, Rowland penny via samba wrote: >> On 22/09/2019 13:53, Viktor Trojanovic via samba wrote: >>> 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. >>> >> Yes, but did you run 'apt-get update' first ? >> >> Rowland >> >> > Yes, apt update, then apt upgrade, as usual. > > Viktor > >Then why isn't it trying to upgrade libldb1 ? Louis's repo has: bionic-samba410|main|amd64: libldb1 2:1.5.5-1bionic~1 A bit more searching in your initial post turns this up: 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 This looks like something for Louis to sort out, but, perhaps, if you remove 'ldb-tools', the upgrade may work. Rowland
On 22.09.2019 15:10, Viktor Trojanovic wrote:> On 22.09.2019 15:07, Rowland penny via samba wrote: >> On 22/09/2019 13:53, Viktor Trojanovic via samba wrote: >>> 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. >>> >> Yes, but did you run 'apt-get update' first ? >> >> Rowland >> >> > Yes, apt update, then apt upgrade, as usual. > > Viktor >I'm just reviewing the logs now and it seems that just by running a regular system upgrade, I somehow screwed up Samba.. it won't start anymore. "daemon failed to start: Samba failed to prime database.". I'm reading on the wiki this can happen after a downgrade but I didn't downgrade anything.. all that seems to have happened today is an upgrade from version 4.10.x to 4.10.8, which failed. I could really use help with this, this is a production system that needs to be ready tomorrow..
On 22/09/2019 14:31, Viktor Trojanovic via samba wrote:> > On 22.09.2019 15:10, Viktor Trojanovic wrote: >> On 22.09.2019 15:07, Rowland penny via samba wrote: >>> On 22/09/2019 13:53, Viktor Trojanovic via samba wrote: >>>> 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. >>>> >>> Yes, but did you run 'apt-get update' first ? >>> >>> Rowland >>> >>> >> Yes, apt update, then apt upgrade, as usual. >> >> Viktor >> > I'm just reviewing the logs now and it seems that just by running a > regular system upgrade, I somehow screwed up Samba.. it won't start > anymore. "daemon failed to start: Samba failed to prime database.". > > I'm reading on the wiki this can happen after a downgrade but I didn't > downgrade anything.. all that seems to have happened today is an > upgrade from version 4.10.x to 4.10.8, which failed. > > I could really use help with this, this is a production system that > needs to be ready tomorrow.. > >What exactly are you upgrading ? It seems likely it is a DC, so try removing 'ldb-tools' and trying the upgrade again. If this doesn't work and you have more than one DC, you may have to demote this DC and fix Samba (probably remove and reinstall), then join as a DC again. Rowland
On 22.09.2019 15:30, Rowland penny via samba wrote:> On 22/09/2019 14:10, Viktor Trojanovic via samba wrote: >> On 22.09.2019 15:07, Rowland penny via samba wrote: >>> On 22/09/2019 13:53, Viktor Trojanovic via samba wrote: >>>> 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. >>>> >>> Yes, but did you run 'apt-get update' first ? >>> >>> Rowland >>> >>> >> Yes, apt update, then apt upgrade, as usual. >> >> Viktor >> >> > Then why isn't it trying to upgrade libldb1 ? > > Louis's repo has: > > bionic-samba410|main|amd64: libldb1 2:1.5.5-1bionic~1 > > A bit more searching in your initial post turns this up: > > 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 > > This looks like something for Louis to sort out, but, perhaps, if you > remove 'ldb-tools', the upgrade may work. > > Rowland > > >Looks like I'm blocked to do anything.. do you happen to know how I can circumvent this issue? root at DC1:/var/cache/apt# apt remove ldb-tools 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 to be installed ?python3-samba : Depends: libldb1 (>= 2:1.5.5~) but 2:1.5.4-1ubuntu1.2 is to be installed ???????????????? Recommends: python3-gpg but it is not going to be installed ?samba : Depends: libldb1 (>= 2:1.5.5~) but 2:1.5.4-1ubuntu1.2 is to be installed ?samba-dsdb-modules : Depends: libldb1 (> 2:1.5.5~) but 2:1.5.4-1ubuntu1.2 is to be installed ?samba-libs : Depends: libldb1 (>= 2:1.5.5) but 2:1.5.4-1ubuntu1.2 is to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). Viktor