That’s a Windows problem. Has been there since the XP days if you Google “repository”. Try a couple of reboots. Also is your system clock and date on the right time? If all those do not soleve .the issue then do a complete uninstall and reinstall of Avast. Use the Avast uninstaller.
http://www.avast.com/uninstall-utility