Sublime Text 2安装包控件时出错 - 无法删除

时间:2013-09-12 13:47:01

标签: ubuntu installation sublimetext2

设置Sublime Text 2后,我尝试安装包控件,但是我遇到了错误。然后每次我打开Sublime Text 2时都会出错:

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 90, in upgradeArchive
    writeFile(fname, newar.read(f))
File "./PackageSetup.py", line 18, in writeFile
    with open(fname, 'wb') as fo: 
IOError: [Errno 2] No such file or directory: u'/home/halink/.config/sublime-text-2/Packages/Package Control/package_control/preferences_filename.py'

我试图将其删除并重新安装,但我不能。任何人都可以告诉我如何解决它或如何删除Sublime Text我可以重新安装它吗?

2 个答案:

答案 0 :(得分:0)

我只是按照这里的指示: http://community.linuxmint.com/tutorial/view/907并删除之前创建的桌面文件。它现在有用了!

答案 1 :(得分:0)

错误是由于' Packages'文件夹权限。

您可以在终端中运行:

sudo chmod -R 777 "/home/{yourself}/.config/sublime-text-2/Packages/

另外,您可能需要为其他一些文件夹设置权限。