/var/run/yum.pid でロックを作成できません。

/var/run/yum.pid でロックを作成できません。

CentOSでを使用しようとすると、次のメッセージyumが表示され続けます。

    Loaded plugins: fastestmirror, priorities
Could not create lock at /var/run/yum.pid: [Errno 28] No space left on device: '/var/run/yum.pid' 
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  19 M RSS (301 MB VSZ)
    Started: Tue Aug 27 14:27:41 2013 - 00:00 ago
    State  : Running, pid: 21381
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  19 M RSS (301 MB VSZ)
    Started: Tue Aug 27 14:27:41 2013 - 00:02 ago
    State  : Running, pid: 21381
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  19 M RSS (301 MB VSZ)
    Started: Tue Aug 27 14:27:41 2013 - 00:04 ago
    State  : Running, pid: 21381
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  19 M RSS (301 MB VSZ)
    Started: Tue Aug 27 14:27:41 2013 - 00:06 ago
    State  : Running, pid: 21381

確かにディスク容量が十分です。ファイル/var/run/yum.pidもありません。

どうすれば解決できますかyum

ベストアンサー1

PID 21381がどのプロセスであるかを確認できますか?

ps -p 21381

私はあなたがパッケージマネージャ/アップデータが自動的に起動し、現在いくつかのアップデートを入手しようとしているGUIで作業していると思います。あるいは、定期的にyumコマンドを実行するcronバッチがあるかもしれません。ところで、システムにどのディストリビューションがインストールされていますか?

最も簡単な方法はプロセスを終了することですが、まずプロセスが何であるかを確認してください。

おすすめ記事