报错详情:
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 2549.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 51 M RSS (1.4 GB VSZ)
Started: Sat Jul 13 21:24:12 2024 - 30:43 ago
State : Sleeping, pid: 2549
该报错显示有一个锁文件 /var/run/yum.pid在保护进程,锁进程PID为2549,说明我们在执行yum之前已经有一个yum进程正在执行当中。
解决方法:
- rm /var/run/yum.pid (说明:删除锁文件即可
完美解决!!