[Bug 1991502] [NEW] update-notifier-crash.service fails with apport-kde and no apport-gtk

Daniel Tang 1991502 at bugs.launchpad.net
Mon Oct 3 03:29:39 UTC 2022


Public bug reported:

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

** Affects: update-notifier (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-collected kinetic third-party-packages

** Tags added: apport-collected kinetic third-party-packages

** Description changed:

  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.
+ 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

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

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

Status in update-notifier package in Ubuntu:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1991502/+subscriptions




More information about the foundations-bugs mailing list