Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does CentOS yum forcibly unlock

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to forcibly unlock CentOS yum". Interested friends may wish to take a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to unlock CentOS yum by force".

1. Error prompt:

The code is as follows:

[root@localhost] # yum list

Existing lock / var/run/yum.pid: another copy is running as pid 3807.

Another app is currently holding the yum lock; waiting for it to exit...

Second, the reasons:

It literally means that "another program locks yum until the yum-updatesd program exits". Yum-updatesd is a service that comes with the system to provide system updates, and the installation file is also called yum-updatesd. This service starts automatically by default (init 5), and it automatically locks yum when it runs, which leads to the inability to manually yum after booting.

3. Solutions:

Enter the following command directly in bash, delete yum.pid and forcibly unlock it.

The code is as follows:

Rm-rf / var/run/yum.pid

At this point, I believe you have a deeper understanding of "how to forcibly unlock CentOS yum". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report