Linux ❀ yum服务进程占用导致无法正常使用的解决方法

网友投稿 1092 2022-11-24

Linux ❀ yum服务进程占用导致无法正常使用的解决方法

Linux ❀ yum服务进程占用导致无法正常使用的解决方法

文章目录

​​1、问题描述​​​​2、解决方法​​

1、问题描述

在使用yum源进行更新、缓存、安装某个服务过程中,会出现如下报错,此时是由于进程占用导致yum无法正常运行,需要关闭进程来解决该问题;

[root@localhost ~]# yum clean allLoaded plugins: fastestmirror, langpacksRepodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fastExisting lock /var/run/yum.pid: another copy is running as pid 3520.Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 194 M RSS (1.5 GB VSZ) Started: Fri Jun 25 15:07:55 2021 - 02:25 ago State : Sleeping, pid: 3520Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 194 M RSS (1.5 GB VSZ) Started: Fri Jun 25 15:07:55 2021 - 02:27 ago State : Sleeping, pid: 3520

2、解决方法

需要终止其运行的yum进程(进程号码为报错中的pid号码)

[root@localhost yum.repos.d]# kill -9 3520

关闭进程后可以通过下面命令来确认进程是否还存在

[root@localhost yum.repos.d]# ps -ef | grep yum | grep 3520root 3979 3424 0 15:22 pts/0 00:00:00 grep --color=auto yum

关闭后即可恢复yum源的使用;

[root@localhost yum.repos.d]# yum clean allBDB2053 Freeing read locks for locker 0x10f6: 3520/140399564494656BDB2053 Freeing read locks for locker 0x10f8: 3520/140399564494656Loaded plugins: fastestmirror, langpacksRepodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fastCleaning repos: base extras updatesCleaning up everythingCleaning up list of fastest mirrors

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:HuaWei ❀ Firewalld 主备冗余HA部署方式
下一篇:Windows ❀ 用了这么久系统,才发现MAC地址居然可以修改
相关文章

 发表评论

暂时没有评论,来抢沙发吧~