Bug 2419668 - sudo dnf needs-restarting --services fails with [System.Error.ENOMEDIUM] Failed to open bus (No medium found)
Summary: sudo dnf needs-restarting --services fails with [System.Error.ENOMEDIUM] Fai...
Keywords:
Status: CLOSED DUPLICATE of bug 2428601
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: 43
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: rpm-software-management
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-06 11:21 UTC by Barry Scott
Modified: 2026-01-16 11:56 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-01-16 11:56:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Barry Scott 2025-12-06 11:21:41 UTC
The command `dnf needs-restarting  --services` only works when logged in as root or a user, but not via sudo or run0.

Found during a discussion on https://discussion.fedoraproject.org/t/how-can-i-dnf-upgrade-without-necessitating-restart/175779/4

I'm using an fully updated Fedora 43 KDE plasma desktop.
With dnf5-5.2.17.0-2.fc43.x86_64



Reproducible: Always

Steps to Reproduce:
1.Login as user
2.Run `sudo dnf needs-restarting  --services`

Actual Results:
$ sudo dnf needs-restarting  --services
[sudo] password for barry:
Updating and loading repositories:
Repositories loaded.
[System.Error.ENOMEDIUM] Failed to open bus (No medium found)

Expected Results:
Check performed without error

Additional Information:
Commands like `sudo systemctl status httpd`

Comment 1 Pavla Kratochvilova 2026-01-16 11:56:11 UTC

*** This bug has been marked as a duplicate of bug 2428601 ***


Note You need to log in before you can comment on or make changes to this bug.