Ask Your Question

YUM Lock error while installing MySQL on Fedora 20

asked 2014-03-13 08:12:42 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Hi All,

I have just installed Fedora 20 on my VMWare machine (on MacBook Pro). Now in Fedora I am trying to install MySQL from Terminal with command:

sudo yum localinstall mysql-community-release-fc20-5.6.16-1.noarch.rpm

And I am getting this error:

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

So, my first query is whether I am installing MySQL from correct command or not? second is How to over come with the issue of this YUM Lock?

I have recently started working on Linux so won't know much about the terminal installation and all.

Please, help for the same.

Cheers, Rishu Mehra

edit retag flag offensive close merge delete


Thanks @kdg1955 & @quantenselbstmord for the help. Your suggestions worked and now I have installed MySQL on my machine easily. Thanks a lot again :)

rishumehra gravatar imagerishumehra ( 2014-03-16 12:56:31 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted

answered 2014-03-13 08:49:34 -0600

kdg1955 gravatar image

updated 2014-03-14 06:24:17 -0600

Or your previous yum session wasn't terminated correctly or is still busy or another deamon was busy with yum.

If the error persists check that if the process is stil running:

ps -ef | grep `cat /run/` | grep -v grep

if that command return information about the running process, kills that process

sudo kill `cat /run/`

finally remove /run/

sudo rm -v /run/

or alternatively just reboot your PC.

edit flag offensive delete link more


Just FYI, that first command doesn't need root access, so using sudo is pointless.

sideburns gravatar imagesideburns ( 2014-03-13 15:02:11 -0600 )edit

@sideburms : You're right.. Meanwhile I removed 'sudo'.

kdg1955 gravatar imagekdg1955 ( 2014-03-14 06:26:36 -0600 )edit

answered 2014-03-15 17:53:26 -0600

quantenselbstmord gravatar image

you need kill the process , but if you wish so you can kill all yum process, and later try again :)

edit flag offensive delete link more

answered 2014-08-13 13:00:00 -0600

Kunal gravatar image
One easy way to release yum lock is to edit a file  and remove the numbers(pid)

Here are the step to release it

1: open terminal , and type "vi  /run/"
2: It will show up some numbers ;
3 : delete the number by pressing del-del-del..... until the number is removed
4:press ":wq" to save  and press  enter 
5: Your problem is solved; now trying using yum again

Happy Linux computing
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-03-13 08:12:42 -0600

Seen: 549 times

Last updated: Aug 13 '14