[123@localhost 桌面]$ su
密码:
[root@localhost 桌面]# yum install -y pcre pcre-devel
已加载插件:fastestmirror, langpacks
/var/run/yum.pid 已被锁定,PID 为 4322 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for it to exit...
另一个应用程序是:PackageKit
内存:195 M RSS (1.5 GB VSZ)
已启动: Tue Jan 22 11:30:53 2019 - 20:01之前
状态 :睡眠中,进程ID:4322
Another app is currently holding the yum lock; waiting for it to exit...
另一个应用程序是:PackageKit
内存:195 M RSS (1.5 GB VSZ)
已启动: Tue Jan 22 11:30:53 2019 - 20:03之前
状态 :睡眠中,进程ID:4322
Another app is currently holding the yum lock; waiting for it to exit...
另一个应用程序是:PackageKit
内存:195 M RSS (1.5 GB VSZ)
已启动: Tue Jan 22 11:30:53 2019 - 20:05之前
状态 :睡眠中,进程ID:4322
解决的办法是:
1、删除该文件
[root@localhost ~]# rm -f /var/run/yum.pid
2.再次yum install -y pcre pcre-devel 安装
[root@localhost hadoop]# yum install -y pcre pcre-devel