Bug#847442: gnome-software says 'Failed to obtain authentication.'
On Sat, 23 May 2020 at 21:55:26 -0500, Stephen Paul Weber wrote: > After installing `gnome-software` when I try > to install anything it does not prompt for password and simply says "you do > not > have permission to install software". > > I am not running under a full GNOME environment, but nevertheless policykit > and > packagekit and dbus are running, if that is relevant. You also need to be running a polkit "agent", which is the UI component that prompts for a password. In Debian this is represented by the polkit-1-auth-agent virtual package. In the full GNOME desktop (which is what GNOME Software is primarily designed for), the agent is part of GNOME Shell itself. Other full desktop environments should either have a built-in polkit agent, or depend on one that is a separate process and start it during session startup. If you are building your own desktop environment from individual packages, and you want to be able to authenticate for privileged actions, then you'll need to include a polkit agent. Other desktops' polkit agents include include polkit-kde-agent-1, lxpolkit, lxqt-policykit, mate-polkit, ukui-polkit and policykit-1-gnome. policykit-1-gnome is the GNOME 2 implementation, which is no longer used in GNOME itself, and I suspect it's essentially unmaintained; but it's still used in Cinnamon, XFCE and I think also Unity. It is not straightforward to make packages like gnome-software recommend on a polkit agent, because the right implementation to prefer depends on the desktop environment you are using: I suspect you would not want it to have a Recommends on "gnome-shell | polkit-1-auth-agent", but pulling in a less-maintained implementation like policykit-1-gnome would not be appropriate for GNOME users. smcv
Bug#847442: gnome-software says 'Failed to obtain authentication.'
Package: gnome-software Version: 3.30.6-5 Followup-For: Bug #847442 Dear Maintainer, I believe I have the same issue. After installing `gnome-software` when I try to install anything it does not prompt for password and simply says "you do not have permission to install software". I am not running under a full GNOME environment, but nevertheless policykit and packagekit and dbus are running, if that is relevant. Running gnome-software as root from a terminal works, but using the menu launcher does not, and of course if I run it as root then other features are not quite right (such as the "launch" button on installed applications). -- System Information: Debian Release: 10.3 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.4.0-0.bpo.4-amd64 (SMP w/2 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages gnome-software depends on: ii appstream0.12.5-1 ii apt-config-icons 0.12.5-1 ii dconf-gsettings-backend [gsettings-backend] 0.30.1-2 ii gnome-software-common3.30.6-5 ii gsettings-desktop-schemas3.28.1-1 ii libappstream-glib8 0.7.14-1 ii libatk1.0-0 2.30.0-2 ii libc62.28-10 ii libcairo21.16.0-4 ii libfwupd21.2.5-2 ii libgdk-pixbuf2.0-0 2.38.1+dfsg-1 ii libglib2.0-0 2.58.3-2+deb10u2 ii libgnome-desktop-3-173.30.2.1-2 ii libgspell-1-11.6.1-2 ii libgtk-3-0 3.24.5-1 ii libgtk3-perl 0.034-2 ii libgudev-1.0-0 232-2 ii libjson-glib-1.0-0 1.4.4-2 ii libpackagekit-glib2-18 1.1.12-5 ii libpolkit-gobject-1-00.105-25 ii libsecret-1-00.18.7-1 ii libsoup2.4-1 2.64.2-2 ii packagekit 1.1.12-5 ii software-properties-gtk 0.96.20.2-2 Versions of packages gnome-software recommends: ii fwupd 1.2.5-2 Versions of packages gnome-software suggests: pn apt-config-icons-hidpi pn gnome-software-plugin-flatpak pn gnome-software-plugin-snap -- no debconf information
Bug#847442: gnome-software says 'Failed to obtain authentication.'
Package: gnome-software Version: 3.22.1-1 Severity: important Dear Maintainer, Trying to install any packages leads to the following error: Detailed errors from the package manager follow: Failed to obtain authentication. I have no problem with 'apt install' Cannot use gnome-software. -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.8.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages gnome-software depends on: ii appstream0.10.4-1 ii dconf-gsettings-backend [gsettings-backend] 0.26.0-2 ii gnome-software-common3.22.1-1 ii gsettings-desktop-schemas3.22.0-1 ii libappstream-glib8 0.6.4-2 ii libatk1.0-0 2.22.0-1 ii libc62.24-7 ii libcairo-gobject21.14.6-1.1 ii libcairo21.14.6-1.1 ii libenchant1c2a 1.6.0-11+b1 ii libfwupd10.7.4-2 ii libgdk-pixbuf2.0-0 2.36.0-1 ii libglib2.0-0 2.50.2-2 ii libgnome-desktop-3-123.22.2-1 ii libgtk-3-0 3.22.4-1 ii libgtkspell3-3-0 3.0.9-1 ii libgudev-1.0-0 230-3 ii libjson-glib-1.0-0 1.2.2-1 ii libpackagekit-glib2-18 1.1.4-3 ii libpango-1.0-0 1.40.3-3 ii libpangocairo-1.0-0 1.40.3-3 ii libpolkit-gobject-1-00.105-17 ii libsecret-1-00.18.5-2 ii libsoup2.4-1 2.56.0-1 ii libsqlite3-0 3.15.2-1 ii packagekit 1.1.4-3 ii software-properties-gtk 0.96.20.2-1 gnome-software recommends no packages. Versions of packages gnome-software suggests: pn fwupd pn gnome-software-plugin-flatpak pn gnome-software-plugin-limba -- no debconf information