我正在尝试按照wiki.linaro.org(在我的 Ubuntu 10.04 VM 上)上的“在 Ubuntu 10.04(Lucid)和 10.10(Maverick)主机上安装交叉工具链”说明进行操作。第一步是:
sudo add-apt-repository ppa:linaro-maintainers/toolchain
Run Code Online (Sandbox Code Playgroud)
但是当我运行时,我得到:
Error reading https://launchpad.net/api/1.0/~linaro-maintainers/+archive/toolchain: <urlopen error [Errno 110] Connection timed out>
Run Code Online (Sandbox Code Playgroud)
我猜问题出在我雇主代理服务器的配置上,尤其是 HTTPS。
当我在 Firefox 中打开https://launchpad.net/api/1.0/~linaro-maintainers/+archive/toolchain时,我得到“连接超时”。然后我进入 Firefox 首选项 -> 高级 -> 网络 -> 设置...并将 HTTP 代理设置为“网关”,将端口设置为 8080,并选中“将此代理服务器用于所有协议”。然后页面加载。这支持了我的理论。
我试过设置 http_proxy 和 https_proxy 环境变量(小写和大写):
$ set | grep -i proxy
HTTPS_PROXY=https://gateway:8080
HTTP_PROXY=http://gateway:8080
http_proxy=http://gateway:8080
https_proxy=https://gateway:8080
Run Code Online (Sandbox Code Playgroud)
我也尝试将它们更改为:
$ set | grep -i proxy
HTTPS_PROXY=gateway:8080
HTTP_PROXY=gateway:8080
http_proxy=gateway:8080
https_proxy=gateway:8080
Run Code Online (Sandbox Code Playgroud)
我尝试将第二行添加到 /etc/apt/apt.conf:
Acquire::http::proxy "http://gateway:8080/";
Acquire::https::proxy "https://gateway:8080/";
Run Code Online (Sandbox Code Playgroud)
但我继续遇到同样的错误。
我该如何解决这个问题?
更新:我跟着指示 …
我在任何地方都找不到代理设置。我是否必须通过终端设置它,通过gconftools还是有一些 GUI 存在?
我一直在尝试按照这些说明进行操作,以便让 Citadel 邮件服务器与 Apache 一起工作,但是当我尝试重新启动 Apache 时出现错误:
无效的命令“ProxyPass”,...
我在 Apache 文档中被告知这是来自mod_proxy模块,但apt-get install mod_proxy给出了E: Couldn't find package mod_proxy,我无法在 Apache 站点的大列表中找到它。我需要做什么才能让 ProxyPass 在 Ubuntu 10.04 TLS 中工作?
当我尝试设置 Google Chrome 的代理设置(在 chrome://linux-proxy-config/ 上)时,我收到以下消息:
在受支持的桌面环境下运行 Google Chrome 时,将使用系统代理设置。但是,要么您的系统不受支持,要么启动您的系统配置时出现问题。
但是您仍然可以通过命令行进行配置。有关标志和环境变量的更多信息,请参阅 man google-chrome-stable。
我需要设置代理设置才能使用 Chrome,但我不想每次使用 Chrome 时都在命令行中设置它们。有没有办法永久设置这些设置?
另外,Chrome 中是否有一个选项,以便它不对特定域使用代理(类似于No proxy forFirefox 中的设置)?
我有一个通过代理连接到互联网的 Ubuntu 11.10 系统,我想通过 apt-get 安装软件包。当我尝试这样做时,我收到此错误消息:
sudo apt-get install libboost-program-options-dev
[...]
Err http://gb.archive.ubuntu.com/ubuntu/ oneiric/main libboost1.46-dev i386 1.46.1-5ubuntu2
407 Proxy Authentication Required
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
我正在寻找为终端设置代理。我需要的是我想通过代理将所有终端通信发送到互联网,比如 tor。
我尝试设置系统范围的代理设置。但是终端不遵守系统范围的代理配置。
有没有其他方法可以做到这一点?
我知道如何配置 APT 以使用网络代理。但是快照呢?
可能重复:
apt-get 不适用于代理
我尝试将终端中的代理设置更改为:
export HTTP_PROXY=http://10.1.3.1:8080
Run Code Online (Sandbox Code Playgroud)
和
export http_proxy=http://10.1.3.1:8080
Run Code Online (Sandbox Code Playgroud)
但是当我尝试安装新软件包或更新 apt-get 时,apt-get 开始显示似乎正在尝试连接到先前设置的代理的消息:
sudo apt-get update
0% [Connecting to 10.1.2.2 (10.1.2.2)] [Connecting to 10.1.2.2 (10.1.2.2)
Run Code Online (Sandbox Code Playgroud)
我曾尝试通过 bashrc 文件设置代理,但该 din 也可以工作。据我所知,10.1.2.2 是使用 GNOME GUI 设置的,但我现在无法访问 GUI,所以我试图从终端设置它。
我住在埃塞俄比亚,政府屏蔽了所有带有“代理”字样的网址。我不能在上面的标题中使用这个词,因为这会使 url 包含词代理。
当我apt-get upgrade因为某些软件包(如libproxy1, libproxy1-plugin-gsettings, )而出现错误时libproxy1-plugin-networkmanager,python-libproxy都包含 p 字。
因此,这一切都被封锁了。我尝试将 url 放入代理站点,但它们都返回到了它们的主页。
还有其他解决方案吗?