[Bug 2105378] Re: Apport requests admin password multiple times

Simon Chopin 2105378 at bugs.launchpad.net
Mon Mar 31 13:43:36 UTC 2025


I count 3 requests on current plucky, two of them coming from the
plymouth hook, one of them from the general ubuntu hook (which is also
run for apport).

We could reduce the immediate issue in plymouth by moving both of its
requests into a single 'execute_multiple_root_commands', but you'd still
have two prompts. In truth I think we should move to some sort of
continuation-based API to gather all the root-requiring calls from all
the hooks, execute them all in one batch, and run callbacks afterwards.

[snip]
  /usr/share/apport/general-hooks/ubuntu.py(81)add_info()
-> apport.hookutils.attach_casper_md5check(
  /usr/lib/python3/dist-packages/apport/hookutils.py(1140)attach_casper_md5check()
-> attach_root_command_outputs(report, {"CasperMD5json": f"cat '{location}'"})
  /usr/lib/python3/dist-packages/apport/hookutils.py(591)attach_root_command_outputs()
-> for k, v in execute_multiple_root_commands(command_map).items():
> /usr/lib/python3/dist-packages/apport/hookutils.py(531)execute_multiple_root_commands()
-> breakpoint()

[snip]
  /usr/share/apport/package-hooks/source_plymouth.py(27)add_info()
-> attach_hardware(report)
  /usr/lib/python3/dist-packages/apport/hookutils.py(249)attach_hardware()
-> attach_dmesg(report)
  /usr/lib/python3/dist-packages/apport/hookutils.py(201)attach_dmesg()
-> report["CurrentDmesg"] = root_command_output(["dmesg"])

[snip]
  /usr/share/apport/package-hooks/source_plymouth.py(27)add_info()
-> attach_hardware(report)
  /usr/lib/python3/dist-packages/apport/hookutils.py(263)attach_hardware()
-> report["acpidump"] = root_command_output(["/usr/share/apport/dump_acpi_tables.py"])
> /usr/lib/python3/dist-packages/apport/hookutils.py(500)root_command_output()
-> breakpoint()

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

Title:
  Apport requests admin password multiple times

Status in apport package in Ubuntu:
  New

Bug description:
  I was using apport-bug and apport-collect, and each one opened a password screen requesting my password four times.
  There was one just for dmesg, and other just for acpi tables that apport does the dump.
  Maybe we can find a way to be just once but preserve the access to all times the command needs permission.
  --- 
  ProblemType: Bug
  ApportVersion: 2.32.0-0ubuntu3
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  DistroRelease: Ubuntu 25.04
  InstallationDate: Installed on 2021-11-26 (1219 days ago)
  InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
  NonfreeKernelModules: nvidia_modeset nvidia
  Package: apport 2.32.0-0ubuntu3
  PackageArchitecture: all
  ProcVersionSignature: Ubuntu 6.14.0-13.13-generic 6.14.0
  Tags: plucky
  Uname: Linux 6.14.0-13-generic x86_64
  UpgradeStatus: Upgraded to plucky on 2025-03-07 (22 days ago)
  UserGroups: adm cdrom dialout dip docker i2c kvm libvirt lpadmin lxd plugdev sambashare sbuild sudo vboxusers video whoopsie
  _MarkForUpload: True

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/2105378/+subscriptions




More information about the foundations-bugs mailing list