You are not logged in.
Pages: 1
Topic closed
Hello everyone I am new to arch Linux and Linux in general.
I wanted to install yay but I got an error message that I was logged in as root and that that could cause damage to my system how do I solve this.
[shadow@archlinux yay-git]$ sudo makepkg -si
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
Last edited by shadowfok (2021-11-27 23:02:45)
Offline
sudo is root...
Offline
but if I use it without sudo it says this.
[shadow@archlinux yay-git]$ makepkg -si
==> ERROR: You do not have write permission for the directory $BUILDDIR (/home/shadow/yay-git).
Aborting...
Offline
You created the directory yay-git using sudo as well?
Offline
Probably because you have run it as root in the past and there is a directory or file in that path you don't have permission to read. What is the output of ls -l /home/shadow/yay-git ?
As an aside, is there any way I can mentor you and convince you not to install an AUR helper just yet? Learn to use the tools and do it the right way rather than use yay? It is kind of like trying to use a chainsaw as a crutch.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
but if I use it without sudo it says this.
[shadow@archlinux yay-git]$ makepkg -si
==> ERROR: You do not have write permission for the directory $BUILDDIR (/home/shadow/yay-git).
Aborting...
Most likely because you've also used sudo in the past when you shouldn't have.
Offline
Oh i did not know I could use AUR without a helper.
If you could help me to use AUR without a helper i would really appreciate it!
Offline
Have you tried reading the wiki?
https://wiki.archlinux.org/title/Arch_User_Repository
Offline
Have you read Arch_User_Repository#Getting_started?
Edit:
You probably also want to remove or change the ownership of anything in your users home directory not owned by that user
find ~ \! -uid `id -u` -o \! -gid `id -g`
Last edited by loqs (2021-11-27 22:41:06)
Offline
Thank you!!!
I looked at the AUR wiki and it worked.
Offline
Probably because you have run it as root in the past and there is a directory or file in that path you don't have permission to read. What is the output of ls -l /home/shadow/yay-git ?
As an aside, is there any way I can mentor you and convince you not to install an AUR helper just yet? Learn to use the tools and do it the right way rather than use yay? It is kind of like trying to use a chainsaw as a crutch.
Can you tell me why not to use the aur assistant ? I don't understand these
Offline
Please don't necro-jack threads. Your question has nothing to do w/ the subject of this old and solved thread.
is there any way I can mentor you and convince you not to install an AUR helper just yet?
See the warning at https://wiki.archlinux.org/title/AUR_helpers - at some point you'll run into trouble because the helper screws up (the more they abstract, the more likely) and you're supposed to be able to deal with that.
AUR helpers are ok for convenience, not as an excuse to not understand the nature and process of the AUR.
And it gets really bad when they blend the vetted repo packages and random junk on the AUR and actively discourage you from paying attention to what you're installaing there.
Online
Closing this old solved thread.
https://wiki.archlinux.org/title/Genera … bumping%22
https://wiki.archlinux.org/title/Genera … _hijacking
Offline
Pages: 1
Topic closed