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`
*** This bug has been marked as a duplicate of bug 2428601 ***