The installation cannot continue as the installer file may be damaged. Download the installer file again

When you run the installer writes “The installation cannot continue as the installer file may be damaged. Download the installer file again”.

Code:

sudo spctl --master-disable