An error occurred in avast! engine: Invalid argument

Asked By 0 points N/A Posted on -
qa-featured

Hi there all,

On my Ubuntu machine, I installed avast anti-virus.

The installation runs fine and completed successfully, but when I try to open avast it gives me error in avast engine.

I don't know the meaning of this error and how do i fix this to access avast?

Screenshot is provided for reference.

Looking forward to your replies and suggestions.

Error:

Avast! Error
An error occurred in avast! engine: Invalid argument
Ok (O)

SHARE
Best Answer by HenryMcCoy
Best Answer
Best Answer
Answered By 0 points N/A #121989

An error occurred in avast! engine: Invalid argument

qa-featured

This appears to be a common problem with Avast! on Linux.  You can try this:

As root, type this in a terminal "sysctl -w kernel.shmmax=100000000".  Others suggest "kernel.shmmax = 128000000".

 You can try which one will work for you.  

Take note though that simply typing the above will apply the fix for your current session only.  Once you reboot, the fix will be gone.  

So instead of typing it in every time you reboot, you should edit /etc/sysctl.conf.

To do that, type the following in a terminal:

sudo gedit /etc/sysctl

then add this after the last line:

"kernel.shmmax = 128000000" (or "kernel.shmmax=100000000" ,whichever works for you).  

Don't put an "#" before the line!  

Save the file then reboot to test if it works.

Answered By 0 points N/A #121990

An error occurred in avast! engine: Invalid argument

qa-featured

Hi

The first thing you have to update your Ubuntu machine and when you update complete successfully.

Then launch your avast anti virus again.it will work fine,if it does not start working.

Then you have executed this command in your terminal.

This command will not display the graphical view of the avast but will start your avast in the background, and will also update your Ubuntu. Bash script is below

#!/bin/sh
echo "33[0;34mProceeding to wipe your memory, swap and free space.

Please be warned that this is time consuming and may take hours.33[0m"
echo
echo "33[0;31mWiping memory.33[0m"
sudo smem -lv
echo "33[0;32mMemory wiped.33[0m"
echo "33[0;31mWiping swap.33[0m"


#Please run "cat /proc/swaps" to determine your mounted swap devices and customize the following line for your machine.


sudo swapoff /dev/sda5
sudo sswap -llv /dev/sda5
sudo swapon /dev/sda5
echo "33[0;32mSwap wiped.33[0m"
echo "33[0;31mWiping free space.33[0m"
sudo sfill -llv /home/
echo "33[0;32mFree space wiped.33[0m"

#"ubuntuparanoia"
 

Thanks

Answered By 0 points N/A #121991

An error occurred in avast! engine: Invalid argument

qa-featured

Hope this could work.

Open up terminal and type the following:

Code:

cd / etc /init.d/

sudo gedit rcS

Type the password and gedit will open the file.

Add the following comment below the line starting with #

systcl -wkernel.shmmax=100000000

For example,

# rcs

#

# Call all S??* scripts in / etc/ rcS .d / in numerical/alphabetical order

#

sysctl -w kernel.shmmax=100000000

Then save the file, open in gedit and close the window.

Restart computer and log into your user account.

Fire up terminal again.

Code

Avastgui

 Better luck !!!

Answered By 0 points N/A #121992

An error occurred in avast! engine: Invalid argument

qa-featured

Hello,

Let me try to solve your problem. Run 'sudo sysctl kernel.shmmax' and note the value. The default should be something like 33554432. Now double that initial value with 'sysctl -w kernel.shmmax=$[33554432*2]' and try running your avast antivirus once again.

If it works (worked for me) then the issue will be solved. If it doesn't work try multiplying the initial value until you can run your avast antivirus. If you want to make the value stick on reboot add it to /etc/sysctl.conf or any other local init script that gets run on boot. I hope this solution will help you.

Regards.

Answered By 0 points N/A #121994

An error occurred in avast! engine: Invalid argument

qa-featured

Hi!

The problem caused of because the Avast which you have Is older version.

  1. First of all click on the start button and click on the internet explorer.
  2. Then internet explorer will open, and then type latest Avast versions in the Google.
  3. The latest Avast versions of Google will be appearing.
  4. Then try to download the latest and updated version of the Avast.
  5. When you download the latest version of Avast then install it to you machine.
  6. When it's installed it will work good.
  7. Or you may have to reinstall the Ubuntu 9.10 version.

This may solve the problem.

Thank You.

Answered By 0 points N/A #121996

An error occurred in avast! engine: Invalid argument

qa-featured
Good day,
 
This error means that there is just a problem common with the Linux version of Avast. There are actually two ways that you can do to resolve the issue.
 
First you need to go to Terminal and type ""sudo gedit/etc/sysctl.conf. This will open a sysctl.conf as the root which allows you to make and save changes to this file ""sysctl.conf"" then add the following at the end kernel.shmmax=128000000. Then reboot your computer.
 
Second way of resolving this issue by typing this terminal command
 
sudo sysctl – w kernel.shmmax=128000000
kernel.shmmax=128000000 
 
However, in the second resolution you need to do this every time you start your computer.
 
Hope these helps.

Login/Register to Answer

Related Questions