freeipa-client has a hard dependency on "ntp" which is not wanted in lxd environment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
freeipa (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Note: the package is called "freeipa-client" but launchpad only lets me select "freeipa"]
The "freeipa-client" package has a hard dependency on "ntp".
However: when running Ubuntu inside an lxd container, ntpd cannot run: the host is responsible for setting the clock, not the container.
Hence I want to "apt-get remove ntp" from inside the container. But if I do so, this forcibly removes the "freeipa-client" package as well, because of the dependency. This in turn leaves a whole heap of dangling packages - see below - which are vulnerable to being accidentally removed.
Proposal: change to "Recommends: ntp" instead of "Depends: ntp"
-------
# apt-get remove ntp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
bind9utils certmonger cracklib-runtime freeipa-common ieee-data iproute
libavahi-client3 libavahi-
libc-ares2 libcollection4 libcrack2 libcups2 libcurl3 libcurl3-nss libdhash1
libfreetype6 libini-config5 libipa-hbac0 libjbig0 libjpeg-turbo8 libjpeg8
liblcms2-2 libldb1 libnfsidmap2 libnl-3-200 libnl-route-3-200 libnspr4
libnss-sss libnss3 libnss3-nssdb libnss3-tools libopts25 libpam-pwquality
libpam-sss libpath-utils1 libpwquality-common libpwquality1 libref-array1
libsmbclient libsss-idmap0 libsss-nss-idmap0 libsss-sudo libtdb1 libtevent0
libtiff5 libwebp5 libwebpmux1 libxmlrpc-core-c3 libxslt1.1 oddjob
oddjob-mkhomedir python-bs4 python-cffi python-cffi-backend python-chardet
python-
python-enum34 python-gi python-gssapi python-html5lib python-idna
python-imaging python-ipaclient python-ipaddress python-ipalib
python-jwcrypto python-ldap python-libipa-hbac python-lxml python-memcache
python-netaddr python-nss python-pil python-
python-pyasn1 python-pycparser python-qrcode python-setuptools python-six
python-sss python-talloc python-usb python-yubico samba-libs sssd sssd-ad
sssd-ad-common sssd-common sssd-ipa sssd-krb5 sssd-krb5-common sssd-ldap
sssd-proxy
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
freeipa-client ntp
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 2002 kB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: freeipa-client 4.3.1-0ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-34-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Thu Oct 6 09:05:52 2016
Ec2AMI: ami-c06b1eb3
Ec2AMIManifest: (unknown)
Ec2Availability
Ec2InstanceType: t2.medium
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
SourcePackage: freeipa
UpgradeStatus: No upgrade log present (probably fresh install)
Or maybe what's needed is a virtual package called e.g. "synchronized- time", which freeipa-client depends on and is provided by ntp.
Then you could install a dummy package inside the container, which also provides "synchronized-time"