[LINUX] Another app is currently holding the yum lock; waiting for it to exit ... error

On the EC2 server

sudo yum install package name

While installing the package, I was doing other work, but due to time over, I disconnected (broken pipe) from the EC2 server without completing the installation normally.

Is this ok [y/d/N]: packet_write_wait: Connection to [Public IP] port 22: Broken pipe

After that, log in to the EC2 server again and

sudo yum install package name

Where I ran

Lock file/var/run/yum.pid exists:It is running separately as PID 18488.
Another app is currently holding the yum lock; waiting for it to exit...
Other applications: yum
memory: 143 M RSS (541 MB VSZ)
start: Sun Mar  1 00:55:34 2020 - 1:03:58 seconds passed
Status:PID during sleep: 18488

The comment continued, and the installation did not start. ~~sudo rm -f /var/run/yum.pid After executing, the same installation command was executed again, and the installation was successful. ~~

Postscript) https://pentan.info/server/linux/yum_lock.html With reference to

ps aux | grep yum #Check the number of the corresponding PTD
kill [PID number]

Allows you to eliminate double processing.

Recommended Posts

Another app is currently holding the yum lock; waiting for it to exit ... error
Is it a problem to eliminate the need for analog human resources in the AI era?