in reply to Re^3: Problem installing CPAN modules
in thread Problem installing CPAN modules

I can't get it to work on sudo for perl.
vadmin@ubu1004:~$ sudo bash root@ubu1004:~# export HTTP_PROXY=http://myproxy:8080 root@ubu1004:~# echo $HTTP_PROXY http://myproxy:8080 root@ubu1004:~# sudo echo $HTTP_PROXY http://myproxy:8080 root@ubu1004:~# perl -wle 'print $ENV{HTTP_PROXY}' http://myproxy:8080 root@ubu1004:~# sudo perl -wle 'print $ENV{HTTP_PROXY}' Use of uninitialized value in print at -e line 1.

Replies are listed 'Best First'.
Re^5: Problem installing CPAN modules
by Corion (Patriarch) on Jun 28, 2010 at 09:24 UTC

    You're starting another sudo shell within your first sudo shell. Each new shell starts with the fresh values. Within the first sudo shell, all commands (without sudo prepended) should work now.

      First, thanks for your patience!

      Second, it still does not work. The fetching still lingers forever. It is the same for simple wget for some arbitrary site. as said before, surfing with firefox works perfectly. Could it be related to the passive thread I mentioned in the original post?

        As passive_ftp only relates to ftp, but you're only showing HTTP URLs, I doubt that this relates.