<div dir="ltr">Hi Francois,<div><br></div><div>thanks for your reply.</div><div>yee it works if I set LANG=C :-)</div><div><br></div><div>maybe this should be reported to upstream then.</div><div><br></div><div>thanks</div><div>regards</div><div>althaser</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 August 2015 at 00:06, Francois Marier <span dir="ltr"><<a href="mailto:francois@debian.org" target="_blank">francois@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2015-07-05 at 16:52:04, Pedro Beja wrote:<br>
> doing an update I get the following error line:<br>
><br>
> $ sudo rkhunter --update<br>
<br>
[snip]<br>
<br>
> /usr/bin/rkhunter: 7439: [: Binary: unexpected operator<br>
>   Checking file i18n/tr                                        [ No update ]<br>
>   Checking file i18n/tr.utf8                                 [ No update ]<br>
> /usr/bin/rkhunter: 7439: [: Binary: unexpected operator<br>
>   Checking file i18n/zh                                       [ No update ]<br>
>   Checking file i18n/zh.utf8                                [ No update ]<br>
<br>
This seems to happen only on non-English locales. Try this (as root):<br>
<br>
  LANG=C rkhunter --update<br>
<br>
If I output the variables from line 7439 on a fr_CA locale, I get this:<br>
<br>
  Checking rkhunter data files...<br>
    Checking file mirrors.dat                                  [ No update ]<br>
    Checking file programs_bad.dat                             [ No update ]<br>
    Checking file backdoorports.dat                            [ No update ]<br>
    Checking file suspscan.dat                                 [ No update ]<br>
  PROG_VERS=2009091601; LATEST_VERS=2009091601<br>
    Checking file i18n/cn                                      [ No update ]<br>
  PROG_VERS=2014010301; LATEST_VERS=2014010301<br>
    Checking file i18n/de                                      [ No update ]<br>
  PROG_VERS=2013112401; LATEST_VERS=2013112401<br>
    Checking file i18n/en                                      [ No update ]<br>
  PROG_VERS=Fichier binaire /var/lib/rkhunter/db/i18n/tr correspondant; LATEST_VERS=2014030201<br>
  /usr/bin/rkhunter: 7440: [: Fichier: unexpected operator<br>
    Checking file i18n/tr                                      [ No update ]<br>
  PROG_VERS=2014030201; LATEST_VERS=2014030201<br>
    Checking file i18n/tr.utf8                                 [ No update ]<br>
  PROG_VERS=Fichier binaire /var/lib/rkhunter/db/i18n/zh correspondant; LATEST_VERS=2009091601<br>
  /usr/bin/rkhunter: 7440: [: Fichier: unexpected operator<br>
    Checking file i18n/zh                                      [ No update ]<br>
  PROG_VERS=2009091601; LATEST_VERS=2009091601<br>
    Checking file i18n/zh.utf8                                 [ No update ]<br>
<br>
The attached patch to the cronjob in /etc is a work-around until this is<br>
fixed upstream.<br>
<span class="HOEnZb"><font color="#888888"><br>
Francois<br>
</font></span></blockquote></div><br></div>