Bug#348681: /usr/sbin/localepurge: line 158: 2688K: value too great for base (error token is 2688K)
severity 348681 normal retitle 348681 localepurge fails when BLOCKSIZE is set tags 348681 - moreinfo thanks Re: intrigeri in [EMAIL PROTECTED] My naive guess would be that, for any obscure reason I'm not able to find out, a shell alias for df, defined on your system, is used by localepurge. Aliases don't get initialized in subshells. Christoph, could you please try this suggested fix on your system and tell us if it works? The cause was similar to the one you suspected, it fails when BLOCKSIZE is set: [0] [EMAIL PROTECTED] sudo localepurge /usr/sbin/localepurge: line 158: 4424K: value too great for base (error token is 4424K) [1] [EMAIL PROTECTED] unset BLOCKSIZE [0] [EMAIL PROTECTED] sudo localepurge [0] [EMAIL PROTECTED] Christoph -- [EMAIL PROTECTED] | http://www.df7cb.de/ signature.asc Description: Digital signature
Bug#348681: /usr/sbin/localepurge: line 158: 2688K: value too great for base (error token is 2688K)
tags 348681 + moreinfo thanks Christoph Berg wrote (18 Jan 2006 13:04:11 +0100) : [0] [EMAIL PROTECTED] sudo localepurge /usr/sbin/localepurge: line 158: 2688K: value too great for base (error token is 2688K) For my first BSP, I'm having had a look to the code, and it seems that one of the calls to get_used_space echoes a human readable result instead of plain bytes count. Looking at this function's (conditional) definition, this can only happen, depending on QUICKNDIRTYCALC presence: - either in line 58's `df' call: set - $(df -P $1); shift $(($# - 6)); echo $3 - or in line 64's `du' call: set - $(du -s $1) Since your localepurge/quickndirtycalc debconf variable is set to true, we are in the first case... but `df -P' is not supposed to output any human readable values, ever. My naive guess would be that, for any obscure reason I'm not able to find out, a shell alias for df, defined on your system, is used by localepurge. A simple fix would be to replace this `df' call by a `/bin/df' one, and to do the same for the `du' call bellow. Christoph, could you please try this suggested fix on your system and tell us if it works? Ciao, -- intrigeri [EMAIL PROTECTED] | gnupg key @ http://intrigeri.boum.org/intrigeri.asc pgp3639XDk46T.pgp Description: PGP signature
Bug#348681: /usr/sbin/localepurge: line 158: 2688K: value too great for base (error token is 2688K)
Package: localepurge Version: 0.4.1 Severity: grave Justification: makes package unusable A new localepurge install on sid yields error messages: $ sudo apt-get install sl [...] Entpacke sl (aus .../archives/sl_3.03-14_i386.deb) ... Richte sl ein (3.03-14) ... /usr/sbin/localepurge: line 158: 2688K: value too great for base (error token is 2688K) E: Problem executing scripts DPkg::Post-Invoke 'if [ -x /usr/sbin/localepurge ] [ $(ps w -p $PPID | grep -c remove) != 1 ]; then /usr/sbin/localepurge; else exit 0; fi' E: Sub-process returned an error code Manually calling it gives the same result: [0] [EMAIL PROTECTED] sudo localepurge /usr/sbin/localepurge: line 158: 2688K: value too great for base (error token is 2688K) [1] [EMAIL PROTECTED] LC_ALL=C sudo localepurge /usr/sbin/localepurge: line 158: 2688K: value too great for base (error token is 2688K) -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.8-2-686 Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Versions of packages localepurge depends on: ii debconf [debconf-2.0] 1.4.67 Debian configuration management sy ii debianutils 2.15.2 Miscellaneous utilities specific t ii dpkg 1.13.11.1 package maintenance system for Deb ii procps1:3.2.6-2 /proc file system utilities localepurge recommends no packages. -- debconf information: localepurge/remove_no: localepurge/dontbothernew: false localepurge/showfreedspace: true localepurge/none_selected: false localepurge/verbose: false * localepurge/nopurge: de, de_DE, de_DE.UTF-8 localepurge/quickndirtycalc: true localepurge/mandelete: false Christoph -- [EMAIL PROTECTED] | http://www.df7cb.de/ signature.asc Description: Digital signature