kerberos-configs fails to configure if dnsdomainname fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kerberos-configs (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Intrepid |
Fix Released
|
Undecided
|
Unassigned | ||
Jaunty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When I upgraded from 8.04 to 8.10, installation of the package krb5-config broke. I previously had a /etc/krb5.conf which I may have done some changes to but unfortunately it got lost in the debugging process.
What I discovered was that my /etc/hostname didn't include the domainname part of my hostname. This lead
dnsdomainname to fail with the error "Unknown host". When I changed this to an fqdn the installation succeed.
The error output from my apt-get install is shown below.
=======
mattiasa@host:~$ apt-get install krb5-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
krb5-config is already the newest version.
krb5-config set to manually installed.
The following packages were automatically installed and are no longer required:
libsl0-heimdal libotp0-heimdal
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up krb5-config (1.19) ...
dnsdomainname: Unknown host
dpkg: error processing krb5-config (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
krb5-config
E: Sub-process /usr/bin/dpkg returned an error code (1)
=============
mattiasa@host:~$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10
=============
mattiasa@host:~$ apt-cache policy krb5-config
krb5-config:
Installed: 1.19
Candidate: 1.19
Version table:
*** 1.19 0
500 http://
100 /var/lib/
Changed in kerberos-configs: | |
assignee: | nobody → frank |
Changed in kerberos-configs: | |
assignee: | frank → nobody |
tags: |
added: verification-done removed: verification-needed |
Changed in kerberos-configs (Ubuntu Jaunty): | |
status: | New → Fix Released |
Mattias Amnefelt <email address hidden> writes:
> Public bug reported:
>
> When I upgraded from 8.04 to 8.10, installation of the package
> krb5-config broke. I previously had a /etc/krb5.conf which I may have
> done some changes to but unfortunately it got lost in the debugging
> process.
>
> What I discovered was that my /etc/hostname didn't include the
> domainname part of my hostname. This lead dnsdomainname to fail with the
> error "Unknown host". When I changed this to an fqdn the installation
> succeed.
The following patch should fix this. It will be in the next release.
diff --git a/debian/changelog b/debian/changelog
index bfee20f..e4b31f6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+kerberos-configs (1.22) UNRELEASED; urgency=low
+
+ * Suppress errors from dnsdomainname when attempting to find a default
+ for the local realm. (LP: #296719)
+
+ -- Russ Allbery <email address hidden> Tue, 11 Nov 2008 12:47:01 -0800
+
kerberos-configs (1.21) unstable; urgency=low
* Translation updates: krb4-config. config b/debian/ krb4-config. config krb4-config. config krb4-config. config default_ realm && [ "x$RET" != "x" ] ; then default_ realm "$RET" default_ realm `dnsdomainname | tr 'a-z' 'A-Z'` `dnsdomainname 2>/dev/null || true` default_ realm `echo "$domain" | tr 'a-z' 'A-Z'`
diff --git a/debian/
index c891da7..3bf1c26 100755
--- a/debian/
+++ b/debian/
@@ -10,7 +10,8 @@ if [ "x$RET" = "x" ] ; then
if db_get krb5-config/
db_set krb4-config/
else
- db_set krb4-config/
+ domain=
+ db_set krb4-config/
fi
fi krb5-config. config b/debian/ krb5-config. config krb5-config. config krb5-config. config default_ realm && [ "x$RET" != "x" ] ; then default_ realm "$RET" `dnsdomainname` `dnsdomainname 2>/dev/null || true`
diff --git a/debian/
index cb717d8..f9a3b3e 100755
--- a/debian/
+++ b/debian/
@@ -10,7 +10,7 @@ if [ "x$RET" = "x" ] ; then
if db_get krb4-config/
db_set krb5-config/
else
- domain=
+ domain=
# This is a hack, copied from krb5.conf, since we don't have any files
# when the config script runs.
-- www.eyrie. org/~eagle/>
Russ Allbery (<email address hidden>) <http://