0

These are the instructions (https://manjaro.site/how-to-install-yaourt-on-arch-linux/) to install Yaourt:

git clone https://aur.archlinux.org/package-query.git 
cd package-query 
makepkg -si 
cd .. 
git clone https://aur.archlinux.org/yaourt.git 
cd yaourt 
makepkg -si

I successfully run the first two lines, but when running makepkg I get the error:

=> ERROR: You do not have write permission for the directory $BUILDDIR (/home/pietrom/package-query).
    Aborting...

I try with:

sudo makepkg -si

and I get this error:

==> ERROR: Running makepkg as root is not allowed as it can cause permanent, 
catastrophic damage to your system.

I change the file's owner:

sudo chown pietrom ./PKGBUILD
sudo chgrp users ./PKGBUILD

and, again, I get:

makepkg -si
==> ERROR: You do not have write permission for the directory $BUILDDIR (/home/pietrom/package-query).
Aborting...

What am I doing wrong?

I havo to install Yaourt to install Google Chrome.

2
0

Make sure that you are not typing sudo in front, like this:

sudo git clone https://aur.archlinux.org/yaourt.git

Instead, type:

git clone https://aur.archlinux.org/yaourt.git

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.