NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.41k stars 14.36k forks source link

loading "libpcsclite_real.so.1" failed: Seems to affect sudo and polkit in GNome #309158

Closed Lyndeno closed 6 months ago

Lyndeno commented 7 months ago

Describe the bug

When running pkexec within Gnome:

$ journalctl
May 04 18:55:28 neo .gnome-shell-wr[2649]: Unknown line 'loading "libpcsclite_real.so.1" failed: libpcsclite_real.so.>

Gnome authentication window never opens, meaning I cannot authenticate. Same as if I use polkit for 1Password.

Similar message is printed in console when running sudo

Steps To Reproduce

Steps to reproduce the behavior:

  1. Attempt action that requires polkit authentication

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

Gnome authentication window opens.

No errors when using sudo

Additional context

Add any other context about the problem here.

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.30, NixOS, 24.05 (Uakari), 24.05.20240504.9a22fec`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/a1bhfahqhc6cbj5hc7wq00rikm7vy4d2-source`

Add a :+1: reaction to issues you find important.

MarkRijckenberg commented 7 months ago

This issue with libpcsclite_real.so.1 is also causing the build of eid-mw version 5.1.16 to fail:

https://hydra.nixos.org/build/258123099/nixlog/1/tail

Should hopefully get resolved via following merge request for pcsclite:

https://github.com/NixOS/nixpkgs/pull/308884

yshui commented 7 months ago

This also breaks gpg's smartcard support.

NovaViper commented 7 months ago

@yshui Can confirm this aswell. Tried to update my flake earlier and noticed my Yubikey no longer functioned with gpg with this in the logs when I run gpg --card-status

May 07 22:33:39 yoganova gpg-agent[4913]: scdaemon[4913]: pcsc_establish_context failed: internal error (0x80100001)

Affected version info

❯ nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.8.9, NixOS, 24.05 (Uakari), 24.05.20240507.951e023`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/cx3n6rqiyyf1zjclyz341h09dbb4s5f4-source`
jessesung commented 7 months ago

Got the same error when trying to use systemd-cryptenroll to add a FIDO2 key.

arjan-s commented 6 months ago

Getting the same error when using the pcsc-safenet PKCS#11 provider in OpenVPN:

mei 13 08:18:51 laptop openvpn[4428]: loading "libpcsclite_real.so.1" failed: libpcsclite_real.so.1: cannot open shared object file: No such file or directory

Edit: just saw the merged PR. Will test that and report back here.

Lyndeno commented 6 months ago

Issue fixed in #308884 and thus #309297 for me