我正在尝试使用CPAN安装perl模块,但CPAN似乎崩溃了。它说有一个我可以安装的更新(我正在运行v1.960001),但在尝试运行之后,它会退回到命令提示符:
cpan[1]> install CPAN
Going to read '/home/ubuntu/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Going to read '/home/ubuntu/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Tue, 04 Jun 2013 14:08:21 GMT
..............
New CPAN.pm version (v2.00) available.
[Currently running version is v1.960001]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.
..............................................
ubuntu@ip-10-166-105-207:/home/www/cgi-bin$ sudo cpan
Terminal does not support AddHistory.
There seems to be running another CPAN process (pid 10592). Contacting...
Other job not responding. Shall I overwrite the lockfile '/home/ubuntu/.cpan/.lock'? (Y/n) [y]
当我尝试重新使用CPAN时,它表示它已经在运行。
当我尝试更新CPAN或安装模块(如JSON)时会发生这种情况。
有没有人有任何可能出错的线索?
答案 0 :(得分:0)
我在14.04遇到了完全相同的问题,并通过在系统上添加交换文件来修复它,使用位于https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04的说明