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