如何通过 HTTP 代理使用 Bazaar?

发布于 2024-07-25 13:34:54 字数 47 浏览 3 评论 0原文

如何通过 HTTP 代理使用 Bazaar? 我在他们的文档中找不到任何内容。

How do I use Bazaar with a HTTP proxy? I can't find anything in their documentation.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

奢欲 2024-08-01 13:34:54

设置 http_proxy 环境变量以指向您的代理,例如。 (在 Windows 上):

set http_proxy=http://webcache.mycompany.com:3128/

请参阅 http://bazaar-vcs.org/ConfiguringBzr

Set the http_proxy environment variable to point to your proxy, eg. (on Windows):

set http_proxy=http://webcache.mycompany.com:3128/

See the "Environment variables" section of http://bazaar-vcs.org/ConfiguringBzr

挽手叙旧 2024-08-01 13:34:54

另外不要忘记设置 HTTPS_PROXY 环境变量。

set https_proxy=http://my.proxy.com:3128/

Also do not forget to set HTTPS_PROXY environment variable.

set https_proxy=http://my.proxy.com:3128/
垂暮老矣 2024-08-01 13:34:54

我发布此答案作为以后可能访问此页面的人的参考。

如果在尝试所有其他方法后仍然遇到代理连接问题,请尝试使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文