Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install wireshark on Fedora(latest version with gnome3) and I keep getting the error.

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

I keep killing the offending process after finding it's pid using ps aux | grep yum, but the same process spawns again with a different pid.

root      1605  0.0  3.4  54424 26228 ?   SN   10:51   0:02 /usr/bin/python     
/usr/share/PackageKit/helpers/yum/ get-updates none

How can I properly kill this process, or use yum to install wireshark properly?

share|improve this question
What is the process? – PriceChild Jul 22 '11 at 15:24
updated with the result of ps aux | grep yum to show process – user77017 Jul 22 '11 at 15:44
up vote 7 down vote accepted

That is PackageKit attempting to update the yum database so that it can show you a desktop icon when there are updates to apply.

It should only run for short periods - if it is failing to complete then it suggests there is some sort of problem with your yum configuration such that it is hanging trying to update the status of one of the repositories or something.

share|improve this answer
unfortunately that actually makes sense in my case, the internet here is abysmal/filtered – user77017 Jul 22 '11 at 16:40
ok nevermind, I restarted and now I can use yum. I feel like I'm working on Windows. – user77017 Jul 22 '11 at 16:59
@user77017 I feel like I'm working on Windows - Recompile your distribution to use a package manager other than yum. Should give you that Linux feeling. – Jul 25 '11 at 4:40
lol todda, recompiling is annoying and time consuming, I would rather the default package manager work properly with yum – user77017 Jul 26 '11 at 20:29
LOL then switch to windows, Linux don't need you :) – Lambodar Swain Jun 8 at 5:46

If you really don't like PackageKit, you can remove it by running the following command as root:

 yum remove PackageKit

You can also disable PackageKit from checking for updates by running gpk-prefs from the terminal:

 gpk-prefs &disown

In the preferences window, change Check for updates to never.

share|improve this answer

Stop the daemon of packagekit with:

service packagekitd stop

I don't remember if the name is "packagekitd". I also don't remember if in the last versions of fedora PK is a daemon or only a user process.

If you want disable the process check the command "ntsysv" as root in a terminal and the autostart applications in your desktop preferences.

For your problem with the internet connection and the download of packages, check the plugin fastestmirror for yum. The configuration is very simple. Also use the presto plugin.

share|improve this answer
It doesn't work like that, at least on F15, though it might do on earlier versions. On F15 it is dbus activated, so it starts as soon as somebody (the Gnome control centre applet most likely) tries to talk to it over dbus. – TomH Jul 25 '11 at 7:38
You're right . – Rufo El Magufo Jul 25 '11 at 16:23

I found a way to correct this problem.

You can turn off the system auto update, and can resolve it.

In China, I tested it this way and it works well.

share|improve this answer
Hi and Welcome to Super User! Maybe you could explain how to do this to make your answer a little more detailed? Just a thought. – slm Jul 1 '13 at 13:58
To disable packagekit: in terminal run gpk-prefs and select "Check for updates: Never ". – Nav Jan 15 '14 at 4:25

There is a very simple solution to this problem.

The "PackageKit" process will only start if your computer is idle. With this in mind we should just log out of Linux and log back in. We should, then, immediately open a terminal window and run yum before the system can go idle.

That's it!

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .