如何通过 HTTP 代理使用 Bazaar?
如何通过 HTTP 代理使用 Bazaar? 我在他们的文档中找不到任何内容。
How do I use Bazaar with a HTTP proxy? I can't find anything in their documentation.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
设置
http_proxy
环境变量以指向您的代理,例如。 (在 Windows 上):请参阅 http://bazaar-vcs.org/ConfiguringBzr
Set the
http_proxy
environment variable to point to your proxy, eg. (on Windows):See the "Environment variables" section of http://bazaar-vcs.org/ConfiguringBzr
另外不要忘记设置
HTTPS_PROXY
环境变量。Also do not forget to set
HTTPS_PROXY
environment variable.我发布此答案作为以后可能访问此页面的人的参考。
如果在尝试所有其他方法后仍然遇到代理连接问题,请尝试使用 dconf 和 gconf 编辑器设置代理设置。
注意:
最新程序预计使用的设置是 DConf 设置,但某些旧程序可能仍使用 GConf 设置,因此明智的做法是在两者中都设置代理设置。
如果尚未安装,您可以从 synaptic 或您发行版的包管理器轻松安装 dconf 和 gconf 编辑器。
代理设置:
在 Conf dconf 编辑器中遍历到
system > proxy
在那里您应该看到用于设置 ftp、http、https、socks 代理设置的选项。
注意:
如果您的代理需要身份验证,并且您的密码包含特殊字符,例如
@
,您现在就会知道(经过艰苦的搜索),您应该将您的@
替换为%配置代理设置时使用 40(@
的 HTML 字符编码),例如。 在~/.bashrc 中。不要在配置编辑器中遵循这种做法。 按原样输入您的密码。
现在,对于 gconf 编辑器,代理设置的路径是相同的,但选项可能有点不同。 但是,我相信你一定能成功。
I post this answer as a reference for those who may later visit this page.
If you still have trouble with proxy connection after trying all the other methods, try setting your proxy settings using dconf and gconf editors.
Note:
The settings that the latest programs are expected to use are the DConf settings but some old programs might still use GConf settings, so it is wise to set your proxy settings in both.
If not already installed, you can easily install dconf and gconf editors from synaptic or the package manager of your distribution.
Proxy Settings:
In your Conf dconf editor traverse to
system > proxy
There you should see the options for setting your ftp, http, https, socks proxy settings.
Note:
In case your proxy needs authentication, and your password contains special characters like
@
you would know by now (after painstaking searches), that you should replace your@
with %40 (the HTML character encoding for@
) while configuring your proxy settings, eg. in ~/.bashrc.Do not follow this practice in the configuration editor. Type your password as it is.
Now, in case of gconf editor, the path to the proxy settings is same, but the options might be a bit different. But, I am sure you can make it out.