执行yum makecache的时候出现以下异常 [root@bigdata yum.repos.d]# yum makecache
Loaded plugins: langpacks, ulninfo
Existing lock /var/run/yum.pid: another copy is running as pid 3519.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 300 M RSS (723 MB VSZ)
Started: Mon Nov 29 17:39:44 2021 - 03:45 ago
State : Sleeping, pid: 3519
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 300 M RSS (723 MB VSZ)
Started: Mon Nov 29 17:39:44 2021 - 03:47 ago
State : Sleeping, pid: 3519 异常原因:yum在锁定状态中,已有一个yum进程在运行 解决方案:强制停掉yum,如下所示 [root@bigdata yum.repos.d]# rm -f /var/run/yum.pid
[root@bigdata yum.repos.d]# yum makecache
Loaded plugins: langpacks, ulninfo
oel7 | 3.6 kB 00:00
(1/4): oel7/group_gz | 131 kB 00:00
(2/4): oel7/filelists_db | 3.9 MB 00:00
(3/4): oel7/primary_db | 5.2 MB 00:00
(4/4): oel7/other_db | 1.6 MB 00:00
Metadata Cache Created
|