Upgrading IntelliJ IDEA after Sierra Upgrade: does not have write access to /private/var

空扰寡人 提交于 2019-12-20 09:48:47

问题


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/7md3pcy10x9cxjdt9nzxjvdr0000gn/T/AppTranslocation/97E0DA6A-73B2-4439-91AE-F7DD0353F063/d/IntelliJ IDEA.app/Contents

I can't modify the permissions of that folder because it is read-only. I've tried chown and chmod as root, neither of which work.


回答1:


sudo xattr -dr com.apple.quarantine IntelliJ\ IDEA.app/
sudo chmod -R 777 IntelliJ\ IDEA.app/

these commands work recursively and fix the trouble




回答2:


This is happening because of some new security feature in Sierra. I found some information about it here http://lapcatsoftware.com/articles/app-translocation.html

The work around I used was to go to the Application directory where the Intellij app was and delete the xattr com.apple.quarantine from the app. This stops the app from opening up in that read only directory.

ex.

xattr -d com.apple.quarantine IntelliJ\ IDEA.app



回答3:


I've just encountered something very similar while testing jar updates with my app AuctionSieve.

The problem occurs when you run the app from the Downloads folder and try to do the update - it gets FileNotFoundExceptions because the entire folder macOS creates under /private/var/folders is a read-only filesystem. You can't change the permissions of the files at all.

Moving the app from the Downloads folder to the Applications folder solved the problem!




回答4:


If you face this issue in MacOS Mojave then execute following command sudo chmod 775 /Applications/IntelliJ IDEA.app/Contents/




回答5:


I know this is quite an old post, but I found a quick solution in MacOS.

  1. Navigate to your .app file, and view the contents of it.

  2. Right click on the "Contents" folder, and go to "Get Info".

  3. In the permissions section, select "Read & write" for each element.

  4. Restart IntelliJ.

This solved the problem for me, hope it helps others too!




回答6:


I prefer to use this CLI command to update everything.

$ brew cask reinstall intellij-idea.




回答7:


So after talking to Jetbrains support, there's nothing that can be done as they can't duplicate the issue and not enough people have reported it. The patch process doesn't work but you can just download the latest version. Problem solved.




回答8:


Finder or it's menu bar (Go)
Open Applications
Ctrl+Click (right-click) PyCharm (jetbrains .app)
click get info
at the bottom, expand permissions
unlock the padlock
change all three to "read&write" to allow app to make changes to sys
lock the padlock
restart the application

There were several engineers stating the "systemtools" had to be updated in the virtual environment whether by pip or interpreter pckg mgr.

For me, it turned out to be the fact that the imports were supposed to be local, thus be pulled from the repo.




回答9:


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




回答10:


It helped me to just use the Jetbrains Toolbox to do the whole upgrade. Worked like a charm, didn't need any command line incantations or mucking about with OS folders.




回答11:


I had the same problem, the only thing that I do was the next:

$ brew cask reinstall intellij-idea.

After that I open the IntelliJ and select the option related with import previous config.

That new version is able to be updated.



来源:https://stackoverflow.com/questions/40251201/upgrading-intellij-idea-after-sierra-upgrade-does-not-have-write-access-to-pri

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!