Unable to install, no password requested

Hello there,

I have been unable to update because of lack of permission, and there is wasn’t any request for a password. Any suggestions or advice?

Operating System: Manjaro Linux
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.14.7-2-MANJARO (64-bit)
Graphics Platform: X11
Processors: 16 × Intel® Core™ i7-10870H CPU @ 2.20GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics

sudo pacman -Syyu

Well, that worked pretty well. But will I be able to resume using the regular installers in the future? I still have six apps that it wants to update.

Using Add/Remove Software.

1 Like

What do you mean by regular installers?

Well, like Add/Remove and Discover.

Yeah maybe. If you get an error in add/remove software pls post a screenshot.

Screen shot would just say authentication failed, but there is also this:

Preparing...
Cloning electrum-git build files...
Checking electrum-git dependencies...
Cloning nordic-kde-git build files...
Checking kvantum-theme-nordic-git dependencies...
Cloning nordic-polar-theme-git build files...
Checking nordic-polar-theme-git dependencies...
Authentication failed

1 Like

Are these packages from AUR? Does it not show a password prompt?

Most are AUR, But there is no password prompt.

Make sure that polkit-kde-authentication-agent-1 is running.

package installed ?

pacman -Qs polkit-kde-agent

if yes, user agent is loaded ? ps command return this 2 apps ?

ps -aux | grep polkit
polkitd      325  0.0  0.4 2716724 24920 ?       Ssl  16:29   0:00 /usr/lib/polkit-1/polkitd --no-debug
patrick      624  0.0  1.6 654472 98796 ?        Sl   16:31   0:01 /usr/lib/polkit-kde-authentication-agent-1

We can test “dialog password” by:

pkexec echo "yes"

This is the results all response

    ~  sudo pacman -Syyu                                                                                    ✔ 
[sudo] password for fuzzy: 
:: Synchronizing package databases...
 core                                     172.1 KiB   139 KiB/s 00:01 [#######################################] 100%
 extra                                   1900.0 KiB  1624 KiB/s 00:01 [#######################################] 100%
 community                                  6.7 MiB  4.33 MiB/s 00:02 [#######################################] 100%
 multilib                                 177.2 KiB   899 KiB/s 00:00 [#######################################] 100%
:: Starting full system upgrade...
warning: mycroft-core: local (21.2.0-2) is newer than community (20.8.0-2)
 there is nothing to do
    ~  pacman -Qs polkit-kde-agent                                                                  ✔  10s  
local/polkit-kde-agent 5.22.5-1 (plasma)
    Daemon providing a polkit authentication UI for KDE
    ~  ps -aux | grep polkit                                                                                ✔ 
polkitd      562  0.0  0.0 2915052 6632 ?        Ssl  06:39   0:01 /usr/lib/polkit-1/polkitd --no-debug
fuzzy      88204  0.0  0.0   6492  2284 pts/3    S+   14:54   0:00 grep polkit
    ~  pkexec echo "yes"                                                                                    ✔ 
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ====
Authentication is needed to run `/usr/bin/echo' as the super user
Authenticating as: Ted (fuzzy)
Password: 
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ====
Error executing command as another user: Not authorized

This incident has been reported.
    ~                                                                                           127 ✘  15s  







I did not find Make sure thatpolkit-kde-authentication-agent-1 is running.

Try re-installing the package with sudo pacman -S polkit-kde-agent and reboot.

Looks like the KDE agent is not running, so it somehow got removed from autostart applications. Reinstalling it should place the files correctly again.

sigh
no changes

Even after a reboot?

Is the polkit agent at least running now?

If not, please post the contents of /etc/xdg/autostart/polkit-kde-authentication-agent-1.desktop file.

Not after roobot either. I did fail to mention that other apps do prompt a login. I’m sorry for not mentioning this earlier.

Name=PolicyKit Authentication Agent
Name[ast]=Axente d'autenticación de PolicyKit
Name[ca]=Agent d'autenticació del PolicyKit
Name[ca@valencia]=Agent d'autenticació de PolicyKit
Name[cs]=Ověřovací agent PolicyKitu
Name[da]=PolicyKit autentificeringsagent
Name[de]=PolicyKit-Authentifizierungs-Agent
Name[el]=Πράκτορας ταυτοποίησης PolicyKit
Name[en_GB]=PolicyKit Authentication Agent
Name[es]=Agente de autenticación de PolicyKit
Name[et]=PolicyKiti autentimisagent
Name[eu]=PolicyKit autentifikazio agentea
Name[fi]=PolicyKit-tunnistautumisagentti
Name[fr]=Agent d'authentification de « PolicyKit »
Name[gl]=Axente de autenticación de PolicyKit
Name[hu]=PolicyKit hitelesítési ügynök
Name[ia]=Agente de Authentication PolicyKit
Name[id]=PolicyKit Authentication Agent
Name[it]=Agente di autenticazione di PolicyKit
Name[ko]=PolicyKit 인증 에이전트
Name[lt]=PolicyKit tapatybės nustatymo agentas
Name[nl]=Authenticatieagent van PolicyKit
Name[nn]=PolicyKit-autentiseringsagent
Name[pa]=ਪਾਲਸੀਕਿਟ ਪਰਮਾਣਕਿਤਾ ਏਜੰਟ
Name[pl]=Usługa uwierzytelnienia PolicyKit
Name[pt]=Agente de Autenticação do PolicyKit
Name[pt_BR]=Agente de Autenticação do PolicyKit
Name[ro]=Agent de autentificare PolicyKit
Name[ru]=Агент аутентификации PolicyKit
Name[sk]=Agent overenia totožnosti PolicyKit
Name[sl]=Overitveni posrednik PolicyKit
Name[sr]=Полисикитов агент за аутентификовање
Name[sr@ijekavian]=Полисикитов агент за аутентификовање
Name[sr@ijekavianlatin]=PolicyKitov agent za autentifikovanje
Name[sr@latin]=PolicyKitov agent za autentifikovanje
Name[sv]=Policykit behörighetsmodul
Name[tg]=Омили санҷиши ҳаққонияти PolicyKit
Name[tr]=PolicyKit Kimlik Doğrulama Aracı
Name[uk]=Агент розпізнавання PolicyKit
Name[x-test]=xxPolicyKit Authentication Agentxx
Name[zh_CN]=PolicyKit 身份验证代理程序
Name[zh_TW]=PolicyKit 認證代理程式
Comment=PolicyKit Authentication Agent
Comment[ast]=L'axente d'autenticación de PolicyKit
Comment[ca]=Agent d'autenticació del PolicyKit
Comment[ca@valencia]=Agent d'autenticació de PolicyKit
Comment[cs]=Ověřovací agent PolicyKitu
Comment[da]=PolicyKit autentificeringsagent
Comment[de]=PolicyKit-Authentifizierungs-Agent
Comment[el]=Πράκτορας ταυτοποίησης PolicyKit
Comment[en_GB]=PolicyKit Authentication Agent
Comment[es]=Agente de autenticación de PolicyKit
Comment[et]=PolicyKiti autentimisagent
Comment[eu]=PolicyKit autentifikazio agentea
Comment[fi]=PolicyKit-tunnistautumisagentti
Comment[fr]=Agent d'authentification de « PolicyKit »
Comment[gl]=Axente de autenticación de PolicyKit
Comment[hu]=PolicyKit hitelesítési ügynök
Comment[ia]=PolicyKit Authentication Agent
Comment[id]=Agen Kewenangan PolicyKit
Comment[it]=Agente di autenticazione di PolicyKit
Comment[ko]=PolicyKit 인증 에이전트
Comment[lt]=PolicyKit tapatybės nustatymo agentas
Comment[nl]=Authenticatieagent van PolicyKit
Comment[nn]=PolicyKit-autentiseringsagent
Comment[pa]=ਪਾਲਸੀਕਿਟ ਪਰਮਾਣਕਿਤਾ ਏਜੰਟ
Comment[pl]=Usługa uwierzytelnienia PolicyKit
Comment[pt]=Agente de Autenticação do PolicyKit
Comment[pt_BR]=Agente de Autenticação do PolicyKit
Comment[ro]=Agent de autentificare PolicyKit
Comment[ru]=Агент аутентификации PolicyKit
Comment[sk]=Agent overenia totožnosti PolicyKit
Comment[sl]=Overitveni posrednik PolicyKit
Comment[sr]=Полисикитов агент за аутентификовање
Comment[sr@ijekavian]=Полисикитов агент за аутентификовање
Comment[sr@ijekavianlatin]=PolicyKitov agent za autentifikovanje
Comment[sr@latin]=PolicyKitov agent za autentifikovanje
Comment[sv]=Policykit behörighetsmodul
Comment[tg]=Омили санҷиши ҳаққонияти PolicyKit
Comment[tr]=PolicyKit Kimlik Doğrulama Aracı
Comment[uk]=Агент розпізнавання PolicyKit
Comment[x-test]=xxPolicyKit Authentication Agentxx
Comment[zh_CN]=PolicyKit 身份验证代理程序
Comment[zh_TW]=PolicyKit 認證代理程式
Exec=/usr/lib/polkit-kde-authentication-agent-1
Icon=dialog-password
Terminal=false
Type=Application
OnlyShowIn=KDE;
X-KDE-StartupNotify=false
X-KDE-autostart-phase=0
NoDisplay=true
X-DBUS-StartupType=Unique
X-systemd-skip=true
cat: file: No such file or directory

Please run the above command again, to see if the agent is actually being run.
If it’s not, you should try starting it manually to see if it gets any errors.

Not sure if this means it’s not running:

    ~  ps -aux | grep polkit                                                                              1 ✘ 
polkitd      566  0.0  0.0 2980444 10584 ?       Ssl  15:13   0:00 /usr/lib/polkit-1/polkitd --no-debug
fuzzy      30281  0.0  0.0   6492  2384 pts/3    S+   15:36   0:00 grep polkit

Yeah, that means it’s not running.

Please try running /usr/lib/polkit-kde-authentication-agent-1 manually. (may need sudo to work)

This is what I get:

    ~  sudo /usr/lib/polkit-kde-authentication-agent-1                                                      ✔ 
[sudo] password for fuzzy: 
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
kf.dbusaddons: DBus session bus not found. To circumvent this problem try the following command (with bash):
    export $(dbus-launch)

This is vaguely familiar to me. If I recall correctly, I had to delete a folder and it’s contents to get it to work.