How can i fix makepkg saying it can cause damge to system?

[finn@finn-p71207c minecraft-launcher]$ sudo makepkg -si
[sudo] password for finn:
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
[finn@finn-p71207c minecraft-launcher]$

the problem is exactly as the errors say. Use either makepkg -si or pamac build minecraft-launcher to utilize pamac.



makepkg -si
1 Like

No need to use sudo when it is not needed.

Classic XY Problem. Please tell us what problem you were having before you incorrectly tried to use sudo with makepkg.