← Back to team overview

tieto team mailing list archive

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

 

I believe this is fixed since quite some time now. At some point
software-properties-common was added to the ubuntu-server metapackage,
and that pulls in packagekit.

Still, if you don't have it installed, realm complains like this:
root@g-adclient1:~# realm -v join ad1.example.com
 * Resolving: _ldap._tcp.ad1.example.com
 * Performing LDAP DSE lookup on: 10.51.0.5
 * Successfully discovered: ad1.example.com
Password for Administrator: 
 * Unconditionally checking packages
 * Resolving required packages
 ! PackageKit not available: The name org.freedesktop.PackageKit was not provided by any .service files
 ! Necessary packages are not installed: sssd-tools sssd libnss-sss libpam-sss adcli
realm: Couldn't join realm: Necessary packages are not installed: sssd-tools sssd libnss-sss libpam-sss adcli


If selecting winbind, then:
root@g-adclient1:~# realm -v join ad1.example.com --client-software=winbind
 * Resolving: _ldap._tcp.ad1.example.com
 * Performing LDAP DSE lookup on: 10.51.0.5
 * Successfully discovered: ad1.example.com
Password for Administrator: 
 * Unconditionally checking packages
 * Resolving required packages
 ! PackageKit not available: The name org.freedesktop.PackageKit was not provided by any .service files
 ! Necessary packages are not installed: winbind libpam-winbind samba-common-bin
realm: Couldn't join realm: Necessary packages are not installed: winbind libpam-winbind samba-common-bin

So you can either install those packages, or install packagekit and let it do it for you:
root@g-adclient1:~# realm -v join ad1.example.com --client-software=winbind
 * Resolving: _ldap._tcp.ad1.example.com
 * Performing LDAP DSE lookup on: 10.51.0.5
 * Successfully discovered: ad1.example.com
Password for Administrator: 
 * Unconditionally checking packages
 * Resolving required packages
 * Installing necessary packages: samba-common-bin libpam-winbind winbind
 * LANG=C LOGNAME=root /usr/bin/net -s /var/cache/realmd/realmd-smb-conf.WZ5TQ0 -U Administrator ads join ad1.example.com
Enter Administrator's password:
Using short domain name -- AD1
Joined 'G-ADCLIENT1' to dns domain 'ad1.example.com'
 * LANG=C LOGNAME=root /usr/bin/net -s /var/cache/realmd/realmd-smb-conf.WZ5TQ0 -U Administrator ads keytab create
Enter Administrator's password:
 * /usr/sbin/update-rc.d winbind enable
 * /usr/sbin/service winbind restart
 * Successfully enrolled machine in realm


Since it tells you what is missing if packagekit isn't installed, and doesn't crash in a bad way, I think adding a dependency or even a recommends on packagekit is too hard, but I can settle for a Suggests.

-- 
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:
  Confirmed

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