sudo - What to do when displaying the command has to be run under the root user error
What to do when displaying the 'This command has to be run under the root user' error
THE ERROR:
1[fixer@linuxlk ~]$ dnf update
2Error: This command has to be run under the root user.
THE SOLUTION:
add two exclamation points(!) after the sudo command:
1sudo !!
e.g:
1hankyo@hankyo:~$ dnf update
2The requested operation requires superuser privileges.
3hankyo@hankyo:~$ sudo !!
4sudo dnf update
5[sudo] password for hankyo:
6Updating and loading repositories:
7ETC..