sophos suse linux installation failure

Hi,

/Sophosinstall.sh

This software is governed by the terms and conditions of a licence agreement with Sophos Limited.

Installing Sophos Anti-Virus for Linux with arguments: []

Downloading medium installer

Checking we can connect to Sophos Central (at dzr-mcs-amzn-eu-west-1-9af7.upe.p.hmr.sophos.com/.../ep)...

Finished downloading the medium installer.

Running medium installer (this may take some time)

Traceback (most recent call last):

  File "talpa_select.py", line 2365, in <module>

  File "talpa_select.py", line 2358, in main

  File "talpa_select.py", line 2353, in process

  File "talpa_select.py", line 2181, in _action

  File "talpa_select.py", line 163, in __init__

  File "/build/input/python/install64/lib/python2.7/locale.py", line 608, in getpreferredencoding

  File "/build/input/python/install64/lib/python2.7/locale.py", line 545, in getdefaultlocale

  File "/build/input/python/install64/lib/python2.7/locale.py", line 477, in _parse_localename

ValueError: unknown locale: UTF-8

 

Then I tried to uninstall , but I can't find  uninstaller under 

 opt/sophos-av/   

Thanks

Please help 

Thanks

  • Hello aims2019 ,

    so these are actually two questions.

    unknown locale: UTF-8
    what's the output of the locale command?

    can't find  uninstaller
    so SAV has been installed and /opt/sophos-av/ exists but does not contain uninstall.sh? What does it contain?

    Christian

  • In reply to QC:

    locale
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=

    so SAV has been installed and /opt/sophos-av/ exists but does not contain uninstall.sh? What does it contain?

    there is etc  folder and update 

    Thanks

  • In reply to aims2019 aims:

    Hello aims2019,

    looks ok as far as I can tell. Perhaps can tell what might be wrong.

    Christian

  • In reply to aims2019 aims:

    The medium installer has failed, because python doesn't like the locale setting. This leaves some bits from the initial thin installer download present in /opt/sophos-av, but those can be deleted without any problems.

     

    Your locale looks reasonable from this reply, so I'm not sure where it's going wrong - it's ending up with "UTF-8" which isn't parsable.

     

    Let's have a look at the environment:

    echo LC_ALL=$LC_ALL

    echo LC_CTYPE=$LC_CTYPE

    echo LANG=$LANG

    echo LANGUAGE=$LANGUAGE

    locale

    locale -a

     

     

     

     

    FYI: This is the wrong group for Linux questions...

  • In reply to DouglasLeeder:

    Hi,

    Installed after setting "

    export LC_ALL=en_US.UTF-8" 

     

    Now the problem is 

     

    ./Sophosinstall.sh

    This software is governed by the terms and conditions of a licence agreement with Sophos Limited.

    Installing Sophos Anti-Virus for Linux with arguments: []

    Downloading medium installer

    Checking we can connect to Sophos Central (at dzr-mcs-amzn-eu-west-1-9af7.upe.p.hmr.sophos.com/.../ep)...

    Finished downloading the medium installer.

    Running medium installer (this may take some time)

    Updating directly from Sophos.

    Extra files updating is disabled. You can change updating settings using /opt/sophos-av/bin/savsetup.

     

    Installing Sophos Anti-Virus....

    Selecting appropriate kernel support...

    When Sophos Anti-Virus starts, it updates itself to try to find a Sophos kernel interface module update. This might cause a significant delay.

    Sophos Anti-Virus starts after installation.

     

    Installation completed.

    On-access scanning not available. It was not possible to obtain or build suitable kernel support because kernel headers are not installed.

    Failed to update Sophos Anti-Virus

    Registering with Sophos Central

    Saving Sophos Central credentials

    Starting Sophos Central Management Client

    Now managed by Sophos Central

    You have mail in /var/mail/root

     

    Thanks

  • In reply to aims2019 aims:

    Yes, you need to install kernel headers, gcc and make to build Talpa for your kernel.

  • In reply to DouglasLeeder:

    Hi,

    Thanks for the reply . If you give some guidelines it would be great 

    Thanks

  • In reply to aims2019 aims:

    Here is the KBA describing the situation: https://community.sophos.com/kb/en-us/13503

     

    Unfortunately different distributions have different package management tools, and name the packages differently, and I don't know SuSE well enough to advise what is required, beyond the generic information.

  • In reply to DouglasLeeder:

    Hi,

    The qrticle says if we are above version 10.5  ,  we can use fanotify . 

    any pros and cons ? 

    Thanks

  • In reply to aims2019 aims:

    If you click the link: https://community.sophos.com/kb/en-us/118216

    That includes the limitations of fanotify.

  • In reply to DouglasLeeder:

    Hi,

    I am not a linux expert . it would be great if you can give some idea how to manually compile talpa 

     

    Before running the the installer and to enable it to compile custom kernel modules, the following must be installed:

    • The kernel source matching your running kernel (normally accessible from /lib/modules/`uname -r`/build/)
    • system.map file matching your running kernel (normally located in /boot/System.map-`uname -r`)
    • GCC and configured development tools, e.g. make. (The version of GCC must be the same as the one used to compile your kernel.)

    Most distributions provide a kernel-headers package which must also be installed. These distributions also provide all the required kernel sources to compile.

    Note: For SuSE based distribution you will need the package kernel-syms from the running kernel version.

    In the above what exactly they are saying 

    Thanks

  • In reply to aims2019 aims:

    They are saying you need to install kernel headers, gcc and make.

     

    I'm afraid I don't know SuSE well enough to advice you how to install packages or which packages are required.

  • In reply to DouglasLeeder:

    Hi,

    I enabled fanotify , and tried to restart the service . after that the server showing red color instead of green 

    Real time protection disabled

    I don't know what is going on 

  • In reply to aims2019 aims:

    I think you should probably raise a support request, as I don't know what's happening with your system and they are more likely to be able to help you.

  • In reply to DouglasLeeder:

    Hi,

    This is from another server (attached ) here is the screenshot

    showing in red colour