A few months ago I did a fresh installation of Manjaro Budgie on my Lenovo G480. When I was trying to install a package from AUR using yay I got the following error:
error cloning package
With every package I tried to install I received the same error. I updated the mirrorlist with pacman-mirrors and reinstalled yay but the error persisted.
After googling a little and don’t find any solution I thought that the problem was related to Git as some packages are stored on Git repositories.
It turns out that Git is a dependency of yay but it isn’t installed by default. It also happens that installations from AUR are made through a fakeroot environment. So the solution was to install both packages before using yay.
$ sudo pacman -S git fakeroot
I hope it helps you If you get this error while trying to install packages from AUR.
Top comments (0)