zoukankan      html  css  js  c++  java
  • CentOS-7 yum安装出现/var/run/yum.pid 已被锁定,解决办法

    才安装的CentOS7,本想安装gcc、gcc+,结果出现下面错误

    [root@bogon ~]# yum install -y gcc gcc+
    已加载插件:fastestmirror, langpacks
    /var/run/yum.pid 已被锁定,PID 为 11154 的另一个程序正在运行。
    Another app is currently holding the yum lock; waiting for it to exit...
    另一个应用程序是:PackageKit
    内存:130 M RSS (1.4 GB VSZ)
    已启动: Mon May 1 16:17:14 2017 - 04:06之前
    状态 :睡眠中,进程ID:11154
    Another app is currently holding the yum lock; waiting for it to exit...
    另一个应用程序是:PackageKit
    内存:130 M RSS (1.4 GB VSZ)
    已启动: Mon May 1 16:17:14 2017 - 04:08之前
    状态 :睡眠中,进程ID:11154

    经过百度发现只要删除/var/run/yum.pid就可以正常使用了,即rm -rf /var/run/yum.pid.

  • 相关阅读:
    DP实验
    Linux shell学习
    线性排序算法-计数排序
    算法笔试题练习
    堆排序
    node.js初识
    linux下vim命令详解
    html5学习笔记
    有趣的参数收集
    算法学习-归并排序
  • 原文地址:https://www.cnblogs.com/yangyongchao/p/12525386.html
Copyright © 2011-2022 走看看