当我们在linux中安装一些 软件时,可能会出现这样的情况
[root@localhost home]# yum install gcc gcc-c++ kernel-devel
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 12390.
Another app is currently holding the yum lock;
waiting for it to exit...
The other application is: PackageKit
Memory : 164 M RSS (578 MB VSZ)
Started: Tue Feb 26 08:09:08 2019 - 11:53 ago
State: Sleeping, pid: 12390
Another app is currently holding the yum lock;
waiting for it to exit...
The other application is: PackageKit
Memory : 172 M RSS (586 MB VSZ)
Started: Tue Feb 26 08:09:08 2019 - 11:55 ago
State: Sleeping, pid: 12390
Another app is currently holding the yum lock;
waiting for it to exit...
The other application is: PackageKit
Memory : 172 M RSS (586 MB VSZ)
Started: Tue Feb 26 08:09:08 2019 - 11:57 ago
State: Sleeping, pid: 12390
Another app is currently holding the yum lock;
waiting for it to exit...
The other application is: PackageKit
Memory : 172 M RSS (586 MB VSZ)
Started: Tue Feb 26 08:09:08 2019 - 11:59 ago
State: Sleeping, pid: 12390
Another app is currently holding the yum lock;
waiting for it to exit...
The other application is: PackageKit
Memory : 172 M RSS (586 MB VSZ)
Started: Tue Feb 26 08:09:08 2019 - 12:01 ago
State: Sleeping, pid: 12390
Another app is currently holding the yum lock;
waiting for it to exit...
The other application is: PackageKit
Memory : 172 M RSS (586 MB VSZ)
Started: Tue Feb 26 08:09:08 2019 - 12:03 ago
State: Sleeping, pid: 12390
Another app is currently holding the yum lock;
waiting for it to exit...
The other application is: PackageKit
Memory : 172 M RSS (586 MB VSZ)
Started: Tue Feb 26 08:09:08 2019 - 12:05 ago
State: Sleeping, pid: 12390
Another app is currently holding the yum lock;
waiting for it to exit...
The other application is: PackageKit
Memory : 172 M RSS (586 MB VSZ)
Started: Tue Feb 26 08:09:08 2019 - 12:07 ago
State: Sleeping, pid: 12390
Another app is currently holding the yum lock;
waiting for it to exit...
The other application is: PackageKit
Memory : 172 M RSS (586 MB VSZ)
Started: Tue Feb 26 08:09:08 2019 - 12:09 ago
State: Sleeping, pid: 12390
Another app is currently holding the yum lock;
waiting for it to exit...
The other application is: PackageKit
Memory : 172 M RSS (586 MB VSZ)
Started: Tue Feb 26 08:09:08 2019 - 12:11 ago
State: Sleeping, pid: 12390
Another app is currently holding the yum lock;
waiting for it to exit...
The other application is: PackageKit
Memory : 172 M RSS (586 MB VSZ)
Started: Tue Feb 26 08:09:08 2019 - 12:13 ago
State: Running, pid: 12390
Another app is currently holding the yum lock;
waiting for it to exit...
The other application is: PackageKit
Memory : 172 M RSS (586 MB VSZ)
Started: Tue Feb 26 08:09:08 2019 - 12:15 ago
State: Sleeping, pid: 12390
Another app is currently holding the yum lock;
waiting for it to exit...
The other application is: PackageKit
Memory : 172 M RSS (586 MB VSZ)
Started: Tue Feb 26 08:09:08 2019 - 12:17 ago
State: Sleeping, pid: 12390
【linux 中Another app is currently holding the yum lock; waiting for it to exit...的解决方法】解决的方法:
rm -f /var/run/yum.pid 12390
这样再重新输入yum命令就可以了。
推荐阅读
- Linux|109 个实用 shell 脚本
- linux笔记|linux 常用命令汇总(面向面试)
- Linux|Linux--网络基础
- linux|apt update和apt upgrade命令 - 有什么区别()
- linux|2022年云原生趋势
- Go|Docker后端部署详解(Go+Nginx)
- 开源生态|GPL、MIT、Apache...开发者如何选择开源协议(一文讲清根本区别)
- GitHub|7 款可替代 top 命令的工具