My Intellij version is 12.1 and new version is 12.1.4 so I want to update it but after dowloading new file it can not proceed because of file permission denied. Can any one tell me how to change permission so I can update my Intellij?
-
1are you trying the update as root? – sosytee Sep 18 '13 at 05:34
-
No I didn't. I just click "update and restart" button as the Intellij start and can not proceed. – Hà Link Sep 18 '13 at 10:05
-
please see http://youtrack.jetbrains.com/issue/IDEA-23308. Try changing the owner of Idea installation directory from root to user(you) – lena Sep 18 '13 at 14:31
8 Answers
Had the same issue with Idea IntelliJ 2016.2
You should set the user and group of your idea folder to yourself. (or a group that you share with other users, if you need)
In my case, it was because some files in idea were assigned to root:root, and I didn't see the point.
So I ran:
sudo chown -R jcharlet:jcharlet /opt/idea-IC-162.1121.32
- 741
- 1
- 6
- 8
-
2
-
This solution will solve the issue every time without the need to restart with root. Much better solution. – borjab Jan 23 '18 at 11:18
-
This should be the accepted answer. I was unable to update IntelliJ Idea. Assigning permissions to my user solved it for me. – Thilak Rao Mar 27 '19 at 09:49
The solution Jeremy provided is the best one on my opinion. What I would recommend is to use whoami utility call to set parameters of the current console user automatically like
sudo chown -R $(whoami) /opt/idea-ICblablabla
- 401
- 4
- 2
-
5
-
1The best solution, works out of the box and fixes the problem for good. – Martin Häusler Feb 01 '19 at 08:40
-
I ran into a similar error and this worked for me "sudo chown -R $(whoami) /usr/local/Caskroom/intellij-idea-ce/" – SyncMaster Jan 05 '22 at 04:39
Go to the /bin Folder of the "Idea", for Example (or in my case):
/opt/idea-IC-135.690/bin
and there start the App, with sudo. Like this:
sudo ./idea.sh
Just update,
if you have any /tmp memory space problem, restart your OS and try the step again.
Hope this help you.
- 35,970
- 13
- 99
- 121
- 873
- 1
- 10
- 23
-
Just noting that it took me a few restarts as sudo to get the update button to show. In the end, it worked! – jemiloii Aug 24 '15 at 14:47
-
Great, I think you can change the folder(/idea-IC-135.690/bin) permission also, to don't have to open idea with sudo. – Aby Aug 25 '15 at 08:36
-
1I didn't think of that, I just gave idea.sh 777 permissions since this is my dev machine. – jemiloii Aug 25 '15 at 15:27
-
1On my machine (OS X), it was `cd /Applications/Intellij IDEA 14/Contents/Mac OS` then sudo `./idea`. – Max Heiber Dec 02 '15 at 14:54
-
I get: "Startup Error: Unable to detect graphics environment" Any idea how to fix that? – Didier A. Dec 28 '17 at 20:35
-
I found a fix, if you get: "Startup Error: Unable to detect graphics environment". Try running with "sudo -E" instead. – Didier A. Dec 28 '17 at 21:19
For anyone using JetBrains Toolbox, you can update your IntelliJ directly from there. Open the toolbox and click update next to the app you want to update (it will either show up as a button or by clicking on the 3 dots next to the app).
- 1,940
- 8
- 14
- 21
- 11
- 2
I was having this problem with PhpStorm-183.4886.46. None of the answers dealing with permissions worked. In the end the problem was that there were several fsnotifier64 processes still running when PhpStorm quit to update that i had to kill manually
- 1
Running the IDEA would not be a good idea to run the Binary file of IntelliJ with sudo permission. Just modify the apprpriate xx.rule file under /etc/udev/rules.d, which has the specification of the USB port want to be accessed and then run intelliJ normally. Just Modify the MODE Attribute as it could be read and written for other users as well, something like 0666.
- 1
I'm on Manjaro Linux and installed through pacmac.
All I had to do was type sudo idea and start idea as root to update.
- 111
- 5
i am using ubuntu and this is what i did !
go to the location /opt and open a terminal.
type sudo chmod 777 idea-IU-211.7142.45 and hit enter.
note : this is my folder name and it can be different for you. just give intellij folder name there. go to intellij idea Help section and click check for update.
now you should have the permission
