2

设置 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,我可以重新安装它吗?

4

2 回答 2

0

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

于 2013-09-12T16:00:51.963 回答
0

该错误是由于“包”文件夹权限引起的。

您可以在终端中运行:

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

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

于 2016-02-24T11:53:54.937 回答