我使用ubuntu 12.04。我做了它在网站上说的,但我有这个错误:
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation' Traceback (most recent call last): File "<string>",line 1,in <module> IOError: [Errno 13] Permiso denegado: u'/home/housepc/.config/sublime-text-2/Installed Packages/Package Control.sublime-package' permiso denegado : "permission denied"
我可以做什么来安装它?
只需打开终端并执行此行:
原文链接:https://www.f2er.com/ubuntu/349237.htmlsudo chmod -R 777 "/home/{youruser}/.config/sublime-text-2/Installed Packages/"
并尝试重新安装软件包控制。