package collectd 4.10.1-2.1ubuntu7 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
collectd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Error popped up unexpectedly. Not sure where it is coming from.
ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: collectd 4.10.1-2.1ubuntu7
ProcVersionSign
Uname: Linux 2.6.32-42-generic i686
ApportVersion: 2.0.1-0ubuntu14
Architecture: i386
Date: Sun Nov 11 14:46:31 2012
DuplicateSignature:
Setting up collectd (4.10.1-2.1ubuntu7) ...
Restarting statistics collection and monitoring daemon: collectdNot restarting collectd.
invoke-rc.d: initscript collectd, action "restart" failed.
dpkg: error processing collectd (--configure):
subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
SourcePackage: collectd
Title: package collectd 4.10.1-2.1ubuntu7 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to precise on 2012-09-17 (55 days ago)
tags: | removed: need-duplicate-check |
It happens only when collectd cannot resolve current host's FQDN. Here's what I found in /var/log/syslog:
Jan 10 16:50:43 collectd collectd[24039]: Looking up "************" failed. You have set the "FQDNLookup" option, but I cannot resolve my hostname to a fully qualified domain name. Please fix you network configuration.
I edited /etc/collectd/ collectd. conf and changed
FQDNLookup true
to
FQDNLookup false
Now the installation goes through as the init script is able to successfuly restart collectd. So the bugfix would be to install the collectd package with the FQDNLookup set to false.
Lucian.