this post was submitted on 01 Jul 2023
1 points (100.0% liked)

Linux

48078 readers
828 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Howdy, everybody. I'm posting this here in an attempt to begin to move some information that is currently only stored on Reddit over to Lemmy instead, that way we'll start coming up in Google searches and we can get our information locally. I'll post my source in the comments if anyone's interested.

Problem: When running yay, either to install or update a package, you get an error along the lines of
rm: cannot remove '~/.cache/yay/arbitrary-file': Permission denied.

Solution: Oftentimes, it's because your permissions are wrong. You can either use chmod (helpful article) or you can use your file explorer (for Dolphin you right-click, go to properties, and then permissions) and give the build directory to give the build directory, usually ~/.cache/yay, read and modify permissions for both your user and your group, and make sure to give it to all of the subdirectories and files too. If ~/.cache/yay is not your build directory, it will be specified by the yay config, which is usually ~/.config/yay/config.json. Hope this helps any prospective Linux users, having the information about and available I think is good for the community.

Note: This is probably the cause and solution of a lot of other permission-denied problems for yay, but I can only confirm for myself.

Edit: Improved formatting.

top 1 comments
sorted by: hot top controversial new old
[–] thesanewriter@vlemmy.net 1 points 1 year ago

Here's the source for all those interested: https://www.reddit.com/r/archlinux/comments/aa4tga/yay_syu_permission_denied/. I don't want to draw people back to Reddit, but I think it's important to credit those I got the information from.