Sublime Text 2 Package Control error

2019-03-27 02:25发布

CTRL SHIFT P -> Package control : Install package

If I go here, I get an error straight away

'Package Control: There are no packages available for installation'

I suspect this might be because of my college authenticated proxy. But I've already set my system variables regarding this correctly, so stuff like URLLIB2 work well.

I also added (with the correct values)

"http_proxy": "http://id:pass@proxy:port",
"https_proxy": "http://id:pass@proxy:port", 

to Package control's default settings. Still I'm getting this error. Any idea how to debug this further?

7条回答
贪生不怕死
2楼-- · 2019-03-27 03:19

Aside from the four settings("http_proxy", "https_proxy", "proxy_username", "proxy_password") others mentioned before, there's also a "user_agent" setting that might matter.

Since the default value ("Sublime Package Control v%s") of "user_agent" isn't a browser, packets containing it might be refused by the proxy. In this case "faking" it in "Preference->Package Settings->Package Control->Settings -- User" might help:

"user_agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"

PS. Wireshark is a good tool of checking what's the actual reason that downloading failed.

查看更多
登录 后发表回答