I reinstall Ubuntu10.04 and installed Avast4forLinux. However, after the anti-virus database is upgraded, "anerroccuredinavast!" appears! Engine: é ?????????????" The problem is that the anti-virus service cannot be used. You can reinstall and upgrade the agent after uninstalling the agent. Very strange. I searched the internet for a long time and found a solution to a similar problem on a foreign English website. I tried www.linuxidc.com.
I re-installed Ubuntu 10.04 and installed Avast 4 for Linux. However, after the anti-virus database is upgraded, "An error occured in avast! Engine: é ?????????????" The problem is that the anti-virus service cannot be used. You can reinstall and upgrade the agent after uninstalling the agent. Very strange. After searching on the Internet for a long time, I found a similar solution on a foreign English website. I tried www.linuxidc.com and solved the problem. It is recorded below for future reference:
Solution: run the following command on the terminal:
Sudo sysctl-w kernel. shmmax = 128000000
Then, enable the Avast anti-virus service. The software is normal.
Or:
Set the limit to higher values (as root ):
Sysctl-w kernel. shmmax = 128000000
OR
Echo 128000000>/proc/sys/kernel/shmmax
Place those lines to/etc/init. d/rcS or equivalent file (it's distribution-specific a bit-see/etc/inittab, the sysinit runlevel) to have them set automatically (just after boot ).