当前位置:网站首页>[问题]yum资源被占用怎么办
[问题]yum资源被占用怎么办
2022-07-26 22:39:00 【ATZXC红蓝对抗】
1、遇到问题
当我们使用CentOS系统的时候,使用yum源,安装和卸载一个程序的时候,提示如下问题,我们该怎么办呢?

2、解决问题
解决方法如下:
rm -f /var/run/yum.pid然后重新执行yum源就可以了,也可以不用重新执行

有时用yum升级一些文件时,会出现以下情况:
another app is currently holding the yum lock;waiting for it to exit...
可以通过强制关掉yum进程:
#rm -f /var/run/yum.pid
再重启一下
/sbin/service yum-updatesd restart
原文链接:https://blog.csdn.net/luyao127/article/details/836495803、如何永久解决?
如何防止再次出现这个问题呢?
[[email protected] pluginconf.d]# cd /etc/yum/pluginconf.d/
[[email protected] pluginconf.d]# ls
product-id.conf refresh-packagekit.conf rhnplugin.conf security.conf subscription-manager.conf
[[email protected] pluginconf.d]# vim refresh-packagekit.conf
[main]
enabled=0 --将原来的1改成0即可此图片引用自梓沐

边栏推荐
- Dynamic binding, static binding, and polymorphism
- [acwing game 61]
- [4.7 Gauss elimination details]
- 【4.4 快速幂详解及快速幂求逆元】
- [interview: concurrent Article 16: multithreading: detailed explanation of wait/notify] principle and wrong usage (false wake-up, etc.)
- JSCORE day_ 04(7.5)
- [Network Research Institute] attackers scan 1.6 million WordPress websites to find vulnerable plug-ins
- [qt] attribute
- Crop TIF image
- [watevrCTF-2019]Cookie Store
猜你喜欢

DOM day_ 01 (7.7) introduction and core operation of DOM
![[CISCN2019 华北赛区 Day1 Web5]CyberPunk](/img/84/b186adc8becfc9b3def7dfd8e4cd41.png)
[CISCN2019 华北赛区 Day1 Web5]CyberPunk

JSCORE day_05(7.6)

Crop TIF image

DOM day_01(7.7) dom的介绍和核心操作

JSCORE day_03(7.4)

DOM day_02(7.8)网页制作流程、图片src属性、轮播图、自定义属性、标签栏、输入框事件、勾选操作、访问器语法
![[leetcode] no duplicate longest string](/img/97/bf8c9b019136ab372ce2c43cddbb2c.jpg)
[leetcode] no duplicate longest string

The use of C language static can flexibly change the life cycle and make you write code like a duck to water

DOM day_04(7.12)BOM、打开新页面(延迟打开)、地址栏操作、浏览器信息读取、历史操作
随机推荐
【Codeforces Round #807 (Div 2.) A·B·C】
Checked status in El checkbox 2021-08-02
[SQL注入] 扩展注入手法
Parallel MPI program delivery send message
[RootersCTF2019]I_<3_Flask
C language is more than a variety of descriptions of size. Don't stick to one way of writing
【AtCoder Beginner Contest 261 (A·B·C·D)】
js中this指向详解
[b01lers2020]Welcome to Earth
Programmers must do 50 questions
[BJDCTF2020]EzPHP
Use of postman
JSCORE day_05(7.6)
用New,delete和用malloc,free申请,释放堆区空间
Input a string of letters and output the vowels inside. I hope you guys can give guidance
Operator overloading
On the expression of thymeleaf
The use of C language static can flexibly change the life cycle and make you write code like a duck to water
Point to plane projection
2022.7.14DAY604