Trying to upgrade Intellij IDEA from 2016.2 to 2016.2.5 and I am getting this error:
IDEA does not have write access to /private/var/folders/_q/7md3pcy1
sudo chmod -R 777 IntelliJ\ IDEA\ CE.app/
this command works for the newer versions