Ask Your Question

packagekit service fails to start

asked 2015-02-10 00:08:40 +0000

argento gravatar image

if I write systemctl status packagekit.service -l to know the status of the packagekit service I get this output:

● packagekit.service - PackageKit Daemon Loaded: loaded (/usr/lib/systemd/system/packagekit.service; static) Active: inactive (dead)

feb 10 00:52:31 localhost.localdomain PackageKit[9413]: daemon start feb 10 00:52:31 localhost.localdomain PackageKit[9413]: daemon quit feb 10 00:52:31 localhost.localdomain packagekitd[9413]: Failed to load the backend: Failed to execute statement 'CREATE TABLE last_action (role TEXT PRIMARY KEY, timespec TEXT);': table last_action already exists

I think this is why my gnome-sofware application is completely empty (there is no application to install).

If I type systemctl start packagekit everything seems to work (no error output) but if I type systemctl status packagekit -l again I get the same output as before (inactive: dead) with a different timestamp

How do I repair the service? I tried sudo yum reinstall PackageKit gnome-packagekit.x86_64 but it didn't work

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2015-02-13 12:18:56 +0000

argento gravatar image

This solution worked for me https://bugzilla.redhat.com/show_bug.cgi?id=1188455#c3

  • sudo rm /var/lib/PackageKit/*.db
  • sudo systemctl restart packagekit.service
  • sudo pkcon repair

I'm not really sure this is the right thing to do. But, it did make gnome-software start working again.

edit flag offensive delete link more



This also worked for me, thank you.

horzle ( 2015-04-01 13:31:35 +0000 )edit

This worked for me, but was hard to find even though it seems to be a fairly common problem (there are a few other questions here about it, not as well-answered). So I'm adding a few more terms to make searching work better. I wasn't aware that PackageKit was the issue when I started--I only knew that the software center wasn't working. I searched for terms like "software center is empty" and "software center shows no applications."

mattmorgan ( 2015-08-20 12:25:14 +0000 )edit

@mattmorgan I had the same issue. Gnome Software didn't work at all and wouldn't load new / installed apps. This fixed it for me. Thanks argento!

dev_feed ( 2016-04-20 19:59:16 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.


Asked: 2015-02-10 00:08:40 +0000

Seen: 3,127 times

Last updated: Feb 13 '15