Log error

Going to read '/root/.cpan/Metadata'
  Database was generated on Mon, 01 Dec 2014 08:29:02 GMT
Going to read '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Going to read '/root/.cpan/sources/modules/02packages.details.txt.gz'
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Line-Count header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Last-Updated header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
DONE
Going to read '/root/.cpan/sources/modules/03modlist.data.gz'
Can't locate object method "data" via package "CPAN::Modulelist" (perhaps you forgot to load "CPAN::Modulelist"?) at (eval 23) line 1.
 at /usr/share/perl/5.14/CPAN/Index.pm line 524
	CPAN::Index::rd_modlist('CPAN::Index', '/root/.cpan/sources/modules/03modlist.data.gz') called at /usr/share/perl/5.14/CPAN/Index.pm line 85
	CPAN::Index::reload('CPAN::Index') called at /usr/share/perl/5.14/CPAN.pm line 692
	CPAN::all_objects('CPAN=HASH(0x1474e28)', 'CPAN::Module') called at /usr/share/perl/5.14/CPAN/Shell.pm line 1300
	CPAN::Shell::expand_by_method('CPAN::Shell', 'CPAN::Module', 'ARRAY(0x729c78)', '/./') called at /usr/share/perl/5.14/CPAN/Shell.pm line 1272
	CPAN::Shell::expand('CPAN::Shell', 'Module', '/./') called at /usr/share/perl/5.14/CPAN/Shell.pm line 859
	CPAN::Shell::_u_r_common('CPAN::Shell', 'r') called at /usr/share/perl/5.14/CPAN/Shell.pm line 1032
	CPAN::Shell::r('CPAN::Shell') called at /usr/share/perl/5.14/CPAN/Shell.pm line 842
	CPAN::Shell::upgrade('CPAN::Shell') called at /usr/share/perl/5.14/App/Cpan.pm line 618
	App::Cpan::_upgrade('ARRAY(0x70b010)', 'HASH(0x1503b98)') called at /usr/share/perl/5.14/App/Cpan.pm line 386
	App::Cpan::run('App::Cpan', 'd_flock') called at /usr/bin/cpan line 11

cara untuk mengatasinya pindahkan folder .cpan lalu jalankan perintah cpan -u untuk mengupdate cpan mirror dan file listnya

mv ~/.cpan ~/.cpan-ori
cpan -u

Leave a comment

Your email address will not be published. Required fields are marked *