Avast anti virus

Asked by David

I am trying to run Avast anti virus with Ubuntu 10.04.

If I try to run the anti virus I get the message:-

An error occured in avast! engine: Invalid argument

With the previous version of Ubuntu I was told, by Avast support staff, to run the command:-

sysctl -w kernel.shmmax=128000000

Which corrected the problem, permanently.

With the 10.04 version of Ubuntu I was told, by Avast support staff, to run the command:-

sysctl kernel.shmmax=48000000

The problem is that with Ubuntu 10.04 I have to run the above command every time I wish to run Avast anti virus.

I don't know what the command is doing, so an explanation would be useful.

But if anybody can offer a solution to making either of the above commands permanent, or another command that will make Avast work, that would be very useful.

Thank you,

David.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Aurevoir (aurevoir) said :
#1

Here what I do every day to update and to run the scanner and it always work perfectly for me.

sudo sysctl -w kernel.shmmax=67108864
sudo avast-update && sudo avast -c

Revision history for this message
Aurevoir (aurevoir) said :
#2

Here what I do every day to update and to run the scanner and it always work perfectly for me.

sudo sysctl -w kernel.shmmax=67108864
sudo avast-update && sudo avast -c

Revision history for this message
Aurevoir (aurevoir) said :
#3

Here what I do every day to update and to run the scanner and it always work perfectly for me.

sudo sysctl -w kernel.shmmax=67108864
sudo avast-update && sudo avast -c

Revision history for this message
Hans Spaans (hspaans) said :
#4

Run one of the two commands as root and then reboot. This should make solve your issue.

# echo 'kernel.shmmax = 67108864' >> /etc/sysctl.d/avast

or

# echo 'kernel.shmmax = 67108864' >> /etc/sysctl.conf

The other question may be. You know there is a virusscanner in Ubuntu called ClamAV? This one works out of the box and is also free.

Can you help with this problem?

Provide an answer of your own, or ask David for more information if necessary.

To post a message you must log in.