重新安裝了一下Ubuntu 10.04,並安裝了Avast 4 for Linux,可是在升級了殺毒數據庫結束後,出現“An error occured in avast! engine: é?????????????”問題,殺毒不能使用,卸載以後重新安裝升級,仍然還是這個情況。很奇怪。在網上搜索了很久,好不容易在國外一個英文網站找到了一個相似問題的解決辦法,www.linuxidc.com試驗了一下,還真解決了問題。現記錄於下,以便以後參考:
解決辦法是:終端執行:
sudo sysctl -w kernel.shmmax=128000000
然後,再打開Avast 殺毒,軟件正常。
或者:
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).