CentOS 7 /var/run/yum.pid: another copy is running

[15:04:08][root@localhost ~]# yum install gcc gcc-c++ kernel-devel ncurses-devel bison cmake
[15:04:08]Loaded plugins: fastestmirror, langpacks
[15:04:08]Existing lock /var/run/yum.pid: another copy is running as pid 4258.
[15:04:08]Another app is currently holding the yum lock; waiting for it to exit...
[15:04:08]  The other application is: PackageKit
[15:04:08]    Memory : 197 M RSS (1.5 GB VSZ)
[15:04:08]    Started: Thu Mar 21 14:54:14 2019 - 09:55 ago
[15:04:08]    State  : Sleeping, pid: 4258
[15:04:10]Another app is currently holding the yum lock; waiting for it to exit...
[15:04:10]  The other application is: PackageKit
[15:04:10]    Memory : 197 M RSS (1.5 GB VSZ)
[15:04:10]    Started: Thu Mar 21 14:54:14 2019 - 09:57 ago
[15:04:10]    State  : Sleeping, pid: 4258
[15:04:11]^C
[15:04:11]
[15:04:11]Exiting on user cancel.
[15:05:01][root@localhost ~]# rm -rf /var/run/yum.pid
[15:05:02][root@localhost ~]# yum install gcc gcc-c++ kernel-devel ncurses-devel bison cmake

猜你喜欢

转载自blog.csdn.net/weixin_39498617/article/details/88802451