registrating clients doesn't work when installing the package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
landscape-client (Ubuntu) |
Fix Released
|
High
|
Mathias Gug |
Bug Description
Binary package hint: landscape-client
If apt is run with a debconf priority of medium landscape account information is asked during the package installation. However landscape-config fails:
Setting up landscape-client (1.0.18-0ubuntu1) ...
* Running update-motd failed.
* Reloading system message bus config... [ OK ]
Traceback (most recent call last):
File "/usr/bin/
from landscape.
File "/usr/lib/
from landscape.
File "/usr/lib/
from landscape.
File "/usr/lib/
from landscape.reactor import TwistedReactor
File "/usr/lib/
import gobject
ImportError: No module named gobject
The reason is that the package python-gobject uses python-support which uses dpkg triggers to install python modules. Since dpkg triggers are run after all postinst scripts, the gobject module is not available when landscape-
At a first glance it seems most of the work done by landscape-config could be done in the postinst script. The only issue is sending the registration request to the landscape server.
NB: in order to use debconf at medium priority when installing packages, modify the apt configuration:
mathiaz@
// Pre-configure all packages with debconf before they are installed.
// If you don't like it, comment it out.
DPkg::Pre-
Related branches
Changed in landscape-client: | |
importance: | Undecided → High |
Changed in landscape-client: | |
assignee: | nobody → mathiaz |
This bug was fixed in the package landscape-client - 1.0.18-0ubuntu2
---------------
landscape-client (1.0.18-0ubuntu2) intrepid; urgency=low
[ Mathias Gug ] -client. Requires a landscape account.
landscape- common doesn't install unecessary packages in the landscape- client. postrm: delete /etc/landscape/ client. conf when landscape- client. postinst: remove sysinfo_in_motd debconf question
* Split the package into two packages:
- landscape-common: has the python libraries and the landscape-sysinfo
command. A landscape account is not required to use this package.
- landscape-client: has all the binaries required to run the
landscape
- debian/control:
+ move some dependencies to landscape-client so that
default -server install.
+ move python-gobject to a Pre-Depends so that landscape-config can
register the system during the postinst (LP: #268838).
* debian/control:
- depend on python-smartpm instead of smartpm-core.
* debian/
the package is purged.
* debian/
as it wasn't used.
[ Christopher Armstrong ] landscape- sysinfo. wrapper: New script to run landscape-sysinfo landscape. landscape- client. postinst: Link wrapper into place.
* Fixes for (LP: #268352).
- scripts/
with leading whitespace.
- debian/rules: Install wrapper into /usr/share/
- debian/
-- Mathias Gug <email address hidden> Mon, 15 Sep 2008 17:21:53 -0400