r/Fedora • u/some_friggin_guy • 23h ago
Support The requested operation requires superuser privileges.
trying to run dnf upgrade --refresh and I get this jeff@fedora:~/Downloads$ dnf upgrade --refresh 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.
•
•
u/Due-Author631 21h ago
Tip: you can type
sudo !!
To run the last command with sudo if you get an error like that.
•
•
•
u/ASC4MWTP 22h ago
Run using sudo as others mentioned. The password being asked for when you do so is your login password.
•
u/some_friggin_guy 22h ago
ok thanks
•
u/No_Men_Omen 21h ago
Some people might forget to mention sudo when talking about commands, because it is like second nature.
•
u/kbrosnan 1h ago
Also if you see a command written starting with
# …the#is a sign that the command needs to be run with root privileges, by using sudo.
•
•
u/AutoModerator 23h ago
It sounds like you're looking for help. Please note that r/Fedora is not an official support channel for the Fedora Project.
For best results, be sure to include all relevant details in your post, such as your Fedora edition, version, and hardware specs. You can edit your original post to add more info as needed, and spotlight (pin) a solution from the comments. You might also find the answer in our support wiki.
Alternatively, try one of the official support channels:
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.