Delete all of those lines for avast.

Either of these two would block access and would attempt to redirect you to the IP address at the start of the line.

Are there any other entries in the hosts file for other antivirus sites besides avast, like kaspersky, symantec, mcafee, etc.