centos7系统中yum repolist报错pid
centos7系统在做yum源时报错
[root@compute ~]# yum repolist
Loaded plugins: fastestmirror
Existing lock /var/run/yum.pid: another copy is running as pid 19832.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 22 M RSS (339 MB VSZ)
Started: Fri Oct 9 08:25:24 2020 - 02:20 ago
State : Traced/Stopped, pid: 19832
解决方法:
用kill -9来强制杀死该进程
[root@compute ~]# kill -9 19832
之后也会报出别的pid,依次用kill -9来结束进程就可以
[root@compute ~]# yum repolist
Loaded plugins: fastestmirror
Existing lock /var/run/yum.pid: another copy is running as pid 19840.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 22 M RSS (339 MB VSZ)
Started: Fri Oct 9 08:29:32 2020 - 01:45 ago
State : Traced/Stopped, pid: 19840
[root@compute ~]# kill -9 19840
多删除几次就可以了!
[root@compute ~]# yum repolist
Loaded plugins: fastestmirror
centos | 3.6 kB 00:00
iaas | 2.9 kB 00:00
(1/3): iaas/primary_db | 2.3 MB 00:00
(2/3): centos/group_gz | 155 kB 00:00
(3/3): centos/primary_db | 2.8 MB 00:00
Determining fastest mirrors
repo id repo name status
centos centos 3,723
iaas iaas 1,688
repolist: 5,411

浙公网安备 33010602011771号