3

I am having trouble with opam and lock files.

chris@chris:~$ opam upgrade
Another process (19525) has already locked "/home/chris/.opam/4.00.1/lock". Retrying in 1s (0/5)
Another process (19525) has already locked "/home/chris/.opam/4.00.1/lock". Retrying in 1s (1/5)
Another process (19525) has already locked "/home/chris/.opam/4.00.1/lock". Retrying in 1s (2/5)
Another process (19525) has already locked "/home/chris/.opam/4.00.1/lock". Retrying in 1s (3/5)
Another process (19525) has already locked "/home/chris/.opam/4.00.1/lock". Retrying in 1s (4/5)
'opam upgrade' failed.
# opam-version    1.1.0
# os              linux
Too many attempts. Cancelling.

I'm not really sure what the issue could be. I am fairly inexperienced with the entire system. I don't think it has anything to do with aspcud, as I do not have it installed. The machine I am using is running Ubuntu 13. Thanks guys.

EDIT:

I have tried to reboot and this is what happens when i try and kill the process

chris@chris:~/dev$ kill 19525
bash: kill: (19525) - No such process
4

1 回答 1

5

似乎 opam 进程创建了一个锁定文件,然后以某种方式意外死亡,留下了锁定文件 /home/chris/.opam/4.00.1/lock 。

如果您确定没有运行 opam 进程,只需删除锁定文件。特别是您已经重新启动了机器,因此删除文件是完全安全的。

于 2013-12-26T03:06:46.940 回答