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.wordpress$ 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.