473,320 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

CPAN through proxy which needs authentication

Dear friends,

I am trying to use CPAN for installing some perl modules. i am using a ubuntu system, which has internet connection through lan and authenticated proxy.

when trying to install cpan.pm , it gives the following error, can any one help,

You have no /root/.cpan/sources/MIRRORED.BY
I'm trying to fetch one
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY
Fetching with LWP:
http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY.gz
Fetching with LWP:
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY
Fetching with LWP:
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY.gz
Fetching with Net::FTP:
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY
Fetching with Net::FTP
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY.gz

Trying with "/usr/bin/lynx -source" to get
http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY

Looking up proxy.iitm.ac.in:3128
Making HTTP connection to proxy.iitm.ac.in:3128
Sending HTTP request.
HTTP request sent; waiting for response.
Alert!: Can't retry with proxy authorization! Contact the server's WebMaster.
Can't Access `http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY'
Alert!: Unable to access document.

lynx: Can't access startfile

Trying with "/usr/bin/lynx -source" to get
http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY.gz

Looking up proxy.iitm.ac.in:3128
Making HTTP connection to proxy.iitm.ac.in:3128
Sending HTTP request.
HTTP request sent; waiting for response.
Alert!: Can't retry with proxy authorization! Contact the server's WebMaster.
Can't Access `http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY.gz'
Alert!: Unable to access document.

lynx: Can't access startfile

Trying with "/usr/bin/ncftpget" to get
http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY
NcFTPGet 3.2.0
....
....
.....
....

Trying with "/usr/bin/ncftpget" to get
http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY.gz

Trying with "/usr/bin/wget -O -" to get
http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY
--12:06:58-- http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY
=> `-'
Resolving proxy.iitm.ac.in... 10.93.0.31, 10.93.0.32
Connecting to proxy.iitm.ac.in|10.93.0.31|:3128...
connected.
Proxy request sent, awaiting response... 407 Proxy Authentication Required
12:06:58 ERROR 407: Proxy Authentication Required.


Trying with "/usr/bin/wget -O -" to get
http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY.gz
--12:06:58-- http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY.gz
=> `-'
Resolving proxy.iitm.ac.in... 10.93.0.32, 10.93.0.31
Connecting to proxy.iitm.ac.in|10.93.0.32|:3128... connected.
Proxy request sent, awaiting response... 407 Proxy Authentication Required
12:06:58 ERROR 407: Proxy Authentication Required.


Trying with "/usr/bin/lynx -source" to get
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY




Looking up proxy.iitm.ac.in:3128ftp:
Unable to locate remote host proxy.iitm.ac.in:3128ftp:.
Alert!: Unable to connect to FTP host.
Looking up proxy.iitm.ac.in:3128ftp:
Unable to locate remote host proxy.iitm.ac.in:3128ftp:.
Alert!: Unable to connect to FTP host.

lynx: Can't access startfile ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY

Trying with "/usr/bin/lynx -source" to get
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY.gz


Looking up proxy.iitm.ac.in:3128ftp:
Unable to locate remote host proxy.iitm.ac.in:3128ftp:.
Alert!: Unable to connect to FTP host.
Looking up proxy.iitm.ac.in:3128ftp:
Unable to locate remote host proxy.iitm.ac.in:3128ftp:.
Alert!: Unable to connect to FTP host.

lynx: Can't access startfile ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY.gz

Trying with "/usr/bin/ncftpget" to get
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY



Could not connect to ftp.perl.org -- try again later: Connection timed out.
Could not connect to ftp.perl.org -- try again later: Connection timed out.
Could not connect to ftp.perl.org -- try again later: Connection timed out.
ncftpget: cannot open ftp.perl.org: could not connect to remote host, but can try again.

Trying with "/usr/bin/ncftpget" to get
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY.gz
Could not connect to ftp.perl.org -- try again later: Connection timed out.
Could not connect to ftp.perl.org -- try again later: Connection timed out.
Could not connect to ftp.perl.org -- try again later: Connection timed out.
ncftpget: cannot open ftp.perl.org: could not connect to remote host, but can try again.

Trying with "/usr/bin/wget -O -" to get
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY
--12:12:32-- ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY
=> `-'
Resolving proxy.iitm.ac.in... 10.93.0.31, 10.93.0.32
Connecting to proxy.iitm.ac.in|10.93.0.31|:3128... connected.
Logging in as anonymous ...
Error in server response, closing control connection.
Retrying.
......
.....
.....
.....
--15:25:42-- ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY.gz
(try:20) => `-'
Connecting to proxy.iitm.ac.in|10.93.0.31|:3128... connected.
Logging in as anonymous ...
Error in server response, closing control connection.
Giving up.

Issuing "/usr/bin/ftp -n"
ftp: connect to address 153.106.5.70: Connection timed out
Trying 196.25.240.137...
ftp: connect: Connection timed out
Not connected.
Local directory now /root/.cpan/sources
Not connected.
Not connected.
Not connected.
Not connected.
Not connected.
Not connected.
Bad luck... Still failed!
Can't access URL ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/MIRRORED.BY.

Please check, if the URLs I found in your configuration file
(http://cpan.enstimac.fr/MIRRORED.BY/,
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/) are valid. The urllist can be
edited. E.g. with 'o conf urllist push ftp://myurl/'

Could not fetch MIRRORED.BY
Enter another URL or RETURN to quit: [] New set of picks:
http://cpan.enstimac.fr/MIRRORED.BY/
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/


commit: wrote /etc/perl/CPAN/Config.pm
Aug 9 '07 #1
7 40852
numberwhun
3,509 Expert Mod 2GB
Dear friends,

I am trying to use CPAN for installing some perl modules. i am using a ubuntu system, which has internet connection through lan and authenticated proxy.

when trying to install cpan.pm , it gives the following error, can any one help,

Looking up proxy.iitm.ac.in:3128
Making HTTP connection to proxy.iitm.ac.in:3128
Sending HTTP request.
HTTP request sent; waiting for response.
Alert!: Can't retry with proxy authorization! Contact the server's WebMaster.
Can't Access `http://cpan.enstimac.fr/MIRRORED.BY/MIRRORED.BY'
Alert!: Unable to access document.
Ok, someone correct me if I am wrong please, but I believe that when you originally configured the CPAN interface (upon first run), there was an option within the multitude of questions you are asked regarding whether or not you are using a Proxy server. If that was answered "no", then it will not know how to use the proxy and you will have to re-run the CPAN setup again to setup the proxy piece.

Here are the instructions for starting the reconfiguration:

Start the CPAN interface with:

perl -MCPAN -e shell

then, once at the CPAN prompt, type:

cpan> o conf init

From there, it is up to you to walk through the configuration.

Regards,

Jeff
Aug 9 '07 #2
Thanks a lot for your help. kindly see below my configuration of cpan.


CPAN::Config options from /etc/perl/CPAN/Config.pm:
commit Commit changes to disk
defaults Reload defaults from disk
init Interactive setting of all options

build_cache 10
build_dir /root/.cpan/build
cache_metadata 1
cpan_home /root/.cpan
cpan_version_check 1
dontload_hash
ftp /usr/bin/ftp
ftp_proxy ftp://proxy.iitm.ac.in:3128
getcwd cwd
gpg /usr/bin/gpg
gzip /bin/gzip
histfile /root/.cpan/histfile
histsize 100
http_proxy http://proxy.iitm.ac.in:3128
inactivity_timeout 0
index_expire 1
inhibit_startup_message 0
keep_source_where /root/.cpan/sources
lynx /usr/bin/lynx
make /usr/bin/make
make_arg -j3
make_install_arg UNINST=1
makepl_arg PREFIX=~/perl
ncftpget /usr/bin/ncftpget
no_proxy localhost
pager /usr/bin/less
prerequisites_policy ask
proxy_pass antivirus
proxy_user antivirus
scan_cache atstart
shell /bin/bash
tar /bin/tar
term_is_latin 1
unzip /usr/bin/unzip
urllist
http://cpan.enstimac.fr/MIRRORED.BY/
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/
wget /usr/bin/wget
Aug 9 '07 #3
numberwhun
3,509 Expert Mod 2GB
Wow, not sure. If that username and passwd work for you normally, and the address of the proxy server(s) is correct, then that should work, IMHO.

Regards,

Jeff
Aug 9 '07 #4
dear friends, is there any way to get perl modules installed without using cpan.

please suggest,

thanks

chandru
Aug 10 '07 #5
numberwhun
3,509 Expert Mod 2GB
You certainly can! All you need to do is read the perlmodinstall page to figure out how.

Regards,

Jeff
Aug 10 '07 #6
miller
1,089 Expert 1GB
perldoc perlmodinstall

But I would encourage you strongly to use CPAN.
cpanfaq How do I install Perl Modules?

Good luck,
- Miller
Aug 11 '07 #7
thanks a lot frnds. i resolved my problem by using ntlmaps for proxy authentication.

now i am facing a problem using CVS to fetch marc-record

the error i am encountering is the following

":2401 connection timed out"

give me some idea on how to do CVS through a proxy.

regards
chandru
Aug 13 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: O. Koch | last post by:
Until now, i know that ftplib doesn't support proxies and that i have to use urllib2. But i don't know how to use the urllib2 correct. I found some examples, but i don't understand them. Is...
2
by: toa | last post by:
Hi! I'm trying to send a http request from a Windows form to a third-party server. At the outset, I got an exception - error "407 proxy authentication required", which I suppose is a message...
6
by: harry | last post by:
Hi, I have a program that runs on multiple client pc's. Occasionally one or more of those pc's use VPN to connect to another corporate network. When using VPN they need to set proxy server in...
0
by: Jörg Braun | last post by:
Hello NG, i have a problem With WebRequest! i want to download a htaccess saved file over a proxyconnetion with authentication. Download a file what is not saved with htaccess is no problem,...
8
by: Joe | last post by:
I have a web service which returns many types (classes) to match the return type. I want to cast the return type to the actual class type. For example: namespace Test { class MyClass { ...
2
by: Dan Lenski | last post by:
Hi all, I've got a very simple HTML proxy server to access the web from my cell phone (based on this code: http://www.okisoft.co.jp/esc/python/proxy/). It's a very retarded phone that freezes if...
1
by: ThatsIT.net.au | last post by:
I have asp.net application behind a ISA 2000 Server I have a few pages that import RSS, recently I have had to set authentication for out going requests though the proxy server, how do I set...
0
by: The Frog | last post by:
Hi everyone, I need a little help with a Proxy Server Authentication problem. When I try and use the Help -Search I get a 407 error saying that proxy authentication has failed. Does anyone know...
1
by: Robert Hancock | last post by:
from twisted.web import client from twisted.internet import reactor import base64 import sys def printPage(data): print data reactor.stop() def printError(failure):
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.