Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After installing sublime text 2 using the following code:

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text

(Slighlty relevant) I attempted to open a file and got a permissions error. After using chmod to get permission on the folder that was giving me issues, a new error occurred. (Only relevant because I'm not sure why this was a problem in the first place, so I'm not sure if it is related.)

After doing that and attempting to open any file (from the GUI) and I receive the following error:

Unable to run package setup:

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

Any ideas as to what is going wrong/how to fix it?

share|improve this question
up vote 2 down vote accepted

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

share|improve this answer
After looking through the folder I found that all the files inside were all still zipped. I unzipped them as well as the did the chown... I'm guessing they did not need to be unzipped but I forgot to try it out in between so the world might never know :p. Thanks! – Colton Jun 5 '13 at 7:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.