Skip to content

Inconsistencies with dnf needs-restarting #2562

@grumpey

Description

@grumpey

dnf5 version 5.2.17.0
dnf5 plugin API version 2.0
libdnf5 version 5.2.17.0
libdnf5 plugin API version 2.2

name: needs_restarting
version: 1.0.0
API version: 2.0

Fedora 43

This sometimes works and sometimes does not.
What works:
dnf needs-restarting
dnf needs-restarting --services
sudo -E dnf needs-restarting

What doesn't always work:
sudo dnf needs-restarting
sudo dnf needs-restarting --services
sudo dnf needs-restarting --reboothint

When the command with sudo fail, running without sudo functions correctly.

What doesn't work:
sudo -E dnf needs-restarting --services
It returns [System.Error.ENOTCONN] Failed to flush bus on opening (Transport endpoint is not connected)
Similar to: https://bugzilla.redhat.com/show_bug.cgi?id=2419668

Also filed: https://bugzilla.redhat.com/show_bug.cgi?id=2428601

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: MEDIUMTriagedSomeone on the DNF 5 team has read the issue and determined the next steps to take

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions