If you have installed Avast on your Ubuntu Operating system. Once you have updated it, you will get an error, An error occurred in avast! engine: Invalid argument. In order to solve this error, all you have to do is the following,
- Go to the Terminal and type,
sudo gedit /etc/sysctl.conf - This should open up sysctl.conf as the root, and you should be able to make and save changes to the file sysctl.conf.
- Once the file sysctl.conf is open. Add the following line to it at the end,
kernel.shmmax = 128000000 - Reboot your computer.
This should get your Avast anti-virus up and working again in Ubuntu.
Alternatively, you can run this command from Terminal as well, but you would have to do it every time you start your computer. So instead, it’s a better idea to make the change in the sysctl.conf file. Here is the Terminal command,
sudo sysctl -w kernel.shmmax=128000000
kernel.shmmax = 128000000
Muchas gracias, me ha funcionado en Ubuntu 12.04. Thanks
Su bienvenida! Tomó mucho tiempo para encontrar esto …
This is written in clear, good style – wery useful. Thank you.
Glad that helped!
Or for those with OpenSuse and don’t want to change to root.
Open a terminal, at the prompt su then root password, then gedit -s (for standalone or you gen an error) then go and open the file and add the line.
This fix also works for Cinelerra as well.
No need to reboot computer. Simply type (as root user) sysctl -p
Great, it worked, thanx a lot – Tilan
No problems Tilan, glad the info was of some help to you!