Discover my work

On top of TechStack - By Olivier Simard-Casanova, I also publish other things.

In English

In French

All articles

How I fixed an "Error: Permission denied @ apply2files - /usr/local/lib/docker/cli-plugins" error

The error is due to broken permissions

Olivier Simard-Casanova

Olivier Simard-Casanova
Nancy, Lorraine, France
Independent economist, data scientist and writer

04 January 2023
1 min read
Homebrew
🖥️
Homebrew version: 6.6.17
macOS version: Ventura 13.0.1
Error: Permission denied @ apply2files - /usr/local/lib/docker/cli-plugins

This error was related to brew on macOS. I got it while running brew cleanup. I uninstalled the Docker app a few days ago. I don't remember how I installed the Docker app, but it's not impossible that I installed Docker via Homebrew but uninstalled it via the app itself. Hence, the error — even though it's mere speculation.

I searched the error on DuckDuckGo and found two fixes. The first one was to recreate the missing file — as explained here, for instance. I wasn't comfortable using it, as I deleted Docker and don't want to recreate files for an app that doesn't exist anymore on my system.

I found another fix, first on StackOverflow, but it references a discussion on GitHub:

sudo chown -R $(whoami):admin /usr/local/* \
&& sudo chmod -R g+rwx /usr/local/*

Apparently, something related with permissions was broken. This shell command restored them to a working state.

brew doctor ran without error after this!

Do not miss my upcoming publications

Subscribe by email

Already subscribed? Log in.

Related articles

Latest article

How I fixed an "Error: Permission denied @ apply2files - /usr/local/lib/docker/cli-plugins" error

The error is due to broken permissions
04 January 2023 - 1 min read
Homebrew

Latest publications

Article 11 September 2022

#3 · Rocket.Chat is unusable

My experience with Rocket.Chat has been one of the worst experience with open source self-hosted software I've ever had
Rocket.Chat

#3 · Rocket.Chat is unusable
Article 17 August 2022

#2 · Add a README to your GitHub profile

Add more substance to your GitHub profile with just a few steps
GitHub

#2 · Add a README to your GitHub profile

More articles

#2 · Add a README to your GitHub profile

#2 · Add a README to your GitHub profile

Add more substance to your GitHub profile with just a few steps
17 August 2022 - 4 min read
GitHub
#1 · A fix for the "Systemd process manager has not been set up or is corrupted" Ghost error

#1 · A fix for the "Systemd process manager has not been set up or is corrupted" Ghost error

This error can be caused by an issue with permissions
16 August 2022 - 4 min read
Ghost