← Back to team overview

tieto team mailing list archive

[Bug 1333694] Re: realmd samba-common-bin dependencies

 

All this being said, on trusty this bug is valid and still happens. Likely because there are many samba updates available, and it is incorrectly selecting an old one:
root@trusty:~# apt-cache policy samba-common
samba-common:
  Installed: (none)
  Candidate: 2:4.3.11+dfsg-0ubuntu0.14.04.20
  Version table:
     2:4.3.11+dfsg-0ubuntu0.14.04.20+esm8 0
       -32768 https://esm.ubuntu.com/ubuntu/ trusty-infra-security/main amd64 Packages
     2:4.3.11+dfsg-0ubuntu0.14.04.20 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     2:4.1.6+dfsg-1ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

Yet it selected 2:4.1.6+dfsg-1ubuntu2.

Xenial (which has 0.16.2) and later behave like in my previous comment.
It stops if the required packages are not installed, and packagekit is
also not available, and if packagekit is available, it installs what is
needed without failing.

Since trusty has reached the normal EOL, I suggest to use the workaround
that is to manually install the required packages before invoking the
realm tool.

** Also affects: realmd (Ubuntu Trusty)
   Importance: Undecided
       Status: New

** Changed in: realmd (Ubuntu Trusty)
       Status: New => Won't Fix

** Changed in: realmd (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Tieto,
which is subscribed to a duplicate bug report (1319454).
https://bugs.launchpad.net/bugs/1333694

Title:
  realmd samba-common-bin dependencies

Status in realmd package in Ubuntu:
  Fix Released
Status in realmd source package in Trusty:
  Won't Fix

Bug description:
  realmd fails to install samba-common-bin package because of
  dependencies.

  The executed command on a fresh installed server: 
  ---------
  # apt-get install realmd
  # realm --verbose join -U admin domain.example.com
  * Resolving: _ldap._tcp.domain.example.com
   * Performing LDAP DSE lookup on: xx.xx.xx.18
   * Performing LDAP DSE lookup on: xx.xx.xx.17
   * Successfully discovered: domain.example.com
  Password for admin:
   * Unconditionally checking packages
   * Resolving required packages
   * Installing necessary packages: samba-common-bin, sssd-tools, sssd, libnss-sss, libpam-sss
   ! Failed to enroll machine in realm: The following packages have unmet dependencies:

  samba-common-bin: Depends: samba-common (= 2:4.1.6+dfsg-1ubuntu2) but 2:4.1.6+dfsg-1ubuntu2.14.04.1 is to be installed
                    Depends: python2.7:any but it is a virtual package
                    Depends: samba-libs (= 2:4.1.6+dfsg-1ubuntu2) but 2:4.1.6+dfsg-1ubuntu2.14.04.1 is to be installed

  realm: Couldn't join realm: Failed to enroll machine in realm. See diagnostics.
  ------------

  
  The sources list of the server: 
  ------------
  # deb http://archive.ubuntu.com/ubuntu/ trusty main restricted

  # deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted
  # deb http://security.ubuntu.com/ubuntu trusty-security main restricted
  # http://trusty-repository.nbg.atrada.net:8088/ubuntu trusty atrada

  # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
  # newer versions of the distribution.
  deb http://archive.ubuntu.com/ubuntu/ trusty main restricted
  deb-src http://archive.ubuntu.com/ubuntu/ trusty main restricted

  ## Major bug fix updates produced after the final release of the
  ## distribution.
  deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted
  deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted

  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
  ## team. Also, please note that software in universe WILL NOT receive any
  ## review or updates from the Ubuntu security team.
  deb http://archive.ubuntu.com/ubuntu/ trusty universe
  deb-src http://archive.ubuntu.com/ubuntu/ trusty universe
  deb http://archive.ubuntu.com/ubuntu/ trusty-updates universe
  deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates universe

  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
  ## team, and may not be under a free licence. Please satisfy yourself as to
  ## your rights to use the software. Also, please note that software in
  ## multiverse WILL NOT receive any review or updates from the Ubuntu
  ## security team.
  deb http://archive.ubuntu.com/ubuntu/ trusty multiverse
  deb-src http://archive.ubuntu.com/ubuntu/ trusty multiverse
  deb http://archive.ubuntu.com/ubuntu/ trusty-updates multiverse
  deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates multiverse

  ## N.B. software from this repository may not have been tested as
  ## extensively as that contained in the main release, although it includes
  ## newer versions of some applications which may provide useful features.
  ## Also, please note that software in backports WILL NOT receive any review
  ## or updates from the Ubuntu security team.
  deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
  deb-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

  
  deb http://security.ubuntu.com/ubuntu trusty-security main restricted
  deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
  deb http://security.ubuntu.com/ubuntu trusty-security universe
  deb-src http://security.ubuntu.com/ubuntu trusty-security universe
  deb http://security.ubuntu.com/ubuntu trusty-security multiverse
  deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse
  ---------

  
  It seems like realm tries to install samba-common-bin from the trusty repository while apt tries to satifsfy the dependencies from the trusty-updates repository.

  trusty: samba-common-bin (2:4.1.6+dfsg-1ubuntu2) 
  trusty-updates: samba-common-bin (2:4.1.6+dfsg-1ubuntu2.14.04.1)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/realmd/+bug/1333694/+subscriptions