Avast Antivirus Update errors

# 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).