Ask Your Question
3

packagekit service fails to start

asked 2015-02-09 18:08:40 -0500

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
3

answered 2015-02-13 06:18:56 -0500

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

Comments

1

This also worked for me, thank you.

horzle gravatar imagehorzle ( 2015-04-01 08:31:35 -0500 )edit
1

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 gravatar imagemattmorgan ( 2015-08-20 07:25:14 -0500 )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 gravatar imagedev_feed ( 2016-04-20 14:59:16 -0500 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2015-02-09 18:08:40 -0500

Seen: 3,459 times

Last updated: Feb 13 '15