Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm does not have write access to /usr/share/pycharm. Please run it by a privileged user to update

Tags:

pycharm

ubuntu

Need Help to update build version of Pycharm Community Edition 17.1.1 installed on Ubuntu 17.04. When "Check for Updates", the following message appears, and I am not sure how to proceed from here.

PyCharm does not have write access to /usr/share/pycharm. Please run it by a privileged user to update

How do I run it as privileged user?

like image 577
Ivan Ratchev Avatar asked Apr 15 '17 13:04

Ivan Ratchev


People also ask

How do I update PyCharm on Windows?

Alternatively, from the main menu, select Help | Check for Updates on Windows or Linux, or PyCharm | Check for Updates on macOS.


2 Answers

Please try this it works for me (do it by root):

cd /usr/lib/
chmod 777 -R pycharm-community/

Then open pycham and update.

like image 162
YangFang Avatar answered Oct 22 '22 10:10

YangFang


Please try this it works for me:

sudo updatedb && sudo locate pycharm.sh
sudo /path/to/pycharm.sh

Don't do anything else during that session, just apply the update. Then close PyCharm and reopen normally, and you should find you are running the new version with no need to download or mess with folder permissions.

for more details check https://intellij-support.jetbrains.com/hc/en-us/community/posts/206601265-Fixed-PyCharm-automatic-update-fails-on-Linux-due-to-permissions

like image 5
casol Avatar answered Oct 22 '22 12:10

casol