Can't install Samba package

Asked by Angus Peacock

I am trying to install Samba on Ubuntu 6.06 using apt-get and get the following:

{
# apt-get install samba
Reading package lists... Done
Building dependency tree... 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.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  samba: Depends: samba-common (= 3.0.22-1ubuntu3) but 3.0.22-1ubuntu3.1 is to be installed
E: Broken packages
}

Any ideas? samba-common (=3.0.22-1ubuntu3.1) is already installed.

Thanks,
Angus

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alexandre Vassalotti (avassalotti) said :
#1

Try:
$ sudo apt-get install -f

and:
$ sudo dpkg --configure -a

Revision history for this message
Ubuntu User (anotherubuntuuser) said :
#2

Angus-

It looks like it will work (in Dapper at least), if you type:

sudo apt-get install samba

If any of these comments has answered your question, please consider closing this request.

Thanks

Jim Jones

Revision history for this message
Angus Peacock (anguspeacock) said :
#3

Thanks Jim, that's exaclty what I did (and yes, on dapper). It seems that
the problem is that I have the dependancy samba-common already installed and
it's version is 3.0.22-lubuntu3.1. The available version of samba is
3.0.22-lubuntu3. I am scared to downgrade the samba-common package to
lubuntu3 because it appears that there are other packages that depend on it.

Rgds
Angus Peacock

On 10/3/06, Jim Jones <email address hidden> wrote:
>
> Support request #1946 on Ubuntu changed:
> https://launchpad.net/distros/ubuntu/+ticket/1946
>
> Comment:
> Angus-
>
> It looks like it will work (in Dapper at least), if you type:
>
> sudo apt-get install samba
>
> If any of these comments has answered your question, please consider
> closing this request.
>
> Thanks
>
> Jim Jones
>

Revision history for this message
Adriaan Peeters (apeeters) said :
#4

Hi,

Make sure you have the security updates enabled in synaptic (or manually in /etc/apt/sources.list). Then reload the package list (manually: sudo apt-get update). Then install samba as explained above.

If it still fails, please post the first 4 lines of the output of the following commands:
apt-cache showpkg samba
apt-cache showpkg samba-common

Revision history for this message
Adriaan Peeters (apeeters) said :
#5

And while you are at it, please also list the output of:

apt-cache policy samba
apt-cache policy samba-common

Adriaan

Revision history for this message
elgaelo (elgaelo) said :
#6

Hi people out there,

I have the same problem that Angus. It seem's that the 'samba-common' package is newer that the one that the 'samba' package wants. In other words, ¿is it safe to uninstall the 3.0.22-1ubuntu-3.1 samba-common? One of its dependencies is ubuntu-desktop and it doesn't look the kind of package you might want to remove from the system.

As suggested by Adriaan, the output of the 'apt-cache' policy and showpkg command is listed below:

elgaelo@elgaelo-laptop:/etc/samba$ apt-cache showpkg samba
Package: samba
Versions:
3.0.22-1ubuntu3(/var/lib/apt/lists/es.archive.ubuntu.com_ubuntu_dists_dapper_main_binary-i386_Packages)

Reverse Depends:
  smbclient,samba 2.999+3.0.alpha21-4
  samba-common,samba 3.0.20b-1
  edubuntu-server,samba
  printbill,samba
  lprfax,samba
  linpopup,samba
  education-main-server,samba
  dpsyco-samba,samba
  debian-edu-config,samba 3.0.0
  winbind,samba 2.2.3-2
  swat,samba 3.0.22-1ubuntu3
  smbclient,samba 2.999+3.0.alpha21-4
  samba-dbg,samba 3.0.22-1ubuntu3
  samba-common,samba 3.0.20b-1
  libpam-smbpass,samba
  edubuntu-server,samba
  autofs,samba 2.0.6-1
Dependencies:
3.0.22-1ubuntu3 - samba-common (5 3.0.22-1ubuntu3) netbase (0 (null)) logrotate (0 (null)) libacl1 (2 2.2.11-1) libattr1 (2 2.4.4-1) libc6 (2 2.3.4-1) libcomerr2 (2 1.33-3) libcupsys2 (2 1.1.99.rc2) libgnutls12 (2 1.2.5) libkrb53 (2 1.4.2) libldap2 (2 2.1.17-1) libpam0g (2 0.76) libpopt0 (2 1.7) debconf (18 0.5) debconf-2.0 (0 (null)) libpam-runtime (2 0.76-13.1) libpam-modules (0 (null)) lsb-base (2 3.0-6) smbldap-tools (0 (null)) samba-common (1 2.0.5a-2)
Provides:
3.0.22-1ubuntu3 -
Reverse Provides:

elgaelo@elgaelo-laptop:/etc/samba$ apt-cache showpkg samba-common
Package: samba-common
Versions:
3.0.22-1ubuntu3.1(/var/lib/dpkg/status)
3.0.22-1ubuntu3(/var/lib/apt/lists/es.archive.ubuntu.com_ubuntu_dists_dapper_main_binary-i386_Packages)

Reverse Depends:
  smbclient,samba-common 3.0.22-1ubuntu3.1
  lisa,samba-common
  sork-passwd-h3,samba-common
  sork-passwd,samba-common
  smb4k,samba-common
  lisa,samba-common
  jags,samba-common
  dpsyco-samba,samba-common
  winbind,samba-common 3.0.22-1ubuntu3
  smbfs,samba-common 3.0.22-1ubuntu3
  smbclient,samba-common 3.0.22-1ubuntu3
  samba,samba-common 2.0.5a-2
  samba,samba-common 3.0.22-1ubuntu3
  libpam-smbpass,samba-common 3.0.22-1ubuntu3
  gnome-system-tools,samba-common
  dhcp3-client,samba-common 3.0.0beta1-2
  backuppc,samba-common
Dependencies:
3.0.22-1ubuntu3.1 - libpam-modules (0 (null)) libc6 (2 2.3.4-1) libcomerr2 (2 1.33-3) libkrb53 (2 1.4.2) libldap2 (2 2.1.17-1) libpopt0 (2 1.7) debconf (18 0.5) debconf-2.0 (0 (null)) samba (3 3.0.20b-1)
3.0.22-1ubuntu3 - libpam-modules (0 (null)) libc6 (2 2.3.4-1) libcomerr2 (2 1.33-3) libkrb53 (2 1.4.2) libldap2 (2 2.1.17-1) libpopt0 (2 1.7) debconf (18 0.5) debconf-2.0 (0 (null)) samba (3 3.0.20b-1)
Provides:
3.0.22-1ubuntu3.1 -
3.0.22-1ubuntu3 -
Reverse Provides:

elgaelo@elgaelo-laptop:/etc/samba$ apt-cache policy samba
samba:
  Installed: (none)
  Candidate: 3.0.22-1ubuntu3
  Version table:
     3.0.22-1ubuntu3 0
        500 http://es.archive.ubuntu.com dapper/main Packages

elgaelo@elgaelo-laptop:/etc/samba$ apt-cache policy samba-common
samba-common:
  Installed: 3.0.22-1ubuntu3.1
  Candidate: 3.0.22-1ubuntu3.1
  Version table:
 *** 3.0.22-1ubuntu3.1 0
        100 /var/lib/dpkg/status
     3.0.22-1ubuntu3 0
        500 http://es.archive.ubuntu.com dapper/main Packages

Regards,
Gaël.

Revision history for this message
yusuf (yusuf132) said :
#7

Hi, I got the same problem. My samba-common is higher than requested by samba. I think I can solve it. I'm downloading the samba package now.

Here is how I do it.
It seems like the last time I update, some of the packages hasn't been updated. ie samba-common has been upgraded, but samba hasn't (I havn't installed samba previously).

Here are the steps :
1. From Synaptic Package Manager > Repositories > Ubuntu Software tab. I chose Download from : Main Server (don't know whether this is necessary :D).
 Then go to Updates tab. I chose Important Security Updates and Recommended Updates. Klik Close
2. Klik Reload
3. I exit Synaptic and klik update button from menu panel (the one near date&clock).
4. Update
5. Run Synaptic Package Manager again. Now my samba package has been updated too. And I can install it. This also fix slapd dependency problem, I'm using in Ubuntu 8.04 64 bit. Also other problems like php5-mysql install problem.

In short, I have update my 8.04 previously, but the update server hasn't release all the necessaries. Like the server update samba-common, but hasn't release update for samba. So I have to update again now, after they are all released.

thankyou.

Can you help with this problem?

Provide an answer of your own, or ask Angus Peacock for more information if necessary.

To post a message you must log in.