Package: apticron
Version: 1.1.42
Severity: wishlist
Apticron uses the "hostname" command to provide identifying information to
place in the email sent to the admin.
On a newly installed server this was giving cron output which was confusing due
to the hostname not being resolvable.
The hostname command manual page suggests that "hostname -i" be replaced with
"hostname --all-ip-addresses" and
"hostname -f" be replaced with "hostname --all-fqdns" to avoid this issue.
Doing this removed the warnings from cron and gave useful identifying
information for
the email.
diff apticron.orig apticron
85c85
< SYSTEM=`/bin/hostname -f`
---
> SYSTEM=`/bin/hostname --all-fqdns`
105c105
< IPADDRESSES=`(echo $( /bin/hostname -i ) ;
---
> IPADDRESSES=`(echo $( /bin/hostname --all-ip-addresses ) ;
This results in:
apticron has detected that some packages need upgrading on:
109-231-72-75.flexiscale.com
[ 109.231.72.75 ]
When "hostname -i" and "-f" were producing warnings.
And the expected output:
apticron has detected that some packages need upgrading on:
disraeli.zynet.net
[ 109.231.72.75 ]
When I ensured that /etc/hosts has the correct entry for 109.231.72.75
I haven't tested on a machine with multiple IP addresses, or on one with IPv6
enabled.
-- System Information:
Debian Release: 6.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-25-hvmflexiant (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apticron depends on:
ii apt 0.8.10.3 Advanced front-end for dpkg
ii bsd-mailx [mailx] 8.1.2-0.20100314cvs-1 simple mail user agent
ii cron 3.0pl1-116 process scheduling daemon
ii debconf [debconf-2 1.5.36.1 Debian configuration management sy
ii heirloom-mailx [ma 12.4-2 feature-rich BSD mail(1)
ii ucf 3.0025+nmu1 Update Configuration File: preserv
Versions of packages apticron recommends:
ii apt-listchanges 2.85.7 package change history notificatio
ii iproute 20100519-3 networking and traffic control too
apticron suggests no packages.
-- debconf information:
apticron/notification: root
-- debsums errors found:
debsums: changed file /usr/sbin/apticron (from apticron package)
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]