I have to work through a proxy at the office and when I press (Ctrl+Shift+P), type Install and try to load a package list, I get the error "Package Control: There are no packages available for installation."
我必须通过办公室的代理来工作,当我按下(Ctrl+Shift+P),输入Install并尝试加载一个package list时,我得到了错误的“package Control:没有可用来安装的package”。
In my 'Package Control.sublime-settings' I have:
在我的计划控制。sublime-settings“我有:
{
"auto_upgrade_last_run": 1345569476,
"http_proxy": "http://user_name:password@<proxy-name>:<proxy_port>"
}
What am I missing OR what is a better option for me to control my system using the proxy. Once I get home I typically have to disable these proxies. Is there a truly system-wide way to make it use a proxy and then disable the proxy with a single command or click?
我缺少什么,或者什么是更好的选择,让我使用代理来控制我的系统。一旦我回到家,我通常必须禁用这些代理。是否有一种真正的全系统方式让它使用代理,然后使用一个命令或单击禁用代理?
Also this is in Ubuntu 12.04.
这是在Ubuntu 12.04。
EDIT: Sublime Text Package Manager has been updated to include options for working through a proxy, you can find this in the package settings.
编辑:崇高的文本包管理器已被更新,包括通过代理工作的选项,您可以在包设置中找到。
6 个解决方案
#1
8
You do not need the http://
part. For example:
不需要http://部分。例如:
"http_proxy": "proxy.my.net:8080",
"https_proxy": "proxy.my.net:8080",
At least, this works for me, on Ubuntu and on Windows also.
至少,这对我来说是可行的,在Ubuntu和Windows上也是如此。
#2
1
The first time, I was able to sort out problems with Package Manager by using HTTP instead of HTTPS, as in
第一次,我能够通过使用HTTP而不是HTTPS来解决包管理器的问题
http://alensiljak.blogspot.co.at/2012/11/setting-up-portable-sublime-text-2.html
http://alensiljak.blogspot.co.at/2012/11/setting -便携式崇高文本- 2. - html
The default setup seem to respect the system proxy settings and work through the proxy without explicitely setting "http_proxy", "proxy_username", and "proxy_password".
默认设置似乎尊重系统代理设置,并通过代理工作,而不明确地设置“http_proxy”、“proxy_username”和“proxy_password”。
Hopefully this helps.
希望这可以帮助。
More details on various settings at (for the record, as you've already referred to these):
更多关于各种设置的详细信息(如您已经提到这些):
http://wbond.net/sublime_packages/package_control/settings
http://wbond.net/sublime_packages/package_control/settings
Note: This applies to Windows version. I keep the Linux version in the same directory but can't confirm the behaviour currently.
注意:这适用于Windows版本。我将Linux版本保存在同一个目录中,但目前无法确认该行为。
#3
1
Adding the following in Package Control.sublime.settings
worked for me on Windows 7.
在包控件中添加以下内容。设置在Windows 7上为我工作。
{ "auto_upgrade_last_run": 1345569476, "http_proxy": "user_name:password@<proxy-name>:<proxy_port>" }
{“auto_upgrade_last_run”:1345569476,“http_proxy”:“user_name:password@
#4
1
The solution for me was changing the user_agent in Package Control settings, by default is sublime text specific user_agent, but changing it to (for example) the Firefox user_agent, worked for me.
我的解决方案是在包控制设置中更改user_agent,默认情况下是崇高的特定于文本的user_agent,但是将其更改为(例如)Firefox user_agent,对我来说是可行的。
#5
0
Maybe this is something obvious that you've tried, but probably worth checking: do you have http_proxy set in your OS environment?
也许这是您已经尝试过的,但可能值得检查的东西:您的OS环境中是否设置了http_proxy ?
#6
0
If above answer did not work, I fix it by following steps:
如果上面的答案没有效果,我按照以下步骤来解决:
- open your Internet Explorer
- 打开你的ie浏览器
- tools →internet options→ advanced tag→ Security → Cancel the checkbox "Check for Server Certificate revocation" .
- 互联网工具→选项→高级→安全标签→取消复选框“检查服务器证书撤销”。
- Restart your Sublime Text
- 重启你的崇高文本
Hope it can help you.
希望它能对你有所帮助。
#1
8
You do not need the http://
part. For example:
不需要http://部分。例如:
"http_proxy": "proxy.my.net:8080",
"https_proxy": "proxy.my.net:8080",
At least, this works for me, on Ubuntu and on Windows also.
至少,这对我来说是可行的,在Ubuntu和Windows上也是如此。
#2
1
The first time, I was able to sort out problems with Package Manager by using HTTP instead of HTTPS, as in
第一次,我能够通过使用HTTP而不是HTTPS来解决包管理器的问题
http://alensiljak.blogspot.co.at/2012/11/setting-up-portable-sublime-text-2.html
http://alensiljak.blogspot.co.at/2012/11/setting -便携式崇高文本- 2. - html
The default setup seem to respect the system proxy settings and work through the proxy without explicitely setting "http_proxy", "proxy_username", and "proxy_password".
默认设置似乎尊重系统代理设置,并通过代理工作,而不明确地设置“http_proxy”、“proxy_username”和“proxy_password”。
Hopefully this helps.
希望这可以帮助。
More details on various settings at (for the record, as you've already referred to these):
更多关于各种设置的详细信息(如您已经提到这些):
http://wbond.net/sublime_packages/package_control/settings
http://wbond.net/sublime_packages/package_control/settings
Note: This applies to Windows version. I keep the Linux version in the same directory but can't confirm the behaviour currently.
注意:这适用于Windows版本。我将Linux版本保存在同一个目录中,但目前无法确认该行为。
#3
1
Adding the following in Package Control.sublime.settings
worked for me on Windows 7.
在包控件中添加以下内容。设置在Windows 7上为我工作。
{ "auto_upgrade_last_run": 1345569476, "http_proxy": "user_name:password@<proxy-name>:<proxy_port>" }
{“auto_upgrade_last_run”:1345569476,“http_proxy”:“user_name:password@
#4
1
The solution for me was changing the user_agent in Package Control settings, by default is sublime text specific user_agent, but changing it to (for example) the Firefox user_agent, worked for me.
我的解决方案是在包控制设置中更改user_agent,默认情况下是崇高的特定于文本的user_agent,但是将其更改为(例如)Firefox user_agent,对我来说是可行的。
#5
0
Maybe this is something obvious that you've tried, but probably worth checking: do you have http_proxy set in your OS environment?
也许这是您已经尝试过的,但可能值得检查的东西:您的OS环境中是否设置了http_proxy ?
#6
0
If above answer did not work, I fix it by following steps:
如果上面的答案没有效果,我按照以下步骤来解决:
- open your Internet Explorer
- 打开你的ie浏览器
- tools →internet options→ advanced tag→ Security → Cancel the checkbox "Check for Server Certificate revocation" .
- 互联网工具→选项→高级→安全标签→取消复选框“检查服务器证书撤销”。
- Restart your Sublime Text
- 重启你的崇高文本
Hope it can help you.
希望它能对你有所帮助。