How to run kaspersky retranslator application on suse 12.2

Hi

I am new to suse and I have problem with running kaspersky “retranslator” application which is used to download kaspersky products updates like virus definitions for kaspersky endpoint security or administration servers. Whenever I try to execute it I get the following error message:

./retranslator: line 7: ./retranslator.bin: No such file or directory

According to the procedure issued by kaspersky it is quite clear what I need to do to run the program, But I can not realize why the above error message appears every time I try to run the retranslator application.
Windows equivalent of the mentioned program is klupdater" which can be found at the same place retranslator can be downloaded. Following are the links to the download and installation pages of the “kaspersky retranslator” application:

download: Kaspersky Update Utility
howtoinstall: https://support.kaspersky.com/2103

Can anybody help me how to fix the problem with running retranslator application on suse 12.2?

Thanks in advance

Basicaly the error message means that in line 7 of the script restranslator that you are running, there is a mentioning of retranslator.bin in that same directory, but it does not exist.

You can of course look into that script to see how it is exactly mentione there.

As I do not know anything about this product, I can not tell you if translator.bin should be there (or elsewhere) or that it is a typo in the script, or if you did something wrong following the installation iinstructions.

BTW, next time you show such an error message as you did, please do nor change it’s colour to read, but put it between CODE tags. You gate those CODE tags by clicking on the # button in the toolbar above the post editor.
It is also best to copy/paste not only that one line, but the prompt, the command, the complete output and the next promtp. (that is not always possible of course, but it will convey usefull information about what you are doing to those trying to help you).

PS the product we are talking about here is called openSUSE, not suse. There is also a product SUSE Linux and thus confusion is possible when you not type this correct.

Thank you for your respond and advice

Following is the command I run to execute “retranslator” application and list of files and folders in application directory:


linux-x6dh:/home/retranslator # ./retranslator
./retranslator: line 7: ./retranslator.bin: No such file or directory
linux-x6dh:/home/retranslator # ls
backup  bases  retranslator  retranslator.bin  retranslator.conf  retranslator.conf~
linux-x6dh:/home/retranslator # 

As you can see the “retranslator.bin” is in the same path with “retranslator” script which is used to run the application.
Following is the content of retranslator script:


#!/bin/sh

LD_LIBRARY_PATH="$(dirname $0)/lib"

export LD_LIBRARY_PATH

$0.bin "$@"

Yes, that is real stuff!
An ls -l would have been better, but I guess it is sufficient for now.

As you see in line 7 it indeeds comes down to

./restranslator.bin

As you showed, it does exist.

I created a similar contruct here, but that works as expected (by you and me).

Only thing I see as being mentioned, but not existing is ./translator/lib. But it is only the value of LD_LIBRRARY_PATH and not used (until were we are).

Strange, let me contemplate aout this a bit (maybe someone else will see it :wink: ).

BTW, it migt be correct, but you are doing this as root. You are sure it must be done as root?

Same result with a normal user and thank you.

On 2013-03-04 13:46, kiani b wrote:
>
> Thank you for your respond and advice
>
> Following is the command I run to execute “retranslator” application
> and list of files and folders in application directory:
>
>
> Code:
> --------------------
>
> linux-x6dh:/home/retranslator # ./retranslator
> ./retranslator: line 7: ./retranslator.bin: No such file or directory
> linux-x6dh:/home/retranslator # ls
> backup bases retranslator retranslator.bin retranslator.conf retranslator.conf~
> linux-x6dh:/home/retranslator #
>
> --------------------

Thanks!

> As you can see the “retranslator.bin” is in the same path with
> “retranslator” script which is used to run the application.
> Following is the content of retranslator script:

It is probably not marked executable. We could see that with “ls -l”.

If those permissions are not right, it could be a packaging error by the
supplier, or an unpacking error.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

OK, this is the ls -l listing:


linux-x6dh:/home/retranslator # ls -l
total 15280
drwxr-xr-x 2 root root     4096 Jul 13  2010 backup
drwxr-xr-x 2 root root     4096 Jul 13  2010 bases
-rwxr-xr-x 1 root root       83 Mar  5 02:48 retranslator
-rwxr-xr-x 1 root root 15623912 Jul 13  2010 retranslator.bin
-rw-r--r-- 1 root root     5323 Mar  4 23:23 retranslator.conf

Thank you

On Mon 04 Mar 2013 01:46:03 PM CST, kiani b wrote:

OK, this is the ls -l listing:

Code:

linux-x6dh:/home/retranslator # ls -l
total 15280
drwxr-xr-x 2 root root 4096 Jul 13 2010 backup
drwxr-xr-x 2 root root 4096 Jul 13 2010 bases
-rwxr-xr-x 1 root root 83 Mar 5 02:48 retranslator
-rwxr-xr-x 1 root root 15623912 Jul 13 2010 retranslator.bin
-rw-r–r-- 1 root root 5323 Mar 4 23:23 retranslator.conf


Thank you

Hi
You should install and run as a user not root, suggest you re-install
as the desired user…

You need to use the full path to the file, eg;


sh /data/scratch/retranslator-5.0.0-9/retranslator/retranslator

Kaspersky Retranslator 5.0.0.9/RELEASE build #20
Copyright (C) Kaspersky Lab, 1997-2008.
Portions Copyright (C) Lan Crypto
Configuration
file: /data/scratch/retranslator-5.0.0-9/retranslator/retranslator.conf
Could not open pid file /var/run/kav-retranslator.pid: Permission denied

There is probably a reason for this, when you set up a cron
job it knows no environment, so full paths are needed.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.28-2.20-desktop
up 7 days 11:04, 4 users, load average: 0.14, 0.08, 0.06
CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Ironlake Mobile

On 2013-03-04 14:46, kiani b wrote:
>
> OK, this is the ls -l listing:
>
>
> Code:
> --------------------
>
> linux-x6dh:/home/retranslator # ls -l
> total 15280
> drwxr-xr-x 2 root root 4096 Jul 13 2010 backup
> drwxr-xr-x 2 root root 4096 Jul 13 2010 bases
> -rwxr-xr-x 1 root root 83 Mar 5 02:48 retranslator
> -rwxr-xr-x 1 root root 15623912 Jul 13 2010 retranslator.bin
> -rw-r–r-- 1 root root 5323 Mar 4 23:23 retranslator.conf
>
> --------------------

Please paste the contents of “retranslator”, it is only 83 bytes, inside
code tags of course.

Another suggestion: if you must work as root, use “su -” and not “su”.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

On 03/04/2013 01:46 PM, kiani b wrote:
> linux-x6dh:/home/retranslator # ./retranslator

-=WELCOME=- new poster…but, how much experience do you have with
Linux in general or openSUSE in specific?

i understand you are wanting to use a product named retranslator, but
why is there a user on this system named retranslator?

and, why are the files in retranslator’s home owned by root??

and, by the way, why do you want to run kaspersky anti-virus programs
on an openSUSE system???


dd
openSUSE®, the “German Engineered Automobile” of operating systems!
http://tinyurl.com/DD-Caveat

Many thanks Malcolm!
Yes! you are right. It did not the environment and after running it with full path it works.
About the user root is OK and there is no problem with it. I just give the retranslator.bin an execute permission (chmod +x retranslator.bin).

Many thanks to all of you guys!

On Mon 04 Mar 2013 02:36:02 PM CST, kiani b wrote:

malcolmlewis;2531831 Wrote:
> Hi
> You should install and run as a user not root, suggest you re-install
> as the desired user…
>
> You need to use the full path to the file, eg;
> >
Code:

> >
> sh /data/scratch/retranslator-5.0.0-9/retranslator/retranslator
>
> Kaspersky Retranslator 5.0.0.9/RELEASE build #20
> Copyright (C) Kaspersky Lab, 1997-2008.
> Portions Copyright (C) Lan Crypto
> Configuration
>
file: /data/scratch/retranslator-5.0.0-9/retranslator/retranslator.conf
> Could not open pid file /var/run/kav-retranslator.pid: Permission
> denied >

> >
>
> There is probably a reason for this, when you set up a cron
> job it knows no environment, so full paths are needed.
>
> –
> Cheers Malcolm °¿° (Linux Counter #276890)
> openSUSE 12.2 (x86_64) Kernel 3.4.28-2.20-desktop
> up 7 days 11:04, 4 users, load average: 0.14, 0.08, 0.06
> CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Ironlake Mobile

Many thanks Malcolm!
Yes! you are right. It did not the environment and after running it
with full path it works.
About the user root is OK and there is no problem with it. I just give
the retranslator.bin an execute permission (chmod +x retranslator.bin).

Many thanks to all of you guys!

Hi
I would create a specific user with no login shell and use that, since
it connects and downloads from the internet.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.28-2.20-desktop
up 7 days 11:53, 4 users, load average: 0.24, 0.11, 0.06
CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Ironlake Mobile

On 2013-03-04 15:48, malcolmlewis wrote:
> Hi
> I would create a specific user with no login shell and use that, since
> it connects and downloads from the internet

I don’t know about kaspersky, but for example for antivir (hbdev or
similar name) it has to run as root, because the updater installs system
files.

Even opensource clamav updates as root, I think.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

On Mon 04 Mar 2013 03:04:10 PM CST, Carlos E. R. wrote:

On 2013-03-04 15:48, malcolmlewis wrote:
> Hi
> I would create a specific user with no login shell and use that, since
> it connects and downloads from the internet

I don’t know about kaspersky, but for example for antivir (hbdev or
similar name) it has to run as root, because the updater installs system
files.

Even opensource clamav updates as root, I think.

Hi
Not by the looks of this comment from the conf file;


# By default when started freshclam drops privileges and switches to the
# "clamav" user. This directive allows you to change the database owner.
# Default: clamav (may depend on installation options)
DatabaseOwner vscan


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.28-2.20-desktop
up 7 days 12:26, 4 users, load average: 0.01, 0.09, 0.07
CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Ironlake Mobile

On 2013-03-04 16:22, malcolmlewis wrote:

> Hi
> Not by the looks of this comment from the conf file;
>


> # By default when started freshclam drops privileges and switches to the
> # "clamav" user. This directive allows you to change the database owner.
> # Default: clamav (may depend on installation options)
> DatabaseOwner vscan
> 

Ah, but that is different!

The program is called as root, then it changes.

In this case, it is designed to have the database under a different user
and thus drop privileges. Other antivirus software, having started as
Windows software, I think are not that careful. A pity, of course, a
problem, but in fact those proprietary antivirus usually find more
malware than clamav.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

I have some experiences with linux, but I am new to SUSE and of course I am not very professional in utilizing linux OS. Also there is no retranslator user on the system. “retranslator” application I am trying to run it is provided just an archive by its supplier (kaspersky) and the user just need to execute the “retranslator” shell script to run the application. How do you realize that there is a retranslator user on the system?

Thank you

On 03/05/2013 04:46 AM, kiani b wrote:
> How do you realize that there is a retranslator user on the
> system?

if you are (for example) “kiani_b” on that (or any Linux) system then
i would expect to find your personal files, preferences,
configurations and etc inside your home, at /home/kaini_b just like
i see in your postings a “/home/retranslator”, therefore my question…

if however the kaspersky install script created /home/retranslator as
a place to install the program then…well, it just shows that
kaspersky has no understanding of the linux file system…which would
be good enough reason for me to want to skip their originally Windows
software lightly adapted so they can sell it to gullible Linux users…

again i ask: why do you want to run kaspersky anti-virus programs on
an openSUSE system???

i’ve run Linux since '98, and nothing else since 2002, and i have
never had any anti-virus program of any kind whatsoever on any Linux
i have run.


dd

OK,
1 - It is /home/retranslator because I extracted the archive in this folder i.e. I created the folder.
2 - About not running any anti-virus program specially Kaspersky on linux OS I completely agree with you. This “retranslator” application is just used to download updates for various Kaspersky products and is not an anti-virus program itself. Also it is not installed on the machine, you just need to download and extract the archive and run the shell script and that is it.

On 03/06/2013 05:56 PM, kiani b wrote:
> 1 - It is /home/retranslator because I extracted the archive in this
> folder i.e. I created the folder.

ah, now i understand…here i would have probably unpacked it, as
myself (a normal user) into a directory i added in my home, like
/home/denverd/Downloads/rpms/retranslator

and then run the shell script (probably as root) probably using a
series of commands kinda like:


su -
chmod +x /home/denverd/Downloads/rpms/retranslator/retranslator.bin
/home/denverd/Downloads/rpms/retranslator/retranslator.bin

alternately one could go to the unpack location and do something like
this:


su -
cd /home/denverd/Downloads/rpms/retranslator/
chmod +x retranslator.bin
../retranslator.bin
exit

> 2 - About not running any anti-virus program specially Kaspersky on
> linux OS I completely agree with you. This “retranslator” application is
> just used to download updates for various Kaspersky products and is not
> an anti-virus program itself. Also it is not installed on the machine,
> you just need to download and extract the archive and run the shell
> script and that is it.

ok, i think i understand…

sure am glad i don’t need anything from Kaspersky…


dd