Description
brew doctor
output
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
libassuan@2
Warning: /private/tmp is world-writable but does not have the sticky bit set.
To set it, run the following command:
sudo chmod +t /private/tmp
Verification
- My "
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue. - I ran
brew update
twice and am still able to reproduce my issue. - This issue's title and/or description do not reference a single formula e.g.
brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.
brew config
output
HOMEBREW_VERSION: 4.4.21
ORIGIN: https://github.com/Homebrew/brew
HEAD: 2e57f8f794af60804dcc185d1807c6d6ca10418c
Last commit: 3 days ago
Branch: stable
Core tap JSON: 19 Feb 23:29 UTC
Core cask tap JSON: 19 Feb 23:29 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: code
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 3.3.7 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.7/bin/ruby
CPU: dodeca-core 64-bit arm_lobos
Clang: 16.0.0 build 1600
Git: 2.39.5 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.3.1-arm64
CLT: 16.2.0.0.1.1733547573
Xcode: N/A
Rosetta 2: false
What were you trying to do (and why)?
Hi,
I was trying to upgrade my packages with the brew upgrade
command but keeps failing on the sqllite package.
Then I've tried to manually upgrade a specific package brew upgrade <package_name>
and it kept failing. I very rapidly discover that I was unable to install nor upgrade anything.
What happened (include all command output)?
Each time I try to install or upgrade or reinstall a package I get the error
cp: chflags: /opt/homebrew/Cellar/wget: Operation not permitted
I've already tried:
- to check for permission problems, by running
sudo chown -R lollo:staff $(brew --prefix)/*
where "lollo" is my username. - to do a
brew cleanup
- to reboot the Mac
- to reinstall an already install package
brew reinstall wget
- to empty the /tmp and /private/tmp dirs
- to disable SIP
- to run again the brew setup (I have brew installed for almost a year now, just hoping that it would fix whatever strange permission problem I'm having)
The error is always the same:
==> Downloading https://ghcr.io/v2/homebrew/core/wget/manifests/1.25.0
################################################################################################################################################################################### 100.0%
==> Fetching wget
==> Downloading https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:a93dd95c5d63036e026b526e000d33fae7fb44d9a8fda5afc89bff112438c6b3
################################################################################################################################################################################### 100.0%
==> Reinstalling wget
==> Pouring wget--1.25.0.arm64_sequoia.bottle.tar.gz
cp: chflags: /opt/homebrew/Cellar/wget: Operation not permitted
Error: Failure while executing; `/usr/bin/env cp -pR /private/tmp/homebrew-unpack-20250220-13080-3msve0/wget /opt/homebrew/Cellar` exited with 1. Here's the output:
cp: chflags: /opt/homebrew/Cellar/wget: Operation not permitted
Here you can find the output for the command brew reinstall wget --debug --verbose
Here is the output of command ls -alO /opt/homebrew/Cellar | grep wget
inside the /opt/homebrew/Cellar
directory
drwxr-xr-x 3 lollo staff - 96 Feb 20 00:41 wget
And here is the output of command ls -alO /opt/homebrew/Cellar/wget
total 0
drwxr-xr-x 3 lollo staff - 96 Feb 20 00:47 .
drwxrwxr-x 97 lollo staff - 3104 Feb 19 23:18 ..
drwxr-xr-x 13 lollo staff - 416 Dec 11 17:46 1.25.0
What did you expect to happen?
The packages should upgrade or install without problems
Step-by-step reproduction instructions (by running brew
commands)
brew upgrade
Activity