Hello
@test8725,
The error shown in the screenshot you provided in your last update is unrelated to the error in the original screenshot you shared. You can try to find the PID of the process holding the yum lock by running the following command:
cat /var/run/yum.pid
It is possible that the process is no longer running, but yum has remained locked. In this case you could delete /var/run/yum.pid to remove the lock, however I would suggest you have your system administrator review the issue further as this could indicate other stability and performance issues with your server.
Please let us know if you have any questions.
Best regards