Your configuration suggests that CPAN.pm should use a working directory of /usr/src/cpan Unfortunately we could not create the lock file /usr/src/cpan/.lock due to permission problems. Please make sure that the configuration variable $CPAN::Config->{cpan_home} points to a directory where you can write a .lock file. You can set this variable in either /usr/lib/perl5/CPAN/Config.pm or /home/andrew/.cpan/CPAN/MyConfig.pm Could not open >/usr/src/cpan/.lock: Permission denied