Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PackageKit daemon fails at startup because of missing libpk_backend_nix.so #49793

Closed
peti opened this issue Nov 5, 2018 · 2 comments
Closed
Labels
0.kind: bug 6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: nixos

Comments

@peti
Copy link
Member

peti commented Nov 5, 2018

I'm running a current version of nixos-unstable @ 179b814. When systemd tries to start packagekit.service, I get the following error:

Nov 05 17:55:26 peti PackageKit[8708]: daemon start
Nov 05 17:55:26 peti packagekitd[8708]: Failed to load the backend: opening module nix failed : /nix/store/mj9dw9d3j5ky5i0icg2pa665zdk1b1y7-packagekit-1.1.11/lib/packagekit-backend/libpk_backend_nix.so: cannot open shared object file: No such file or directory

Indeed, that shared object does not exist on my system:

# ls -l /nix/store/mj9dw9d3j5ky5i0icg2pa665zdk1b1y7-packagekit-1.1.11/lib/packagekit-backend                     
total 92
-r-xr-xr-x 2 root root  2117 Jan  1  1970 libpk_backend_test_fail.la
-r-xr-xr-x 3 root root 13016 Jan  1  1970 libpk_backend_test_fail.so
-r-xr-xr-x 2 root root  2111 Jan  1  1970 libpk_backend_test_nop.la
-r-xr-xr-x 3 root root  7624 Jan  1  1970 libpk_backend_test_nop.so
-r-xr-xr-x 2 root root  2123 Jan  1  1970 libpk_backend_test_spawn.la
-r-xr-xr-x 3 root root 12472 Jan  1  1970 libpk_backend_test_spawn.so
-r-xr-xr-x 2 root root  2135 Jan  1  1970 libpk_backend_test_succeed.la
-r-xr-xr-x 3 root root 13704 Jan  1  1970 libpk_backend_test_succeed.so
-r-xr-xr-x 2 root root  2129 Jan  1  1970 libpk_backend_test_thread.la
-r-xr-xr-x 3 root root 12664 Jan  1  1970 libpk_backend_test_thread.so

That doesn't seem right?

@peti peti added 0.kind: bug 6.topic: nixos 6.topic: GNOME GNOME desktop environment and its underlying platform labels Nov 5, 2018
@matthewbauer
Copy link
Member

So there once was a PackageKit backend for Nix but it broke with the update to Nix 2.0. I haven't had time to fix it yet.

You should try commenting out this line in the packagekit service:

https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/misc/packagekit.nix#L13

I think it's just pulling that value.

@peti peti closed this as completed in a7afcff Nov 6, 2018
@wizeman
Copy link
Member

wizeman commented Jan 18, 2019

Backporting a7afcff to my 18.09-based machine didn't work. PackageKit still complains about not being able to load the auto backend.

I fixed it by setting the default backend to test_nop instead of nix.

wizeman pushed a commit to wizeman/nixpkgs that referenced this issue Jan 24, 2019
The code in question does not support Nix 2.0 yet.

Closes NixOS#49793.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: nixos
Projects
None yet
Development

No branches or pull requests

3 participants