CPAN安装提示“等待读锁定”

发布于 2025-01-10 17:36:18 字数 1346 浏览 0 评论 0原文

我刚刚安装了 perl,并尝试在没有 root 权限的情况下安装 CPAN。

当我运行 cpan App::cpanminus 时,我陷入了无限循环,回显 Waiting for read lock on '~/.cpan/FTPstats.yml'。我尝试删除该文件,但错误仍然存​​在。

非常感谢任何解决方案并提前致谢!

完整日志的快照如下。

Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/home/louis/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Reading '/home/louis/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Tue, 01 Mar 2022 04:17:03 GMT
.............
  New CPAN.pm version (v2.29) available.
  [Currently running version is v2.16]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.


...............................................................DONE
Fetching with LWP:
http://www.cpan.org/modules/03modlist.data.gz
Tue Mar  1 13:33:09 2022: waiting for read lock on '/home/louis/.cpan/FTPstats.yml' (since Tue Mar  1 13:32:59 2022)
Tue Mar  1 13:33:12 2022: waiting for read lock on '/home/louis/.cpan/FTPstats.yml' (since Tue Mar  1 13:32:59 2022)

以及FTPstats.yml访问权限的一些详细信息。

-rw-r--r-- 1 louis louis 0 Mar  1 13:32 /home/louis/.cpan/FTPstats.yml

I just installed perl and am trying to install CPAN without root privilege.

As I run cpan App::cpanminus, I got into an infinite loop echoing Waiting for read lock on '~/.cpan/FTPstats.yml'. I tried removing the file and the error persists.

Highly appreciate any solution and thanks in advance!

A snapshot of full log is as follows.

Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/home/louis/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Reading '/home/louis/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Tue, 01 Mar 2022 04:17:03 GMT
.............
  New CPAN.pm version (v2.29) available.
  [Currently running version is v2.16]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.


...............................................................DONE
Fetching with LWP:
http://www.cpan.org/modules/03modlist.data.gz
Tue Mar  1 13:33:09 2022: waiting for read lock on '/home/louis/.cpan/FTPstats.yml' (since Tue Mar  1 13:32:59 2022)
Tue Mar  1 13:33:12 2022: waiting for read lock on '/home/louis/.cpan/FTPstats.yml' (since Tue Mar  1 13:32:59 2022)

And some details of access right of FTPstats.yml.

-rw-r--r-- 1 louis louis 0 Mar  1 13:32 /home/louis/.cpan/FTPstats.yml

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文