1

我正在尝试使用 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)时会发生这种情况。

有谁知道可能出了什么问题?

4

1 回答 1

0

我在 14.04 上遇到了完全相同的问题,并使用位于以下位置的说明通过在系统上添加交换文件来修复它:https ://www.digitalocean.com/community/tutorials/how-to-add-swap-on- ubuntu-14-04

于 2015-07-06T23:27:59.510 回答