Studio does not have write access to /opt/android-studio. Please run it by a privileged user to update


Studio does not have write access to /opt/android-studio. Please run it by a privileged user to
 update 
 
 
 if anyone face this problem then you have to change the owner of the android studio directory 
from root to my user account and it worked.
 
 
 
 Here is the command, where $USER will change by itself to your current active user.
 
sudo chown -R $USER:$USER /opt/android-studio
 
OR,
 
You can move the directory from /opt   to your home using command:

sudo cp -r /opt/android-studio ~/ 

Or to give permissions you have to use chmod:  

sudo chmod +w /opt/android-studio/some-file

to add permission to all dir recursive:

sudo chmod +w -R /opt/android-studio/some-file 

Comments

Post a Comment