Tinker with Cpan today. Error during installation:
[Email protected]:~# cpan Install DBI
CPAN.PM requires configuration, but the most of it can is done automatically.
If you answer ' no ' below, you'll enter an interactive dialog for each
Configuration option instead.
Would you like to configure as much as possible automatically? [Yes]
Would you like me to automatically choose some CPAN mirror
Sites for? (This means connecting to the Internet) [Yes]
Invalid host name on line 1 at/usr/share/perl/5.18/cpan/firsttime.pm line 1857.
Analyze the reason, see 1857 is looking for mirrors, but because before the network error load mirrors list is empty, and mirrors list takes priority to use the cache;
Workaround, manually select a mirrors, or wait for the mirrors list to be loaded and then perform an installation, such as:
CPAN installation Error Invalid host name on line 1 at *firsttime.pm Line 1857.