[arch-general] pacman from behind a proxy (not under my control)
So I just tried a new install, it works and even got updated the first time. Left it over the weekend, now that I'm back on it (still quite bare, nothing much set up yet) I can't seem to get pacman connected to the mirrors. This machine is a university machine and needs to connect via proxy.name_of_uni.edu.my:8080, so I've set http_proxy and ftp_proxy to the right values. Also substituted in the actual IP addresses with the same results. What happens is that all the mirrors get the following (with wget uncommented in pacman.conf, similar results even when not using wget) Connecting to mirrors.kernel.org|149.20.4.71|:80... failed: Connection timed out. Ironically, when I try to wget the db file itself through wget http://mirrrors.kernel.org/archlinux/testing/os/i686/testing.db it downloads fine.... Any idea what the problem could be?
On Mon, Aug 6, 2012 at 11:58 PM, Oon-Ee Ng <ngoonee.talk@gmail.com> wrote:
So I just tried a new install, it works and even got updated the first time. Left it over the weekend, now that I'm back on it (still quite bare, nothing much set up yet) I can't seem to get pacman connected to the mirrors.
This machine is a university machine and needs to connect via proxy.name_of_uni.edu.my:8080, so I've set http_proxy and ftp_proxy to the right values. Also substituted in the actual IP addresses with the same results.
What happens is that all the mirrors get the following (with wget uncommented in pacman.conf, similar results even when not using wget) Connecting to mirrors.kernel.org|149.20.4.71|:80... failed: Connection timed out.
Ironically, when I try to wget the db file itself through wget http://mirrrors.kernel.org/archlinux/testing/os/i686/testing.db it downloads fine.... Any idea what the problem could be?
Hi there, try to add a trailing slash to your proxy URL: proxy.name_of_uni.edu.my:8080/ HTH, Eliseo.
On Tue, Aug 7, 2012 at 1:08 PM, Eliseo Ocampos <roskoff@gmail.com> wrote:
On Mon, Aug 6, 2012 at 11:58 PM, Oon-Ee Ng <ngoonee.talk@gmail.com> wrote:
So I just tried a new install, it works and even got updated the first time. Left it over the weekend, now that I'm back on it (still quite bare, nothing much set up yet) I can't seem to get pacman connected to the mirrors.
This machine is a university machine and needs to connect via proxy.name_of_uni.edu.my:8080, so I've set http_proxy and ftp_proxy to the right values. Also substituted in the actual IP addresses with the same results.
What happens is that all the mirrors get the following (with wget uncommented in pacman.conf, similar results even when not using wget) Connecting to mirrors.kernel.org|149.20.4.71|:80... failed: Connection timed out.
Ironically, when I try to wget the db file itself through wget http://mirrrors.kernel.org/archlinux/testing/os/i686/testing.db it downloads fine.... Any idea what the problem could be?
Hi there, try to add a trailing slash to your proxy URL: proxy.name_of_uni.edu.my:8080/
HTH, Eliseo.
Tried that, no difference. If its something as simple as that, my normal download using wget wouldn't work, would it?
Are you SURE the http_proxy is set when running the pacman command? Try doing something like (also add in the https proxy in case): user@host$ http_proxy='http://proxy.name_of_uni.edu.my:8080' ftp_proxy='...' https_proxy='...' pacman .... I have a one line script that just has (i don't use ftp): #!/bin/bash http_proxy='http://proxy:8080' https_proxy='https://proxy:8080' $* save as pprox and then run: user@host$ pprox pacman .... and it works great. good luck! On Tue, 7 Aug 2012 16:47:24 +0800 Oon-Ee Ng <ngoonee.talk@gmail.com> wrote:
On Tue, Aug 7, 2012 at 1:08 PM, Eliseo Ocampos <roskoff@gmail.com> wrote:
On Mon, Aug 6, 2012 at 11:58 PM, Oon-Ee Ng <ngoonee.talk@gmail.com> wrote:
So I just tried a new install, it works and even got updated the first time. Left it over the weekend, now that I'm back on it (still quite bare, nothing much set up yet) I can't seem to get pacman connected to the mirrors.
This machine is a university machine and needs to connect via proxy.name_of_uni.edu.my:8080, so I've set http_proxy and ftp_proxy to the right values. Also substituted in the actual IP addresses with the same results.
What happens is that all the mirrors get the following (with wget uncommented in pacman.conf, similar results even when not using wget) Connecting to mirrors.kernel.org|149.20.4.71|:80... failed: Connection timed out.
Ironically, when I try to wget the db file itself through wget http://mirrrors.kernel.org/archlinux/testing/os/i686/testing.db it downloads fine.... Any idea what the problem could be?
Hi there, try to add a trailing slash to your proxy URL: proxy.name_of_uni.edu.my:8080/
HTH, Eliseo.
Tried that, no difference. If its something as simple as that, my normal download using wget wouldn't work, would it?
On Tue, Aug 7, 2012 at 4:57 PM, Nick Lanham <nick@afternight.org> wrote:
Are you SURE the http_proxy is set when running the pacman command?
Try doing something like (also add in the https proxy in case):
user@host$ http_proxy='http://proxy.name_of_uni.edu.my:8080' ftp_proxy='...' https_proxy='...' pacman ....
I have a one line script that just has (i don't use ftp):
#!/bin/bash http_proxy='http://proxy:8080' https_proxy='https://proxy:8080' $*
save as pprox and then run:
user@host$ pprox pacman ....
and it works great.
good luck!
Yes I'm sure, since I can exported it, and I can see it when running env, and wget works. Nothing in your script would change the env pacman is seeing on my machine. Thanks, however, it occured to me that the environment might have been changed by sudo, so once I change user it works. Conclusion - PEBKAC, as you expected (though the exact problem was misdiagnosed). Sorry all for the noise. Forgot that I had set sudo on my previous laptop install to keep the environment variables, now to set that up for this desktop as well.
On Tue, 7 Aug 2012 17:08:39 +0800 Oon-Ee Ng <ngoonee.talk@gmail.com> wrote:
On Tue, Aug 7, 2012 at 4:57 PM, Nick Lanham <nick@afternight.org> wrote:
Are you SURE the http_proxy is set when running the pacman command?
Try doing something like (also add in the https proxy in case):
user@host$ http_proxy='http://proxy.name_of_uni.edu.my:8080' ftp_proxy='...' https_proxy='...' pacman ....
I have a one line script that just has (i don't use ftp):
#!/bin/bash http_proxy='http://proxy:8080' https_proxy='https://proxy:8080' $*
save as pprox and then run:
user@host$ pprox pacman ....
and it works great.
good luck!
Yes I'm sure, since I can exported it, and I can see it when running env, and wget works. Nothing in your script would change the env pacman is seeing on my machine. Thanks, however, it occured to me that the environment might have been changed by sudo, so once I change user it works.
Conclusion - PEBKAC, as you expected (though the exact problem was misdiagnosed). Sorry all for the noise. Forgot that I had set sudo on my previous laptop install to keep the environment variables, now to set that up for this desktop as well.
actually, sudo is exactly why I have the script, sorry, should have noted that. I do: user@host$ sudo pprox pacman ... having sudo inherit environment variables works as well.
participants (3)
-
Eliseo Ocampos
-
Nick Lanham
-
Oon-Ee Ng