On 02/12/10 17:53, Rudiger Wolf wrote:
> 
> I have fab file with
> 
> def install_awstats():
>         """ Install awstats for mypentland site """
>         apt_get('perl')
>         sudo('wget -q
> http://awstats.sourceforge.net/files/awstats-7.0.tar.gz',pty=True)
> 

> I get this
> 
> Fatal error: sudo() encountered an error (return code 4) while executing
> 'wget -q http://awstats.sourceforge.net/files/awstats-7.0.tar.gz'
> 

I sorted out this problem by commenting out the lines for IPv6 capable
hosts in /etc/hosts
and uncommenting the following in /etc/wgetrc

# You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
https_proxy = http://localhost:3128/
http_proxy = http://localhost:3128/
#ftp_proxy = http://proxy.yoyodyne.com:18023/

# If you do not want to use proxy at all, set this to off.
use_proxy = on




_______________________________________________
Fab-user mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to