You are not logged in.
Pages: 1
I was having an issue with Polkit and the KDE authentication agent would flash on screen for half a second and then automatically fail. I think this was likely due to a bad rule surrounding libfprint. I was being lazy though and didnt feel like figuring out what was going wrong. I deleted /usr/share/polkit-1 and /etc/polkit-1 and then reinstalled polkit and the kde authentication agent, assuming it would recreate the missing files in a fresh install. This doesnt seem to have happened as both Plasma and Hyprland crash on startup. I can still drop into a terminal though. Before I do more dumb things I figured it might be good to ask if there is an obvious solution Im missing.
Last edited by GhostieGirl (2024-08-07 23:00:34)
Offline
pacman -Qkk | grep polkitOffline
Redirecting grep to a file yeilds the following. But theres also a whole lot of warnings about how various polkit files are missing or dont exist.
polkit: 218 total files, 0 altered files
polkit-kde-agent: 211 total files, 0 altered files
polkit-qt5: 59 total files, 0 altered files
polkit-qt6: 59 total flles, 0 altered files Last edited by GhostieGirl (2024-08-07 21:51:14)
Offline
Is that the entire output and why did you scratch it?
The point was to figure whether you've any files missing in the /etc/polkit path, you might have to "sudo pacman -Qkk |& grep polkit" (sudo b/c of test permissions and |& to capture stderr, works in bash and zsh)
If you're not lacking any polkit rules & actions, please post your complete system journal for the boot after failing to start KDE or hyprland:
sudo journalctl -b | curl -F 'file=@-' 0x0.stOffline
Seth,
Running `'pacman -Qkk | grep polkit'` didn't give useful looking results, and a bunch of unrelated, expected stuff from stderr that didn't get grepped on my (unbroken as the op's) system.
The following variation wasn't much better.
pacman -Qkk |& grep 'polkit'
polkit: 218 total files, 0 altered files
polkit-gnome: 158 total files, 0 altered files
polkit-qt6: 59 total files, 0 altered filesHowever, this (mess) gives a list of packages needing either reinstalled, or use paccat to get copies to replace the missing dirs/files?
pacman -Qlq | grep 'polkit-1' | grep -E 'policy|rules' | xargs -n1 pacman -Qoq | sort -uEDIT:
lot of warnings about how various polkit files are missing or dont exist
Well never mind this. That's what Seth was likely looking for.
Last edited by NuSkool (2024-08-07 22:08:48)
Scripts I Use : https://github.com/Cody-Learner
grep -m1 'model name' /proc/cpuinfo : AMD Ryzen 7 8745HS w/ Radeon 780M Graphics
grep -m1 'model name' /proc/cpuinfo : Intel(R) N95
grep -m1 'model name' /proc/cpuinfo : AMD Ryzen 5 PRO 2400GE w/ Radeon Vega Graphics
Offline
However, this (mess) gives a list of packages needing either reinstalled
No, why?
This lists all files under pacman control and filters them for polkit-1 and policy|rules - that doesn't mean any of them is currently missing or broken.
That what -Qkk would provide.
If your system isn't broken and you didn't delete any files you would not expect anything from the -Qkk run.
Offline
Yea sorry.... jumped in too quick on this before thinking it through.
My thinking was if she had deleted the directory /usr/share/polkit-1/, that contains all the stuff the packages place in there....
And you're right pacman -Qkk would show them as missing on her broken system. Not on my healthy system.
Last edited by NuSkool (2024-08-07 22:07:10)
Scripts I Use : https://github.com/Cody-Learner
grep -m1 'model name' /proc/cpuinfo : AMD Ryzen 7 8745HS w/ Radeon 780M Graphics
grep -m1 'model name' /proc/cpuinfo : Intel(R) N95
grep -m1 'model name' /proc/cpuinfo : AMD Ryzen 5 PRO 2400GE w/ Radeon Vega Graphics
Offline
I scratched the first one before replacing it because that was the output to the wrong command. And using &grep gives the warnings I was seeing.
warning: accountsservice: /usr/share/polkit-1/actions/org.freedesktop.accounts.policy (No such file or directory)
warning: bolt: /usr/share/polkit-1/actions/org.freedesktop.bolt.policy (No such file or directory)
warning: bolt: /usr/share/polkit-1/rules.d/org.freedesktop.bolt.rules (No such file or directory)
warning: brltty: /usr/share/polkit-1/actions/org.a11y.brlapi.policy (No such file or directory)
warning: brltty: /usr/share/polkit-1/rules.d/org.a11y.brlapi.rules (No such file or directory)
clwarning: connman: /usr/share/polkit-1/actions/net.connman.policy (No such file or directory)
warning: connman: /usr/share/polkit-1/actions/net.connman.vpn.policy (No such file or directory)
warning: cpu-x: /usr/share/polkit-1/actions/io.github.thetumultuousunicornofdarkness.cpu-x-daemon.policy (No such file or directory)
warning: fingerprint-gui: /usr/share/polkit-1/actions/cc.ullrich-online.fingerprint-gui.policy (No such file or directory)
warning: gamemode: /usr/share/polkit-1/actions/com.feralinteractive.GameMode.policy (No such file or directory)
warning: gamemode: /usr/share/polkit-1/rules.d/gamemode.rules (No such file or directory)
warning: geoclue: /usr/share/polkit-1/rules.d/org.freedesktop.GeoClue2.rules (No such file or directory)
kpeople: 255 total files, 0 altered fiwarning: ktexteditor: /usr/share/polkit-1/actions/org.kde.ktexteditor6.katetextbuffer.policy (No such file or directory)
warning: meson: /usr/share/polkit-1/actions/com.mesonbuild.install.policy (No such file or directory)
warning: modemmanager: /usr/share/polkit-1/actions/org.freedesktop.ModemManager1.policy (No such file or directory)
warning: pcsclite: /usr/share/polkit-1/actions/org.debian.pcsc-lite.policy (No such file or directory)
polkit: 218 total files, 0 altered files
polkit-kde-agent: 211 total files, 0 altered files
polkit-qt5: 59 total files, 0 altered files
polkit-qt6: 59 total files, 0 altered files
qemu-ui-gtk: 15 towarning: rtkit: /usr/share/polkit-1/actions/org.freedesktop.RealtimeKit1.policy (No such file or directory)
warning: spice-gtk: /usr/share/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy (No such file or directory)
warning: systemd: /usr/share/polkit-1/actions/io.systemd.credentials.policy (No such file or directory)
warning: systemd: /usr/share/polkit-1/actions/io.systemd.mount-file-system.policy (No such file or directory)
warning: systemd: /usr/share/polkit-1/actions/org.freedesktop.home1.policy (No such file or directory)
warning: systemd: /usr/share/polkit-1/actions/org.freedesktop.hostname1.policy (No such file or directory)
warning: systemd: /usr/share/polkit-1/actions/org.freedesktop.import1.policy (No such file or directory)
warning: systemd: /usr/share/polkit-1/actions/org.freedesktop.locale1.policy (No such file or directory)
warning: systemd: /usr/share/polkit-1/actions/org.freedesktop.login1.policy (No such file or directory)
warning: systemd: /usr/share/polkit-1/actions/org.freedesktop.machine1.policy (No such file or directory)
warning: systemd: /usr/share/polkit-1/actions/org.freedesktop.network1.policy (No such file or directory)
warning: systemd: /usr/share/polkit-1/actions/org.freedesktop.portable1.policy (No such file or directory)
warning: systemd: /usr/share/polkit-1/actions/org.freedesktop.resolve1.policy (No such file or directory)
warning: systemd: /usr/share/polkit-1/actions/org.freedesktop.systemd1.policy (No such file or directory)
warning: systemd: /usr/share/polkit-1/actions/org.freedesktop.timedate1.policy (No such file or directory)
warning: systemd: /usr/share/polkit-1/actions/org.freedesktop.timesync1.policy (No such file or directory)
warning: systemd: /usr/share/polkit-1/rules.d/systemd-networkd.rules (No such file or directory)
tree-sitter-python: 19 total files, 0 altered fwarning: udisks2: /usr/share/polkit-1/actions/org.freedesktop.UDisks2.policy (No such file or directory)Offline
Well, there's your disaster list, systemd is lethal, but you want to re-install all those packages.
Beware the copypaste issues: connman, ktexteditor, rtkit and udisks2 got mangled.
Re-check the command afterwards to make sure you didn't forget anything.
Offline
Edit: It does at least 2.8 did, I prolly messed up either the creation of the list or use of it previously. Anyways, Thanks so much for your help, super appreciate it.
Should this (minus the --needed part) not have fixed that though?
Last edited by GhostieGirl (2024-08-07 23:09:45)
Offline
Pages: 1