update-notifier-crash.service fails with apport-kde and no apport-gtk

Bug #1991502 reported by Daniel Tang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-notifier (Ubuntu)
New
Undecided
Unassigned

Bug Description

update-notifier-crash is hardcoded to launch apport-gtk even though the update-notifier package only suggests the apport-gtk package. This results in the service failing and `systemctl --user status` showing "degraded".

$ lsb_release -rd
Description: Ubuntu Kinetic Kudu (development branch)
Release: 22.10

$ apt-cache policy update-notifier
update-notifier:
  Installed: 3.192.59
  Candidate: 3.192.59
  Version table:
 *** 3.192.59 500
        500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu kinetic/main amd64 Packages
        100 /var/lib/dpkg/status

$ dpkg --get-selections | grep ubuntu-desktop
ubuntu-desktop install
ubuntu-desktop-minimal install

This is a minimal Ubuntu install with KDE packages added on top.

$ dpkg --get-selections | grep apport
apport install
apport-kde install
python3-apport install

# Expected behavior

I don't want to see red in `systemd --user status` or any failed services.
Specifically, the update-notifier-crash service should not be enabled on KDE.

# Actual behavior

$ systemctl --user status
● daniel-desktop2
    State: degraded
[...]

$ systemctl --user status update-notifier-crash
× update-notifier-crash.service - Notification regarding a crash report
     Loaded: loaded (/usr/lib/systemd/user/update-notifier-crash.service; static)
     Active: failed (Result: exit-code) since Sun 2022-10-02 22:59:58 EDT; 20min ago
TriggeredBy: ● update-notifier-crash.path
    Process: 3217 ExecStart=/usr/lib/update-notifier/update-notifier-crash (code=exited, status=127)
   Main PID: 3217 (code=exited, status=127)
        CPU: 245ms

Oct 02 22:59:57 daniel-desktop2 systemd[1145]: Starting Notification regarding a crash report...
Oct 02 22:59:58 daniel-desktop2 update-notifier-crash[3225]: kwalletd5
Oct 02 22:59:58 daniel-desktop2 update-notifier-crash[3241]: /usr/lib/update-notifier/update-notifier-crash: 14: /usr/share/apport/apport-gtk: not found
Oct 02 22:59:58 daniel-desktop2 systemd[1145]: update-notifier-crash.service: Main process exited, code=exited, status=127/n/a
Oct 02 22:59:58 daniel-desktop2 systemd[1145]: update-notifier-crash.service: Failed with result 'exit-code'.
Oct 02 22:59:58 daniel-desktop2 systemd[1145]: Failed to start Notification regarding a crash report.

# Analysis

My crash notifications are working fine on KDE even without this as confirmed by `(xclock &); sleep 1; killall -8 xclock`.

Either /usr/lib/update-notifier/update-notifier-crash needs to check for the existence of apport-gtk, or /usr/lib/systemd/user/update-notifier-crash.service needs to be masked on KDE.
---
ProblemType: Bug
ApportVersion: 2.23.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
DistroRelease: Ubuntu 22.10
Package: update-notifier 3.192.59
PackageArchitecture: amd64
Tags: kinetic third-party-packages
Uname: Linux 6.0.0-060000rc7-generic x86_64
UpgradeStatus: Upgraded to kinetic on 2022-09-29 (3 days ago)
UserGroups: dialout docker kvm libvirt libvirtd lpadmin lxd plugdev sudo systemd-journal video wireshark
_MarkForUpload: True

Revision history for this message
Daniel Tang (daniel-z-tg) wrote : Dependencies.txt

apport information

tags: added: apport-collected kinetic third-party-packages
description: updated
Revision history for this message
Daniel Tang (daniel-z-tg) wrote : NonfreeKernelModules.txt

apport information

Revision history for this message
Daniel Tang (daniel-z-tg) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Daniel Tang (daniel-z-tg) wrote : ProcEnviron.txt

apport information

tags: added: foundations-triage-discuss
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.