CentOS 7 系列新安装后都会进行 yum update 操作, 但每次都会遇到 PackageKit 锁定问题, 提示如下:
/var/run/yum.pid 已被锁定, PID 为 2694 的另一个程序正在运行.
Another App is currently holding the yum lock; waiting for it to exit...
另一个应用程序是: PackageKit
内存: 119 M RSS (531 MB VSZ)
已启动: Wed Oct 17 14:25:13 2018 - 01:16 之前
状态 : 睡眠中, 进程 ID:2694
PackageKit 是一个离线更新服务, 没啥用途, 直接永久禁用.
CentOS 7 下, VIM /etc/yum/pluginconf.d/langpacks.conf
将第一行: enable=1 改为 enable=0 即可
再执行 yum update, 就不会被锁定了.
来源: http://www.bubuko.com/infodetail-3345749.html