cpan fails to work after machine relocation

J

Josef Moellers

Hi,

In oder not to save some time, I decided to do the upgrade of my work
machine's Linux distro during the weekend at home, rather than at work.
Obviously, I have a different network setup at home (a 172.16.0-subnet
rather than the subnet at work).
At home, I was able to install several packages from CPAN, however, when
I tried this here at work, I failed.
I changed the proxy-URLs in /etc/perl/CPAN/config.pm, but "cpan
Net::IMAP" terminates with an error message (at the end of this message.

I'd be prepared to completely re-configure cpan, but don't know what to
actually remove to do that. Or ... maybe I just miss something so the
current setup works?

Josef

Tail of output at the end of "cpan Net::LDAP":

CPAN: LWP::UserAgent loaded ok (v2.036)
CPAN: Time::HiRes loaded ok (v1.86)
Warning: no success downloading
'/root/.cpan/sources/authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz.tmp19657'.
Giving up on it. at /usr/local/share/perl/5.8.8/CPAN/FTP.pm line 837
CPAN::FTP::hostdlhard('CPAN::FTP', 'ARRAY(0x850abcc)',
'authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz',
'/root/.cpan/sources/authors/id/G/GB/GBARR/perl-ldap-0.39.tar....',
'HASH(0xcdbea24)') called at /usr/local/share/perl/5.8.8/CPAN/FTP.pm
line 515
CPAN::FTP::hostdlxxx('CPAN::FTP', 'dlhard', 'undef',
'ARRAY(0x850abcc)', 'authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz',
'/root/.cpan/sources/authors/id/G/GB/GBARR/perl-ldap-0.39.tar....',
'HASH(0xcdbea24)') called at /usr/local/share/perl/5.8.8/CPAN/FTP.pm
line 442
CPAN::FTP::localize('CPAN::FTP',
'authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz',
'/root/.cpan/sources/authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz')
called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 379

CPAN::Distribution::get_file_onto_local_disk('CPAN::Distribution=HASH(0xbc2fdc8)')
called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 343
CPAN::Distribution::get('CPAN::Distribution=HASH(0xbc2fdc8)')
called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 1677
CPAN::Distribution::make('CPAN::Distribution=HASH(0xbc2fdc8)')
called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 2876
CPAN::Distribution::test('CPAN::Distribution=HASH(0xbc2fdc8)')
called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 3266

CPAN::Distribution::install('CPAN::Distribution=HASH(0xbc2fdc8)') called
at /usr/local/share/perl/5.8.8/CPAN/Module.pm line 474
eval {...} called at /usr/local/share/perl/5.8.8/CPAN/Module.pm
line 473
CPAN::Module::rematein('CPAN::Module=HASH(0xb390900)',
'install') called at /usr/local/share/perl/5.8.8/CPAN/Module.pm line 576
CPAN::Module::install('CPAN::Module=HASH(0xb390900)') called at
/usr/local/share/perl/5.8.8/CPAN/Shell.pm line 1755
CPAN::Shell::rematein('CPAN::Shell', 'install', 'Net::LDAP')
called at /usr/local/share/perl/5.8.8/CPAN/Shell.pm line 1935
CPAN::Shell::__ANON__('CPAN::Shell', 'Net::LDAP') called at
/usr/local/bin/cpan line 319
main::_default('ARRAY(0x8154390)') called at
/usr/local/bin/cpan line 278


You have not configured a urllist and do not allow connections to the
internet to get a list of mirrors. If you wish to get a list of CPAN
mirrors to pick from, use this command

o conf init connect_to_internet_ok urllist

If you do not wish to get a list of mirrors and would prefer to set
your urllist manually, use just this command instead

o conf init urllist
 
J

j.keßler

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Josef said:
Hi,

In oder not to save some time, I decided to do the upgrade of my work
machine's Linux distro during the weekend at home, rather than at work.
Obviously, I have a different network setup at home (a 172.16.0-subnet
rather than the subnet at work).
At home, I was able to install several packages from CPAN, however, when
I tried this here at work, I failed.
I changed the proxy-URLs in /etc/perl/CPAN/config.pm, but "cpan
Net::IMAP" terminates with an error message (at the end of this message.

I'd be prepared to completely re-configure cpan, but don't know what to
actually remove to do that. Or ... maybe I just miss something so the
current setup works?

Josef

Tail of output at the end of "cpan Net::LDAP":

CPAN: LWP::UserAgent loaded ok (v2.036)
CPAN: Time::HiRes loaded ok (v1.86)
Warning: no success downloading
'/root/.cpan/sources/authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz.tmp19657'.
Giving up on it. at /usr/local/share/perl/5.8.8/CPAN/FTP.pm line 837
CPAN::FTP::hostdlhard('CPAN::FTP', 'ARRAY(0x850abcc)',
'authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz',
'/root/.cpan/sources/authors/id/G/GB/GBARR/perl-ldap-0.39.tar....',
'HASH(0xcdbea24)') called at /usr/local/share/perl/5.8.8/CPAN/FTP.pm
line 515
CPAN::FTP::hostdlxxx('CPAN::FTP', 'dlhard', 'undef',
'ARRAY(0x850abcc)', 'authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz',
'/root/.cpan/sources/authors/id/G/GB/GBARR/perl-ldap-0.39.tar....',
'HASH(0xcdbea24)') called at /usr/local/share/perl/5.8.8/CPAN/FTP.pm
line 442
CPAN::FTP::localize('CPAN::FTP',
'authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz',
'/root/.cpan/sources/authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz')
called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 379

CPAN::Distribution::get_file_onto_local_disk('CPAN::Distribution=HASH(0xbc2fdc8)')
called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 343
CPAN::Distribution::get('CPAN::Distribution=HASH(0xbc2fdc8)')
called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 1677
CPAN::Distribution::make('CPAN::Distribution=HASH(0xbc2fdc8)')
called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 2876
CPAN::Distribution::test('CPAN::Distribution=HASH(0xbc2fdc8)')
called at /usr/local/share/perl/5.8.8/CPAN/Distribution.pm line 3266

CPAN::Distribution::install('CPAN::Distribution=HASH(0xbc2fdc8)') called
at /usr/local/share/perl/5.8.8/CPAN/Module.pm line 474
eval {...} called at /usr/local/share/perl/5.8.8/CPAN/Module.pm
line 473
CPAN::Module::rematein('CPAN::Module=HASH(0xb390900)',
'install') called at /usr/local/share/perl/5.8.8/CPAN/Module.pm line 576
CPAN::Module::install('CPAN::Module=HASH(0xb390900)') called at
/usr/local/share/perl/5.8.8/CPAN/Shell.pm line 1755
CPAN::Shell::rematein('CPAN::Shell', 'install', 'Net::LDAP')
called at /usr/local/share/perl/5.8.8/CPAN/Shell.pm line 1935
CPAN::Shell::__ANON__('CPAN::Shell', 'Net::LDAP') called at
/usr/local/bin/cpan line 319
main::_default('ARRAY(0x8154390)') called at /usr/local/bin/cpan
line 278
Hello,

did you tried what comes with the error message ?(below)
You have not configured a urllist and do not allow connections to the
internet to get a list of mirrors. If you wish to get a list of CPAN
mirrors to pick from, use this command

o conf init connect_to_internet_ok urllist

If you do not wish to get a list of mirrors and would prefer to set
your urllist manually, use just this command instead

o conf init urllist
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)

iEYEARECAAYFAkpbCygACgkQE++2Zdc7EtenDACfUgeUupxsc7ulCxR7PdOLlK02
dqQAoJ0DLNlUVuCPqyF4cAQDgulimpHG
=T3sB
-----END PGP SIGNATURE-----
 
J

Josef Moellers

j.keßler said:
Hello,

did you tried what comes with the error message ?(below)

I noticed this only after I posted the message. Cancelling was probably
too late. Thing was ... it did work at home!

Josef
 
J

j.keßler

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Josef said:
I noticed this only after I posted the message. Cancelling was probably
too late. Thing was ... it did work at home!

Josef
but it sounds like you have to configure CPAN again.

anyone else has a suggestion ?

j.keßler
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)

iEYEARECAAYFAkpbNM4ACgkQE++2Zdc7EtfBBgCaA3eEoDhmAgTu1LEQcGf7KJof
rkYAnAofFkoSpg1ZFDYxyaqhfvuSxRYl
=iG7i
-----END PGP SIGNATURE-----
 
J

Josef Moellers

j.keßler said:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


but it sounds like you have to configure CPAN again.

Being a person who goes for pragmatic solutions ... I just used my swiss
army knife (vi ;-) to edit the /etc/perl/CPAN/config.pm to insert the
URL from the old config.

It now works.

Josef
 
S

sln

Being a person who goes for pragmatic solutions ... I just used my swiss
army knife (vi ;-) to edit the /etc/perl/CPAN/config.pm to insert the
URL from the old config.

It now works.

Josef

Aren't you supposed to be able to do that without modifying a .pm file?

-sln
 
J

Josef Moellers

Aren't you supposed to be able to do that without modifying a .pm file?

TMTOWTDI ;-)

In the end, any other way will most likely modify the .pm file anyhow,
whether I'm using The Official Way(tm) or sneaking in through the back
door. I like having someone lead the way if I'm unfamiliar with things,
but sometimes I just take a shortcut, especially if I've switched to
frantic mode.

As to whether a .pm file should be modified at all: that's a
configuration file in the form of a Perl Module, much like a number of
configuration files in some Linux distributions' /etc/default are shell
scripts. But you probably know that.

Josef
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top