I am running Ubuntu Server 14.04.4 and I didn't install Samba with the original OS setup. I would like to install it now, but I keep getting a error about broken packages. It appears that the main hangup is the samba-libs
dependency. It says:
Depends: libldb1 (< 1:1.1.25~) but 2:1.1.17-2 is to be installed
But I already have the latest libldb1
installed. I've tried almost everything I can google, but maybe I'm overlooking something. Any pointers would be greatly appreciated.
Here's whats happening:
root@MAILSVR:/etc/apt# sudo apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed.
This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies: samba : Depends: python-samba but it is not going to be installed
Depends: samba-common-bin (= 2:4.3.8+dfsg-0ubuntu0.14.04.2) but it is not going to be installed
Depends: samba-libs (= 2:4.3.8+dfsg-0ubuntu0.14.04.2) but it is not going to be installed
Recommends: samba-dsdb-modules but it is not going to be installed
Recommends: samba-vfs-modules but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Here's what aptitude
gives me:
root@MAILSVR:/etc/apt# aptitude install samba
The following NEW packages will be installed:
libwbclient0{a} python-crypto{a} python-ldb{ab} python-samba{a} python-talloc{a} python-tdb{ab} samba samba-common{a} samba-common-bin{a} samba-dsdb-modules{a}
samba-libs{ab} samba-vfs-modules{a} tdb-tools{a}
0 packages upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,519 kB of archives. After unpacking 48.3 MB will be used.
The following packages have unmet dependencies:
python-tdb : Depends: libtdb1 (= 1.3.8-0ubuntu0.14.04.1) but 1.3.8-2 is installed.
samba-libs : Depends: libldb1 (< 1:1.1.25~) but 2:1.1.17-2 is installed.
python-ldb : Depends: libldb1 (= 1:1.1.24-0ubuntu0.14.04.1) but 2:1.1.17-2 is installed.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) python-ldb [Not Installed]
2) python-samba [Not Installed]
3) python-tdb [Not Installed]
4) samba [Not Installed]
5) samba-common-bin [Not Installed]
6) samba-dsdb-modules [Not Installed]
7) samba-libs [Not Installed]
8) samba-vfs-modules [Not Installed]
Leave the following dependencies unresolved:
9) samba-common recommends samba-common-bin
Accept this solution? [Y/n/q/?]
samba-libs
error:
root@MAILSVR:/etc/apt# apt-get install samba-libs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
samba-libs : Depends: libldb1 (< 1:1.1.25~) but 2:1.1.17-2 is to be installed
E: Unable to correct problems, you have held broken packages.
sudo dpkg --configure -a
then runningsudo apt-get update --fix-missing
see what errors if any you get .. you can add them to your question .. may point us in a direction to start lookingsudo dpkg -i --force-overwrite /var/cache/apt/archives/name_of_samba.deb
Then after runsudo apt-get install -f
to see if there are any errors. not sure if this would work and if you would also have to force install samba-libs and or samba-commonroot@MAILSVR:/var/cache/apt/archives# ls libssl1.0.0_1.0.1f-1ubuntu2.19_amd64.deb libtasn1-6_3.4-3ubuntu0.4_amd64.deb lock openssl_1.0.1f-1ubuntu2.19_amd64.deb partial