You have to disable avast! self-defense to modify any files in avast! directories. Don’t forget to re-enable it later and be aware that you can easily break things (including VPS updates etc.).