yay
yay copied to clipboard
PKGBUILDS fail to clone correctly
Affected Version
yay v12.0.4.r6.g64bb346 - libalpm v13.0.2
Describe the bug
The PKGBUILDS for packages are unable to clone properly due to permission errors, even with root permissions.
Reproduction Steps
- Clean your yay cache with
yay -Scc - Try to install a package eg.
yay -S rsyslog - Experience a chain of errors occurring
Expected behavior
The PKGBUILDS should've cloned properly and the package should have been installed.
Output
There's a lot of errors occurring:
AUR Explicit (1): rsyslog-8.2302.0-1
AUR Make Dependency (4): liblogging-1.0.6-3, librelp-1.10.0-1, libestr-0.1.11-1, libfastjson-0.99.9-2
:: (0/5) Downloaded PKGBUILD: rsyslog
:: (0/5) Downloaded PKGBUILD: libestr
:: (0/5) Downloaded PKGBUILD: libfastjson
:: (0/5) Downloaded PKGBUILD: librelp
:: (1/5) Downloaded PKGBUILD: liblogging
-> error fetching rsyslog: fatal: could not create work tree dir 'rsyslog': Permission denied
context: exit status 128
error fetching libestr: fatal: could not create work tree dir 'libestr': Permission denied
context: exit status 128
error fetching libfastjson: fatal: could not create work tree dir 'libfastjson': Permission denied
context: exit status 128
error fetching librelp: fatal: could not create work tree dir 'librelp': Permission denied
context: exit status 128
The configuration is:
{
"aururl": "https://aur.archlinux.org",
"aurrpcurl": "https://aur.archlinux.org/rpc?",
"buildDir": "/var/cache/yay",
"editor": "",
"editorflags": "",
"makepkgbin": "makepkg",
"makepkgconf": "",
"pacmanbin": "pacman",
"pacmanconf": "/etc/pacman.conf",
"redownload": "no",
"rebuild": "no",
"answerclean": "",
"answerdiff": "",
"answeredit": "",
"answerupgrade": "",
"gitbin": "git",
"gpgbin": "gpg",
"gpgflags": "",
"mflags": "",
"sortby": "votes",
"searchby": "name-desc",
"gitflags": "",
"removemake": "ask",
"sudobin": "doas",
"sudoflags": "",
"version": "12.0.4.r6.g64bb346",
"requestsplitn": 150,
"completionrefreshtime": 7,
"maxconcurrentdownloads": 0,
"bottomup": true,
"sudoloop": false,
"timeupdate": false,
"devel": true,
"cleanAfter": false,
"provides": true,
"pgpfetch": true,
"upgrademenu": true,
"cleanmenu": true,
"diffmenu": true,
"editmenu": false,
"combinedupgrade": true,
"useask": false,
"batchinstall": false,
"singlelineresults": false,
"separatesources": true,
"newinstallengine": true,
"debug": false,
"rpc": true,
"doubleconfirm": true
}
Hey @piotr25691, to confirm, are you running yay as root?
(also checking permissions of folders in the cache might help debug)
Hey @piotr25691, to confirm, are you running
yayas root?(also checking permissions of folders in the cache might help debug)
Yes I'm trying to run it as root and the permissions are the defaults