avast can not initialize avast! engine: Invalid argument

When running avast, the following error message is displayed at times:

avast can not initialize avast! engine: Invalid argument

To overcome this error, open a terminal window and enter the following command:
$ sudo sysctl -w kernel.shmmax=100000000 <enter>

Now you can start avast and it will work. Note that each time you start avast, you need to give the above command. If you want to set it permanently, you should add it to the /etc/init.d/rc.local file. It will execute each time you start your computer.

To add to the /etc/init.d/rc.local file, you can do the following from a terminal window:

$ sudo gedit /etc/init.d/rc.local <enter>
sysctl -w kernel.shmmax=100000000
Enter the above line at the end of the file and save it. Each time you start your computer, the command will execute and you will not get the error.

Leave a Reply

  

  

  

Blue Captcha Image
Refresh

*

April 2019
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
2930