使用yum安装软件的时候出现,/var/run/yum.pid 已被锁定,PID 为 6503 的另一个程序正在运行的问题

[root@localhost mysql]# yum install gcc gcc-c++ cmake ncurses-devel bison
已加载插件:fastestmirror, langpacks
/var/run/yum.pid 已被锁定,PID 为 6503 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for itto exit...
另一个应用程序是:PackageKit
内存: 31 M RSS (361 MB VSZ)
已启动: Sat Jun 22 14:39:13 2019 - 00:04之前
状态 :运行中,进程ID:6503
Another app is currently holding the yum lock; waiting for itto exit...
另一个应用程序是:PackageKit
内存: 46 M RSS (375 MB VSZ)
已启动: Sat Jun 22 14:39:13 2019 - 00:06之前
状态 :运行中,进程ID:6503

解决办法:

vim   /etc/yum/pluginconf.d/fastestmirror.conf

enabled=1 改为enabled=0

重启服务器

 

相关文章:

  • 2021-09-07
  • 2021-12-14
  • 2022-12-23
  • 2021-12-15
  • 2021-11-21
  • 2021-08-24
  • 2021-08-22
猜你喜欢
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-05
  • 2021-12-19
  • 2021-12-21
  • 2021-04-08
相关资源
相似解决方案