Noticed there are tonnes of reads of this unresolved issue
and far less of the resolved issue on another forum post here so
this is most likely your issue

https://forum.avast.com/index.php?topic=201266.0

Try downloading the offline installer, online installers are terrible and a variable millisecond of disconnect can mean, and usually does mean, missing crucial files and corrupted installs.