You are not logged in.
Pages: 1
Topic closed
I am currently trying to using pacman behind my college's proxy server. It requires a username and password. In firefox/opera , I set the proxy server as bsnlproxy.iitk.ac.in and port as 3128 and firefox/opera automatically asks for a username and password. I tried the following for pacman , but it did not work.
export http_proxy="http://username:password@bsnlproxy.cc.iitk.ac.in:3128"
export ftp_proxy="http://username:password@bsnlproxy.cc.iitk.ac.in:3128"
Can someone please help me out with this?
Last edited by sidc (2008-07-24 14:52:16)
Offline
no way, it has to work that way. May be you have set an ftp mirror for your sync and the proxy is blocking ftp connection (like mine). Try an http mirror.
hope this helps
Offline
I use pacman through a proxy all the time;
Run it this way:
export http_proxy='http://username:password@bsnlproxy.cc.iitk.ac.in:3128'
export ftp_proxy='http://username:password@bsnlproxy.cc.iitk.ac.in:3128'
It will work this way. You only need username:password when you actually have a user name and password for the proxy.
exported these commands check them with:
echo $http_proxy
echo $ftp_proxy
If the output has quotes or anything unexpected, try it another way.
Offline
Unfortunately, it does not work . Pacman -Syu gives the following errors
root /home/msid # pacman -Syu
:: Synchronizing package databases...
error: failed retrieving file 'core.db.tar.gz' from ftp.archlinux.org : No address record
error: failed retrieving file 'core.db.tar.gz' from mirrors.easynews.com : No address record
error: failed retrieving file 'core.db.tar.gz' from ftp.ibiblio.org : No address record
error: failed retrieving file 'core.db.tar.gz' from holmes.umflint.edu : No address record
error: failed retrieving file 'core.db.tar.gz' from mirror.neotuli.net : No address record
...
what does no address record mean?
Offline
based on this wiki entry, you could try to use wget as pacman download manager to enable more advance proxy.
Offline
I already tried that and it worked ( although I used aria2c) . Anyway, Thank you ^^
Offline
Wait, so using the same http_proxy env var, wget works but pacman with libdownload does not work?
That is not supposed to happen Maybe you should report the bug to Aaron aka phrakture.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
I did not use wget. I used aria2c. But, yes the behaviour of libdownload is weird. I think the problem is somewhere in the syntax, although I really dont know for sure. I'll report it tomorrow after trying it with wget too and rechecking the syntax.
Offline
actually, when running pacman with sudo, it inherits the root's variables and thus, it cant find a proxy. ive sovled it by doing
$ sudo bash
# export http_proxy=someproxy:someport
# pacman -Syu
is there a way to make sudo stick with the user's environment?
Offline
First, export proxies.
Then we have to do `sudo pacman ...` but that ignores exported variables.
Thus, we have to use `sudo -E pacman ...` to preserve proxies.
Offline
This is a nearly six year old thread: please don't necrobump https://wiki.archlinux.org/index.php/Fo … Bumping.27
Closing
Offline
Pages: 1
Topic closed