I have just installed the avast antivirus for ubuntu and tried to update it but it was'nt successful.
Now it is not functioning properly and showing a bulk of errors.
I have just installed the avast antivirus for ubuntu and tried to update it but it was'nt successful.
Now it is not functioning properly and showing a bulk of errors.
I believe your issue may be in the fact that the updates for Avast! come in big blocks of data, too large for Ubuntu's default shmmax.
ShmMax is the maximum amount of shared memory any given process can have, and while it's probably not big enough for pretty much everything, single big temporary downloads (like those for applying big updates) means avast! usually wants more, and exits with an Update Engine Error.
If this is the error you are getting, then you can fix it through editing some files. Here's what to do:
Fire up terminal (Ctrl+Alt+T) and enter gksudo gedit /etc/init.d/rcS
.
Once gedit loads up with the file (You'll need to enter the sudo password) you need to add in sysctl -w kernel.shmmax=128000000
right before the line exec /etc/init.d/rc S
. Make sure you get these in the right order, new line first, then old - you might otherwise really screw your computer over.
Now, because you've just edited Kernel settings you'll need to reboot, as these settings load pretty early on in the boot process and can't be re-loaded except on a reboot. Reboot and run the update again and you should have a working Avast! for Linux installation!