You are not logged in.

#1 2010-11-08 08:52:06

oraerk
Member
Registered: 2010-10-20
Posts: 18

HOWTO: Yaourt and basic auth HTTP proxy

Problem: Cuurently yaourt does not work with basic auth http proxy (squid for example), though pacman works well (when issued from root account). When both apps are stated with sudo, they both fail. The proxy itself is set via .bashrc

export http_proxy='http://user:password@proxyhost:8080'

Reason: Sudo does not keep environment variables, that can be easily be tested by issuing sudo env.
Solution: Add to /etc/sudoers the following line:

 Defaults env_keep += "http_proxy" 

Now yaourt should work wink

P.S.: thanks to tuxce (original solution from bugtacker http://bugs.archlinux.fr/task/188)

Offline

Board footer

Powered by FluxBB