Re: pacman from behind a proxy (not under my control)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, 7 Aug 2012 17:08:39 +0800
Oon-Ee Ng <ngoonee.talk@xxxxxxxxx> wrote:

> On Tue, Aug 7, 2012 at 4:57 PM, Nick Lanham <nick@xxxxxxxxxxxxxx>
> 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.


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux