[Bug 2049229] Re: dbus exception apt permission denied from gnome-language-selector

John Johansen 2049229 at bugs.launchpad.net
Fri Jan 12 22:21:46 UTC 2024


So there is not enough information to determine whether apparmor was
involved, as it is only one source of permissions being denied. Seccomp,
namespacing, etc can all result in permissions being denied.

grepping the kernel logs for DENIED would be the best way to check if
there is an associated apparmor denial.

In place re-installs should not be needed unless something is corrupted.
Its possible on upgrades that the dbus service needs to be restarted,
but that doesn't seem to have been tried here, at least not separate
from the reinstall, which will also end up restarting the service.

AppArmor related reasons that a restart of the service might be
necessary, is that policy was added/changed in such a way that it
conflicts with the current service. AppArmor will not change make label
changes on a currently running service and that would require a restart.

namespacing issues also could require a service to be restarted.

Re-installs should only ever be needed for some config/on disk
corruption, or if the service was stuck on an older version (couldn't
update for some reason), and the re-install magically works. It could be
that aptitudes version of reinstall is better than apts, but generally
re-installing the service only works, if dependency issues are resolved
first so that you can then actually update/install the new version of
the package.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to language-selector in Ubuntu.
https://bugs.launchpad.net/bugs/2049229

Title:
  dbus exception apt permission denied from gnome-language-selector

Status in language-selector package in Ubuntu:
  Incomplete

Bug description:
  Hi, I am reposting report https://github.com/UbuntuAsahi/ubuntu-
  asahi/issues/84

  Running `sudo gnome-language-selector` leads to:
  ```
  dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.debian.apt: Permission denied
  ```

  This was resolved by reinstalling dbus.

  Feels like there was a user namespace issue which was resolved. Are
  in-place dbus re-installs needed? Is apparmor involved?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/language-selector/+bug/2049229/+subscriptions




More information about the foundations-bugs mailing list