Tuesday, July 16, 2013

Sublime text : How to fix OSError: [Errno 1] Operation not permitted (when opening file with sublime text 2)

Recently Sublime released its new version 2.0.2 and if you want to continue with sublime you , u need it to update to the latest version





you can use the command to update the  sublime text 2 using terminal:
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text



Now type the command to evoke the editor, if it throwing the below error that you can follow below tutorial 

Unable to run package setup:
Traceback (most recent call last):
  File "./PackageSetup.py", line 165, in upgrade
    upgradePackage(pkg, pristinedir, datadir, backupdir)
  File "./PackageSetup.py", line 158, in upgradePackage
    os.path.join(backupdir, base), inhibitOverwrite)
  File "./PackageSetup.py", line 113, in upgradeArchive
    shutil.copy(src, dst)
  File ".\shutil.py", line 89, in copy
  File ".\shutil.py", line 66, in copymode
OSError: [Errno 1] Operation not permitted: '/home/rubix/.config/sublime-text-2/Pristine Packages/AppleScript.sublime-package'




To resolve , All u need to change the permission of the files

 
In general when you have a file that give you this error, try from terminal next command:
sudo chown your_username:your_groupname filename
 
The groupname is usually just your username and filename, in your case case should be:
/home/rubix/.config/sublime-text-2/Pristine\ Packages/AppleScript.sublime-package


link : askUbuntu

No comments:

Post a Comment