error during updates

starting last week i started having trouble updating my avast home edition.
instead of appearing the small green window i keep seing a red window telling me that there was an error during the automatic update. what should i do? i already uninstalled and installed it again, but to no avail.

Basically, check the log files (or post the last 100 lines of the logs):
C:\Program Files\Alwil Software\Avast4\DATA\log\Setup.log
C:\Program Files\Alwil Software\Avast4\Setup\setup.log

Also check:

  1. If your subscription allows the update right now (i.e., if it is not expired). Home (free) version need registering each 14 months.
    I hope you haven’t bought a license from a site on this list: http://www.avast.com/eng/fraudulent-sales-of-avast-products.html

Also, bad jollyroger.vpu file could contain banned registration keys with error and then update fails because of an invalid key. See how to download a new jollyroger.vpu, http://forum.avast.com/index.php?topic=27185.msg222148#msg222148.

  1. If your firewall settings and allow avast.setup to connect.
    If you’re not sure, just turn off your firewall (to be sure the update failure is not due to it).
    Maybe you should ‘remove’ avast.setup entry, try to update, receiving a new alert from the firewall, allowing it and checking it to remember.

  2. Check your proxy settings into avast!:
    Left click the avast icon > Settings
    Update (Basic) > Details > Proxy
    Make sure your browser is not set to “Work Offline” (this option is generally in the File menu).
    If it doesn’t help, try switching from “Auto-detect” to “No proxy” (I’m assuming you’re not connecting to the Internet via proxy).
    You can run proxycfg -d in a DOS window to make your computer connect direct, without proxy. You can run proxycfg -h for help.

  3. Also you can try changing update service’s login account, follow this:
    Open services control panel (e.g. Start->Run, and type: services.msc
    Double-click on avast! iAVS4 Control Service to show properties. Switch to LogOn page.
    Enter administrator account name and password.
    Do the same for avast! Antivirus service.
    Then start update again.

  4. The last option, check if the servers.def file is corrupt or 0KB (C:\Program Files\Alwil Software\Avast4\Setup\servers.def).
    You can try and download the servers.def file, http://files.avast.com/iavs4x/servers.def and replace the one in the avast setup folder.