PDA

View Full Version : [ubuntu] 11.10 Samba install issue broken packages



rtrask
February 14th, 2012, 07:42 AM
Prelude:

I did a clean Dual boot install of Windows 7, and the Desktop version of Oneiric 11.10 x64. I have installed a few other applications, (Oracle 11.2 XE, Citrix, ...). I have a 800 Gig NTFS mounted partition on the system, that I share with Windows 7. Recently I decided to try and make some of the mirrored disk space I have on the desktop accessible via Samba to my windows laptop for backups.

Main Problem:

When I attempt to install samba, I get the following:


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: samba-common (= 2:3.5.11~dfsg-1ubuntu2) but 2:3.5.11~dfsg-1ubuntu2.1 is to be installed
Depends: libwbclient0 (= 2:3.5.11~dfsg-1ubuntu2) but 2:3.5.11~dfsg-1ubuntu2.1 is to be installed
E: Unable to correct problems, you have held broken packages.

I've searched around, but I've not found anything which seems particularly relevant, to fixing these broken packages. I tried the -f (force) option on apt-get, with the same result. I also tried apt-get clean; apt-get update; apt-get autoremove samba (twice) without any change in the results. My fear is that either the Citrix application, or oracle might have a dependency that on the older package. Any ideas?

Secondary Question:
I have not used Samba in several years, is this the best solution for what I want to do?

Your Thoughts / Comments are welcome?

tamkt
February 14th, 2012, 09:21 AM
You can look


The following packages have unmet dependencies:
samba : Depends: samba-common (= 2:3.5.11~dfsg-1ubuntu2) but 2:3.5.11~dfsg-1ubuntu2.1 is to be installed
Depends: libwbclient0 (= 2:3.5.11~dfsg-1ubuntu2) but 2:3.5.11~dfsg-1ubuntu2.1 is to be installed
E: Unable to correct problems, you have held broken packages.


Try sudo apt-get install samba*

rtrask
February 14th, 2012, 09:44 PM
Thanks tamkt,


Try sudo apt-get install samba*

I tried it, but got the same error. (see below)

I also tried "apt-get autoremove samba*" followed by a second attempt of "apt-get install samba*" with the same result.

The problem is with the broken packages. I assume that the statement "you have held broken packages." means that I have an application installed that has dependencies on the earlier version of the library "2:3.5.11~dfsg-1ubuntu2" Does anyone know how to tell what depends upon the broken packages? Or know how to force the package to update?



sudo apt-get install samba*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'samba-common-bin' for regex 'samba*'
Note, selecting 'samba-common' for regex 'samba*'
Note, selecting 'samba' for regex 'samba*'
Note, selecting 'samba-tools' for regex 'samba*'
Note, selecting 'samba4' for regex 'samba*'
Note, selecting 'samba4-common' for regex 'samba*'
Note, selecting 'samba-dbg' for regex 'samba*'
Note, selecting 'samba-doc' for regex 'samba*'
Note, selecting 'samba-doc-pdf' for regex 'samba*'
Note, selecting 'samba4-clients' for regex 'samba*'
Note, selecting 'samba-client' for regex 'samba*'
Note, selecting 'dpsyco-samba' for regex 'samba*'
Note, selecting 'ebox-samba' for regex 'samba*'
Note, selecting 'gadmin-samba' for regex 'samba*'
Note, selecting 'gadmin-samba-dbg' for regex 'samba*'
Note, selecting 'gosa-plugin-samba' for regex 'samba*'
Note, selecting 'libsamba-util-dev' for regex 'samba*'
Note, selecting 'libsamba-hostconfig0' for regex 'samba*'
Note, selecting 'libsamba-util0' for regex 'samba*'
Note, selecting 'libsamba-hostconfig-dev' for regex 'samba*'
Note, selecting 'libsamba-policy-dev' for regex 'samba*'
Note, selecting 'libsamba-policy0' for regex 'samba*'
Note, selecting 'samba-dsdb-modules' for regex 'samba*'
Note, selecting 'samba-ldb-tools' for regex 'samba*'
Note, selecting 'samba4-dev' for regex 'samba*'
Note, selecting 'python-samba' for regex 'samba*'
Note, selecting 'python2.7-samba' for regex 'samba*'
Note, selecting 'samba4-testsuite' for regex 'samba*'
Note, selecting 'samba4-common-bin' for regex 'samba*'
Note, selecting 'samba-gtk' for regex 'samba*'
Note, selecting 'samba4-dsdb-modules' for regex 'samba*'
Note, selecting 'system-config-samba' for regex 'samba*'
Note, selecting 'smbclient' instead of 'samba-client'
Note, selecting 'python-samba' instead of 'python2.7-samba'
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: libwbclient0 (= 2:3.5.11~dfsg-1ubuntu2) but 2:3.5.11~dfsg-1ubuntu2.1 is to be installed
samba-tools : Conflicts: samba4 but 4.0.0~alpha17~git20110807.dfsg1-1ubuntu1 is to be installed
Conflicts: samba4-testsuite but 4.0.0~alpha17~git20110807.dfsg1-1ubuntu1 is to be installed
samba4 : Recommends: samba4-dsdb-modules but it is not installable
Conflicts: samba-tools but 2:3.5.11~dfsg-1ubuntu2 is to be installed
samba4-clients : Conflicts: smbclient
samba4-testsuite : Conflicts: samba-tools but 2:3.5.11~dfsg-1ubuntu2 is to be installed
smbclient : Conflicts: samba4-clients but 4.0.0~alpha17~git20110807.dfsg1-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.

rtrask
February 15th, 2012, 09:32 PM
Update:
OK so it looks like the issue is not with my system, but with the Ubuntu repositories. I had miss read what apt-get was telling me, and thought the issue was that I had an older version of libwbclient0 installed which could not be updated for some reason.

In fact, the issue is that apt-get is getting a version of libwbclient0 that is newer than the one required by samba. The one that is getting installed is 2:3.5.11~dfsg-1ubuntu2.1 which is intended to be used with samba4. I tried to install samba4, but the installation fails with "ProvisioningError: guess_names: 'realm =' was not specified in supplied". Evidently samba4 is still in alpha status and is not ready for prime time. (see http://ubuntuforums.org/archive/index.php/t-1850220.html) Does anyone know how to coerce apt-get or the synaptic package manager to install the correct version of libwbclient0?

rtrask
February 15th, 2012, 11:57 PM
Solved:
Here is what I had to do.

sudo apt-get install synaptic
sudo synaptic

Filter on samba

Look at all of the samba packages that are already installed, and and mark any that begin with 4.0.0 for complete removal.

Apply the changes

Mark samba, samba-common, system-config-samba for installation

Apply the changes.

The samba guide that I was following (http://www.noobslab.com/2011/07/samba-installation-on-ubuntu-11-041110.html) said to install glade, and python-glade as well, which I did. I'm not sure what purpose these last 2 serve though.

Everything seems to work as intended, the only problem is that Windows 7 will not let me use it for back ups (arrg!)