[Bug 398009] [NEW] global: pkg fails to configure if FQDN unknown
Launchpad Bug Tracker
398009 at bugs.launchpad.net
Wed Oct 19 05:20:26 UTC 2011
You have been subscribed to a public bug by Martin Pitt (pitti):
Binary package hint: global
Package: global
Version: 5.7.1-1
The following command in the postinst fails:
hostname --fqdn
outputing this:
hostname: Unknown host
Indeed, my fqdn was unknown at the time, but that shouldn't
have caused my upgrade to Jaunty to fail.
[Impact]
This bug causes upgrades to fail. At this time, the bug has 23 duplicates, and there is a steady trickle of reports from affected users on Lucid and other old releases.
While there are no reverse dependencies, Apt reports the upgrade as
failed, and dpkg reports broken packages.
[Development Fix]
Package 5.7.1-2 contains this patch:
--- global-5.7.1/debian/global.postinst
+++ global-5.7.1/debian/global.postinst
@@ -2,7 +2,7 @@
set -e
if [ "$1" = "configure" ];
then
- HOST=`hostname --fqdn`
+ HOST=$(hostname --fqdn) || HOST="localhost"
htconfig -I -a http://${HOST}/cgi-bin/gsearch.cgi -p /var/lib/gsearch/pathdata /usr/lib/cgi-bin
fi
The only other change is 5.7.1-2 is an update of the Depends: in the
control file.
[Stable Fix]
See [Development Fix]
[Test Case]
The postinst script should succeed on a system where /etc/hostname contains an unqualified hostname.
[Regression Potential]
Fail to identify how this could be harmful. (They all say that, don't they?)
ProblemType: Package
Architecture: i386
Dependencies:
libgcc1 1:4.3.3-5ubuntu4
gcc-4.3-base 4.3.3-5ubuntu4
findutils 4.4.0-2ubuntu4
libc6 2.9-4ubuntu6
DistroRelease: Ubuntu 9.04
ErrorMessage:
ErrorMessage: subprocess post-installation script returned error exit status 1
Package: global 5.7.1-1
SourcePackage: global
Title: package global 5.7.1-1 failed to install/upgrade:
Uname: Linux 2.6.27-14-generic i686
** Affects: global (Ubuntu)
Importance: Low
Status: Fix Released
** Affects: global (Ubuntu Lucid)
Importance: Undecided
Status: New
** Affects: global (Debian)
Importance: Unknown
Status: Fix Released
** Tags: apport-package i386
--
global: pkg fails to configure if FQDN unknown
https://bugs.launchpad.net/bugs/398009
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list