CentOS7 yum报错 :another app is currently holding the yum lock;waiting for it to exit

超、凢脫俗 2024-03-26 00:19 136阅读 0赞

新创建的虚拟机上面使用 yum 命令 报错如下 :

  1. Existing lock /var/run/yum.pid: another copy is running as pid 12170.
  2. Another app is currently holding the yum lock; waiting for it to exit...
  3. The other application is: PackageKit
  4. Memory : 178 M RSS (1.5 GB VSZ)
  5. Started: Thu Mar 23 22:41:05 2023 - 02:54 ago
  6. State : Sleeping, pid: 12170
  7. Another app is currently holding the yum lock; waiting for it to exit...
  8. The other application is: PackageKit
  9. Memory : 178 M RSS (1.5 GB VSZ)
  10. Started: Thu Mar 23 22:41:05 2023 - 02:56 ago
  11. State : Sleeping, pid: 12170
  12. Another app is currently holding the yum lock; waiting for it to exit...
  13. The other application is: PackageKit
  14. Memory : 178 M RSS (1.5 GB VSZ)
  15. Started: Thu Mar 23 22:41:05 2023 - 02:58 ago
  16. State : Sleeping, pid: 12170

可以从第一行中发现重点,

  1. Existing lock /var/run/yum.pid: another copy is running as pid 12170.

先不管三七二十一 , 直接kill 掉它 ;

  1. rm -f /var/run/yum.pid

然后就可以了

发表评论

表情:
评论列表 (有 0 条评论,136人围观)

还没有评论,来说两句吧...

相关阅读