Package: apticron
Version: 1.1.46
Severity: normal
Tags: patch
Since not so long (I don't remember exactly, but probably shorter
than a month), apticron mails include warnings like these:
#v+
The following packages are currently pending an upgrade since the last run:
sh: warning: setlocale: LC_ALL: cannot change locale (en)
sh: warning: setlocale: LC_ALL: cannot change locale (en)
sh: warning: setlocale: LC_ALL: cannot change locale (en)
cpp-4.5 4.5.2-11
#v-
They are caused by the line(s)
VER=`LC_ALL=en /usr/bin/apt-cache policy $PKG |\
/bin/grep Candidate: | /usr/bin/cut -f 4 -d \ `
and the fact that there is no "en" locale on the affected systems:
#v+
$ locale -a
C
POSIX
de_AT
de_AT.iso88591
de_AT.iso885915@euro
de_AT.utf8
de_AT@euro
en_US
en_US.iso88591
en_US.iso885915
en_US.utf8
#v-
I know that this is not a change in apticron (judging from the git
repo, the "LC_ALL=en .." has been there since ages), and I'm not sure
what else has changed; nevertheless it might be worth fixing, and
changing the locale from 'en' to 'C' should be enough to achieve the
same and silence the warnings. At least it works for me :)
#v+
--- apticron.orig 2011-04-27 09:07:24.000000000 +0200
+++ apticron 2011-04-27 09:07:39.000000000 +0200
@@ -199,7 +199,7 @@
PKGPATH="/${DIRCACHE}archives/"
for PKG in $PKGNAMES ; do
- VER=`LC_ALL=en /usr/bin/apt-cache policy $PKG |\
+ VER=`LC_ALL=C /usr/bin/apt-cache policy $PKG |\
/bin/grep Candidate: | /usr/bin/cut -f 4 -d \ `
VERFILE=`echo "$VER" | /bin/sed -e "s/:/%3a/g"`
if ls ${PKGPATH}${PKG}_${VERFILE}_*.deb >& /dev/null ; then
#v-
Cheers,
gregor
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (998, 'testing'), (998, 'stable'), (101, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.30.6.20090909
Locale: LANG=C, LC_CTYPE=de_AT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages apticron depends on:
ii apt 0.8.14.1 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.38 Debian configuration management sy
ii dpkg 1.16.0.2 Debian package management system
ii mailx 1:20081101-2 Transitional package for mailx ren
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 20110315-1 networking and traffic control too
apticron suggests no packages.
-- debconf information:
* apticron/notification: apticron
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]