It appears your Home directory permissions are incorrect. yay
isn’t able to write to it’s cache directory: ~/.cache/yay/
.
No wonder if you’re running commands with sudo
that you should not be.
See:
https://serverfault.com/questions/35076/need-to-fix-file-permissions-in-a-users-home-directory
Tip: When pasting terminal output on Discourse forums, one can either…
-
Highlight it and use the Preformatted text </> toolbar button.
-
Add three backticks ` above and below the text (Markdown):
```
text
``` -
Use HTML:
<pre><code>
text
</pre></code>
Please edit your post accordingly. The Trizen output is done properly, the Yay output is not.