473,706 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CPAN through proxy which needs authentication

4 New Member
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.f r/MIRRORED.BY/MIRRORED.BY
Fetching with LWP:
http://cpan.enstimac.f r/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.f r/MIRRORED.BY/MIRRORED.BY

Looking up proxy.iitm.ac.i n:3128
Making HTTP connection to proxy.iitm.ac.i n: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.f r/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.f r/MIRRORED.BY/MIRRORED.BY.gz

Looking up proxy.iitm.ac.i n:3128
Making HTTP connection to proxy.iitm.ac.i n: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.f r/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.f r/MIRRORED.BY/MIRRORED.BY
NcFTPGet 3.2.0
....
....
.....
....

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

Trying with "/usr/bin/wget -O -" to get
http://cpan.enstimac.f r/MIRRORED.BY/MIRRORED.BY
--12:06:58-- http://cpan.enstimac.f r/MIRRORED.BY/MIRRORED.BY
=> `-'
Resolving proxy.iitm.ac.i n... 10.93.0.31, 10.93.0.32
Connecting to proxy.iitm.ac.i n|10.93.0.31|:3 128...
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.f r/MIRRORED.BY/MIRRORED.BY.gz
--12:06:58-- http://cpan.enstimac.f r/MIRRORED.BY/MIRRORED.BY.gz
=> `-'
Resolving proxy.iitm.ac.i n... 10.93.0.32, 10.93.0.31
Connecting to proxy.iitm.ac.i n|10.93.0.32|:3 128... 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.i n:3128ftp:
Unable to locate remote host proxy.iitm.ac.i n:3128ftp:.
Alert!: Unable to connect to FTP host.
Looking up proxy.iitm.ac.i n:3128ftp:
Unable to locate remote host proxy.iitm.ac.i n: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.i n:3128ftp:
Unable to locate remote host proxy.iitm.ac.i n:3128ftp:.
Alert!: Unable to connect to FTP host.
Looking up proxy.iitm.ac.i n:3128ftp:
Unable to locate remote host proxy.iitm.ac.i n: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.i n... 10.93.0.31, 10.93.0.32
Connecting to proxy.iitm.ac.i n|10.93.0.31|:3 128... 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.i n|10.93.0.31|:3 128... 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.f r/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.f r/MIRRORED.BY/
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/


commit: wrote /etc/perl/CPAN/Config.pm
Aug 9 '07 #1
7 40971
numberwhun
3,509 Recognized Expert Moderator Specialist
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.i n:3128
Making HTTP connection to proxy.iitm.ac.i n: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.f r/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
chandru1782
4 New Member
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_ch eck 1
dontload_hash
ftp /usr/bin/ftp
ftp_proxy ftp://proxy.iitm.ac.i n:3128
getcwd cwd
gpg /usr/bin/gpg
gzip /bin/gzip
histfile /root/.cpan/histfile
histsize 100
http_proxy http://proxy.iitm.ac.i n:3128
inactivity_time out 0
index_expire 1
inhibit_startup _message 0
keep_source_whe re /root/.cpan/sources
lynx /usr/bin/lynx
make /usr/bin/make
make_arg -j3
make_install_ar g UNINST=1
makepl_arg PREFIX=~/perl
ncftpget /usr/bin/ncftpget
no_proxy localhost
pager /usr/bin/less
prerequisites_p olicy 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.f r/MIRRORED.BY/
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY/
wget /usr/bin/wget
Aug 9 '07 #3
numberwhun
3,509 Recognized Expert Moderator Specialist
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
chandru1782
4 New Member
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 Recognized Expert Moderator Specialist
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 Recognized Expert Top Contributor
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
chandru1782
4 New Member
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
21117
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 there anyone who can help me?
2
5825
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 from my company's proxy server, requiring me to authenticate myself before it will let me out on the Internet at large. I then did this:
6
7930
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 Internet Explorer connection settings (proxy:8080). However, as soon as this setting is enabled, the remoting program running on their pc stops communicating with the server it sends data to. I've disabled proxy setting on the affected pc, rebooted...
0
1690
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, download a htaccess saved file with out a proxy with authentication i also no problem, but download this file with htaccess and the auth proxy is a prob!
8
3649
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
3351
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 there's no Content-Length header and some other circumstances, so I have to tweak and modify the headers received slightly. But it works quite well with these hacks. Now I'd like to add proxy authentication so that I'm not running this open...
1
2661
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 authentication for the XmlDocument or XPathDocument object I have done the same thing in classic asp using set objXMLHTTP = Server.CreateObject("MSXML2.SERVERXMLHTTP") objXMLHTTP.Open "GET", XMLRSS, false,"username","password" how to do it in...
0
978
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 a way around this problem? Using IE6 and Win2K Pro inside the office. It would be nice to integrate the external help -search functionality without having to go and start a web browser and google for answers.
1
3860
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
8692
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9276
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7897
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6613
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4442
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4705
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3141
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2495
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2084
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.