It happened to me again, here is some more info. This happens during
dpkg-reconfigure:
Ställer in tzdata (2006p-0ubuntu6.10)
/var/lib/dpkg/info/tzdata.postinst: line 68: [: too many arguments
Running 'tzconfig' to set this system's timezone.
Your current time zone is set to (Two lines of garbled binary data here) Do you
want to change that? [n]:
Here is line 68 of /var/lib/dpkg/info/tzdata.postinst:
if [ -f /usr/share/zoneinfo/$timezone ] && [ "$timezone" != Factory ]
And looking back in the file, it seems like the following snippet sets
the timezone variable:
if [ "$type" = "configure" ]
then
if [ -f /etc/timezone ]; then
timezone=$(cat /etc/timezone)
else
So it seems like "timezone" is assigned the value of /etc/timezone. On
my system, /etc/timezone is a symbolic link to
"/usr/share/zoneinfo/Europe/Stockholm". And:
$ file /usr/share/zoneinfo/Europe/Stockholm
/usr/share/zoneinfo/Europe/Stockholm: timezone data
$ cat /usr/share/zoneinfo/Europe/Stockholm
TZifv ��`����MD (and more binary data ...)
So, obviously, bash complains about:
[ -f /usr/share/zoneinfo/$timezone ]
$timezone is binary data.
--
dpkg-reconfigure locales is not automized?
https://launchpad.net/bugs/44973
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs