Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'history undo' does not print superuser privileges error like 'install' does #2026

Open
oturpe opened this issue Jan 28, 2025 · 0 comments
Open

Comments

@oturpe
Copy link

oturpe commented Jan 28, 2025

In I try to run dnf install as normal user, I get:

$ dnf upgrade
The requested operation requires superuser privileges. Please log in as a user with elevated rights, or use the "--assumeno" or "--downloadonly" options to run the command without modifying the system state.

That is fine. The same error is also printed for upgrade and remove subcommands. However, sub-subcommands of history similarly require superuser privileges, but do not have the same error. For instance:

$ dnf history undo 45
Updating and loading repositories:
Repositories loaded.
Package
Removing:
 ...
Removing unused dependencies:
 ...

Transaction Summary:
 Removing:          17 packages

After this operation, 36 MiB will be freed (install 0 B, remove 36 MiB).
Is this ok [y/N]: y
Running transaction
Failed to open lock file "/run/dnf/rpmtransaction.lock": (13) - Permission denied

Please add the warning, so it is more clear what went wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant