Samba won't install because of broken packages
The issue was with my package sources so I changed my /etc/apt/sources.list back to default with the help of repogen.simplylinux.ch
Then I ran these commands:
apt-get update
apt-get autoremove libtdb1 --purge
apt-get install libtdb1=1.3.8-0ubuntu0.14.04.1
apt-get install samba
Done. Thx for your assistance!
The following command helped me to install samba over Ubuntu 18.04.2 LTS:
sudo aptitude install samba
Output:
The following NEW packages will be installed:
attr{a} ibverbs-providers{a} libcephfs2{a} libibverbs1{a} libldb1{a}
libnl-route-3-200{a} librados2{a} libtdb1{a} python-crypto{a}
python-dnspython{a} python-ldb{a} python-samba{a} python-tdb{a} samba
samba-common{a} samba-common-bin{a} samba-dsdb-modules{ab} samba-libs{ab}
samba-vfs-modules{a} tdb-tools{a}
0 packages upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.1 MB of archives. After unpacking 70.7 MB will be used.
The following packages have unmet dependencies:
samba-dsdb-modules : Depends: libwbclient0 (= 2:4.7.6+dfsg~ubuntu-0ubuntu2) but 2:4.7.6+dfsg~ubuntu-0ubuntu2.9 is installed
samba-libs : Depends: libwbclient0 (= 2:4.7.6+dfsg~ubuntu-0ubuntu2) but 2:4.7.6+dfsg~ubuntu-0ubuntu2.9 is installed
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) python-samba [Not Installed]
2) samba [Not Installed]
3) samba-common-bin [Not Installed]
4) samba-dsdb-modules [Not Installed]
5) samba-libs [Not Installed]
6) samba-vfs-modules [Not Installed]
Leave the following dependencies unresolved:
7) samba recommends samba-dsdb-modules
8) samba-common recommends samba-common-bin
Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:
Downgrade the following packages:
1) libwbclient0 [2:4.7.6+dfsg~ubuntu-0ubuntu2.9 (now) -> 2:4.7.6+dfsg~ubuntu
Accept this solution? [Y/n/q/?] y
The following packages will be DOWNGRADED:
libwbclient0
The following NEW packages will be installed:
attr{a} ibverbs-providers{a} libcephfs2{a} libibverbs1{a} libldb1{a}
libnl-route-3-200{a} librados2{a} libtdb1{a} python-crypto{a}
python-dnspython{a} python-ldb{a} python-samba{a} python-tdb{a} samba
samba-common{a} samba-common-bin{a} samba-dsdb-modules{a} samba-libs{a}
samba-vfs-modules{a} tdb-tools{a}
.......
samba
[2019/07/11 12:31:24.139070, 0] ../lib/util/debug.c:1053(reopen_logs_internal)
Unable to open new log file '/var/log/samba/log.%m': Permission denied
[2019/07/11 12:31:24.139119, 0] ../source4/smbd/server.c:448(binary_smbd_main)
samba version 4.7.6-Ubuntu started.
Copyright Andrew Tridgell and the Samba Team 1992-2017