KDE Discover 您無權執行此操作 (Kubuntu 20.04)

KDE Discover 您無權執行此操作 (Kubuntu 20.04)

從昨天開始,每次我嘗試在 Kubuntu 20.04 上從 KDE Discover 下載某些內容時,都會收到以下錯誤。

您無權執行此操作

下載軟體的唯一方法是從終端下載,沒有任何問題。

答案1

你失蹤了polkit-kde-agent-1。這是我得到的包裹資訊sudo apt show polkit-kde-agent-1

Package: polkit-kde-agent-1
Version: 4:5.18.4.1-0ubuntu1
Priority: optional
Section: universe/kde
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian/Kubuntu Qt/KDE Maintainers <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 430 kB
Provides: polkit-1-auth-agent
Depends: policykit-1, libc6 (>= 2.4), libkf5coreaddons5 (>= 4.100.0), libkf5crash5 (>= 4.96.0), libkf5dbusaddons5 (>= 4.97.0), libkf5i18n5 (>= 4.97.0), libkf5iconthemes5 (>= 4.96.0), libkf5widgetsaddons5 (>= 5.36.0+git20170804), libkf5windowsystem5 (>= 5.62.0), libpolkit-qt5-1-1 (>= 0.112.0), libqt5core5a (>= 5.12.2), libqt5dbus5 (>= 5.9.0~), libqt5gui5 (>= 5.9.0~) | libqt5gui5-gles (>= 5.9.0~), libqt5widgets5 (>= 5.9.0~), libstdc++6 (>= 4.1.1)
Breaks: polkit-kde-1 (<< 5.1.95~)
Replaces: polkit-kde-1 (<< 5.1.95~)
Homepage: https://projects.kde.org/projects/kde/workspace/polkit-kde-agent-1
Task: kubuntu-desktop, lubuntu-desktop
Download-Size: 54,7 kB
APT-Manual-Installed: no
APT-Sources: http://de.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
Description: KDE dialogs for PolicyKit
 PolicyKit is an application-level toolkit for defining and handling the policy
 that allows unprivileged processes to speak to privileged processes.
 .
 It is a framework for centralizing the decision making process with respect to
 granting access to privileged operations (like calling the HAL Mount() method)
 for unprivileged (desktop) applications.
 .
 PolicyKit-Kde provides a D-Bus session bus service that is used to
 bring up authentication dialogs used for obtaining privileges.

您還應該看看Debian 資訊頁面了解更多資訊以及上述資訊的更好表示。

如果您有足夠的信心安裝它,請使用

sudo apt-get update    
sudo apt-get install polkit-kde-agent-1

確保事後檢查所有依賴項!

如果您沒有足夠的信心這樣做,您也可以更改Discover使用 sudo 開啟的捷徑。但請注意,在安裝或更新之前,它不會提示您輸入密碼確認Discover。它將Discover以 root 身份打開,但不建議這樣做。

這樣做很容易

  1. 右鍵單擊開始功能表中的“發現”條目,然後查看編輯應用程式的選項。
  2. 然後轉到程序水龍頭
  3. 並編輯命令以使用 sudo

你可以複製這個

sudo plasma-discover %F

答案2

如果你有chrome 遠端桌面安裝後,這可能是衝突的結果。嘗試:

killall chrome-remote-desktop-host
sudo apt remove chrome-remote-desktop

答案源自KDE 論壇

答案3

也只是給任何看到此問題並遇到相同問題的人一個提示...確保您正在使用發現從選單而不是由另一個程式啟動的實例。它不會起作用。

相關內容