So, I am using UBUNTU in a virtual machine. I tried this command in Xfce Terminal(I installed it) - sudo pacman -S make patch.But it is showing this after entering the correct psw -
https://i.stack.imgur.com/GF0EB.png
Asked
Active
Viewed 38 times
0
lunix
- 1
- 3
1 Answers
0
You need to add yourself to the sudo group.
As root, run usermod -aG sudo jothamrizanth.
Also, pacman is Arch Linux's package manager. On Debian & Ubuntu, you can use apt install make patch to install make and patch.
P Varga
- 298
- 1
- 11
-
https://i.stack.imgur.com/ia4nH.png - Getting an error. – lunix Dec 08 '22 at 13:55
-
Is it because I failed thrice to get access to do that `pacman` thing?? – lunix Dec 08 '22 at 13:56
-
You need to run the `usermod` command as root. (Run `su` to become root) – P Varga Dec 08 '22 at 13:57
-
how do i do it?? I dont know – lunix Dec 08 '22 at 13:58
-
Ok, I tried this, `su usermod -aG sudo jothamrizanth` but it is saying that `-a` was an invalid option – lunix Dec 08 '22 at 14:05
-
Run just `su`. This gives you a root shell. Then run `usermod -aG sudo ...` in that shell. – P Varga Dec 11 '22 at 14:01