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
It happened to me as well on my Mac Os. The problem is that IntelliJ was mounted as a disk image at every start. I added to the application menu bar the installer or I don't know what. I then started the app from the application list and the problem was solved. So be sure you are not mounting an image