realmd samba-common-bin dependencies
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | realmd (Ubuntu) |
Undecided
|
Unassigned | ||
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._
* 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+
realm: Couldn't join realm: Failed to enroll machine in realm. See diagnostics.
------------
The sources list of the server:
------------
# deb http://
# deb http://
# deb http://
# http://
# See http://
# newer versions of the distribution.
deb http://
deb-src http://
## Major bug fix updates produced after the final release of the
## distribution.
deb http://
deb-src http://
## 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://
deb-src http://
deb http://
deb-src http://
## 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://
deb-src http://
deb http://
deb-src http://
## 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://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
---------
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.
trusty-updates: samba-common-bin (2:4.1.
The installed version of realmd is 0.15.0-1 amd64
Ubuntu trusty 14.04
# dpkg -l realmd
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii realmd 0.15.0-1 amd64 DBus service for configuring kerberos and other online identities
| Launchpad Janitor (janitor) wrote : | #3 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in realmd (Ubuntu): | |
| status: | New → Confirmed |
| Brian R (brianr-5) wrote : | #4 |
Is there a workaround?
| Elias Probst (eliasp) wrote : | #5 |
Workaround:
- make sure the required packages are installed
- uncomment the line "samba-common-bin = /usr/bin/net" from /usr/lib/
- stop realmd (it will be automatically restarted when needed): "sudo killall realmd"
Try again…
My Workaround was to disable the "trusty-updates" repositories in /etc/apt/
| Thiago Martins (martinx) wrote : | #7 |
My workaround (I think) was to install packagekit, but I'm not 100% sure... I'll test it more this week...
| Thiago Martins (martinx) wrote : | #8 |
BTW, yes, installing packagekit fixed the problem... I did:
killall aptd
apt-get install packagekit
Then, `realm -v join domain.com -U Administrator` worked!
| Thiago Martins (martinx) wrote : | #9 |
This BUG might be related to this: https:/
| Thiago Martins (martinx) wrote : | #10 |
Also, instead of installing packagekit (I mean, before installing it), I tried to add the following lines to /etc/realmd.conf:
--
[service]
automatic-install = no
--
But it did not fixed the problem... I previously installed all the packages by hand, still did not worked... With packagekit installed, it goes smoothly...
Installing packagekit improves the situation, but I also must install adcli, then everything works:
killall aptd
apt-get install packagekit adcli
reaml join ...
| Myles Gray (mutant-tractor) wrote : | #12 |
Bug still present - needed to install packagekit to allow realm join to complete successfully.
| Veiko (veiko-ohbugger) wrote : | #13 |
Wow this is still bugged after so much time.
I ended up on this page after doing a fresh ubuntu 14.01 install with all updates. Needed to join it into a domain, instead i got this after typing realm join --verbose mydomain.me
And yes, the simple fix works - replacing aptd with packagekit, as other people already pointed out.
| Lorenzo (lore-cfr) wrote : | #14 |
Still here in 14.10:
root@samba:~# realm --verbose join ad.testbed.com -U Administrator
* Resolving: _ldap._
* Performing LDAP DSE lookup on: 192.168.1.25
* Successfully discovered: ad.testbed.com
Password for Administrator:
* Unconditionally checking packages
* Resolving required packages
* Installing necessary packages: samba-common-bin
! Failed to enroll machine in realm: The version 2:4.1.11+
realm: Couldn't join realm: Failed to enroll machine in realm. See diagnostics.
| tags: | added: trusty utopic |
| Alex Hart (alexjhart) wrote : | #15 |
If I apt-get install packagekit before installing realmd and running join, everything works. Seems like the realmd package should just have packagekit dependency to resolve this?


here the lines from /var/log/syslog:
----- PackageKit: INFO: CreateTransaction() was called PackageKit: INFO: Initializing PackageKit transaction PackageKit: INFO: SetHints() was called: ['locale=C', 'background=false', 'interactive= false'] PackageKit: INFO: Resolve() was called: ['sssd-tools', 'sssd', 'libnss-sss', 'libpam-sss', 'samba-common-bin'] apt/transaction /f7644f3b7ca948 67b265291f88162 c0a apt/transaction /f7644f3b7ca948 67b265291f88162 c0a apt/transaction /f7644f3b7ca948 67b265291f88162 c0a PackageKit: INFO: CreateTransaction() was called PackageKit: INFO: Initializing PackageKit transaction PackageKit: INFO: SetHints() was called: ['locale=C', 'background=false', 'interactive= false', 'frontend- socket= /var/cache/ realmd/ gpk-f54bd85a800 54491ac6db44426 3e8927. socket' ] PackageKit: INFO: InstallPackages() was called: only-trusted, ['sssd- tools;1. 11.5-1ubuntu3; amd64;Ubuntu' , 'sssd;1. 11.5-1ubuntu3; amd64;Ubuntu' , 'libnss- sss;1.11. 5-1ubuntu3; amd64;Ubuntu' , 'libpam- sss;1.11. 5-1ubuntu3; amd64;Ubuntu' , 'samba- common- bin;2:4. 1.6+dfsg- 1ubuntu2. 14.04.1; amd64;Ubuntu' , 'samba- common- bin;2:4. 1.6+dfsg- 1ubuntu2; amd64;Ubuntu' ] apt/transaction /f54bd85a800544 91ac6db444263e8 927 ['sssd- tools=1. 11.5-1ubuntu3' , 'sssd=1. 11.5-1ubuntu3' , 'libnss- sss=1.11. 5-1ubuntu3' , 'libpam- sss=1.11. 5-1ubuntu3' , 'samba- common- bin=2:4. 1.6+dfsg- 1ubuntu2. 14.04.1' , 'samba- common- bin=2:4. 1.6+dfsg- 1ubuntu2' ], signature= dbus.Signature( 's')), dbus.Array([], signature= dbus.Signature( 's')), dbus.Array([], signature= dbus.Signature( 's')), dbus.Array([], signature= dbus.Signature( 's')), dbus.Array([], signature= dbus.Signature( 's')), dbus.Array([], signature= dbus.Signature( 's'))
Jun 24 13:55:43 nbg-web13 AptDaemon.
Jun 24 13:55:43 nbg-web13 AptDaemon.
Jun 24 13:55:43 nbg-web13 AptDaemon.
Jun 24 13:55:43 nbg-web13 AptDaemon.
Jun 24 13:55:43 nbg-web13 AptDaemon.Worker: INFO: Simulating trans: /org/debian/
Jun 24 13:55:43 nbg-web13 AptDaemon.Worker: INFO: Processing transaction /org/debian/
Jun 24 13:55:44 nbg-web13 AptDaemon.Worker: INFO: Finished transaction /org/debian/
Jun 24 13:55:44 nbg-web13 AptDaemon.
Jun 24 13:55:44 nbg-web13 AptDaemon.
Jun 24 13:55:44 nbg-web13 AptDaemon.
Jun 24 13:55:44 nbg-web13 AptDaemon.
Jun 24 13:55:44 nbg-web13 AptDaemon.Worker: INFO: Simulating trans: /org/debian/
Jun 24 13:55:45 nbg-web13 AptDaemon.Worker: INFO: Committing packages: dbus.Array(
---------