Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install or upgrade any packages #18752

Open
3 tasks done
pstinghua opened this issue Nov 12, 2024 · 6 comments
Open
3 tasks done

Can't install or upgrade any packages #18752

pstinghua opened this issue Nov 12, 2024 · 6 comments
Labels
bug Reproducible Homebrew/brew bug

Comments

@pstinghua
Copy link

pstinghua commented Nov 12, 2024

brew doctor output

Your system is ready to brew.

Verification

  • My "brew doctor output" above says Your 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.5
ORIGIN: https://github.com/Homebrew/brew
HEAD: 254bf3fe9d8fa2e1b2fb55dbcf535b2d870180c4
Last commit: 14 hours ago
Core tap JSON: 11 Nov 23:58 UTC
Core cask tap JSON: 11 Nov 23:58 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: vim
HOMEBREW_MAKE_JOBS: 16
Homebrew Ruby: 3.3.6 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: 16-core 64-bit kabylake
Clang: 16.0.0 build 1600
Git: 2.47.0 => /usr/local/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.1-x86_64
CLT: 16.1.0.0.1.1729049160
Xcode: 16.1

What were you trying to do (and why)?

brew upgrade

What happened (include all command output)?

==> Upgrading 7 outdated packages:
vim 9.1.0800 -> 9.1.0850
wget 1.24.5 -> 1.25.0
python-packaging 24.1_1 -> 24.2
c-ares 1.34.2 -> 1.34.3
kind 0.24.0 -> 0.25.0
jadx 1.5.0 -> 1.5.1
fzf 0.56.0 -> 0.56.2
==> Downloading https://ghcr.io/v2/homebrew/core/vim/manifests/9.1.0850
Already downloaded: /Users/xieyuanliang/Library/Caches/Homebrew/downloads/123510ef2e8d97392d2e81fc17c69f0933e12fb24e496b14e50d583c8657a7a3--vim-9.1.0850.bottle_manifest.json
==> Fetching vim
==> Downloading https://ghcr.io/v2/homebrew/core/vim/blobs/sha256:d5ba1f754cfbfbf7a06135be2dfab52b
Already downloaded: /Users/xieyuanliang/Library/Caches/Homebrew/downloads/16f3a3de77041f0b55e37a5b57c9fbc57d44ebf8ba0aac7b9e56d7fdc1a86866--vim--9.1.0850.sonoma.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/wget/manifests/1.25.0
Already downloaded: /Users/xieyuanliang/Library/Caches/Homebrew/downloads/3de072a2f67f68eba0252eb2bdd190bb864b5c35c81ea66bdee039f69d28cc4a--wget-1.25.0.bottle_manifest.json
==> Fetching wget
==> Downloading https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:5650778a8e7a60c2dea9412dd21d2f5
Already downloaded: /Users/xieyuanliang/Library/Caches/Homebrew/downloads/9dafa674df1aded023f4bc92e9a65040a6cac509ebd6272e697b3aaafdc43de1--wget--1.25.0.sonoma.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/python-packaging/manifests/24.2
Already downloaded: /Users/xieyuanliang/Library/Caches/Homebrew/downloads/a654ed84d67e434e714ac548959721dfcfc2297e1cb87be9237baee7632a2b76--python-packaging-24.2.bottle_manifest.json
==> Fetching python-packaging
==> Downloading https://ghcr.io/v2/homebrew/core/python-packaging/blobs/sha256:81d0db4704a8a4d5332
Already downloaded: /Users/xieyuanliang/Library/Caches/Homebrew/downloads/2ce5bd24826be4f109b675fb9602e4c0e5424b4962c8f45612434da96167dade--python-packaging--24.2.all.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/c-ares/manifests/1.34.3
Already downloaded: /Users/xieyuanliang/Library/Caches/Homebrew/downloads/a7247aee29b6c331ce6ec6227ce4c11ab5aa34f2073cbcaa5977bdafe8c996b4--c-ares-1.34.3.bottle_manifest.json
==> Fetching c-ares
==> Downloading https://ghcr.io/v2/homebrew/core/c-ares/blobs/sha256:1e05842f0ed0d461ad12df47938ff
Already downloaded: /Users/xieyuanliang/Library/Caches/Homebrew/downloads/241f114b8b6c19e8d5f9637b165b61657a1c5edec2603ac1e2e5f0a9b989b233--c-ares--1.34.3.sonoma.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/kind/manifests/0.25.0
Already downloaded: /Users/xieyuanliang/Library/Caches/Homebrew/downloads/48d7239b0f9403ea32dbfc7301a6dad06a83dac5146b873db7801addf79617f2--kind-0.25.0.bottle_manifest.json
==> Fetching kind
==> Downloading https://ghcr.io/v2/homebrew/core/kind/blobs/sha256:072b9207013e8a64230fae40fdc55d3
Already downloaded: /Users/xieyuanliang/Library/Caches/Homebrew/downloads/41c4d8ec6ab230615dbac24666b90b53942d2dcee58eb48ee3e91f3ec2151ac1--kind--0.25.0.sonoma.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/jadx/manifests/1.5.1
########################################################################################### 100.0%
==> Fetching jadx
==> Downloading https://ghcr.io/v2/homebrew/core/jadx/blobs/sha256:735427c63f8e20f067a5a50d4273cea
########################################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/fzf/manifests/0.56.2
Already downloaded: /Users/xieyuanliang/Library/Caches/Homebrew/downloads/bb60502aa049f26f1054f3c3ea258d716b88324a1a28cbc8da4c13dc962262b0--fzf-0.56.2.bottle_manifest.json
==> Fetching fzf
==> Downloading https://ghcr.io/v2/homebrew/core/fzf/blobs/sha256:620ef3d40401dab2e808f704116599c2
Already downloaded: /Users/xieyuanliang/Library/Caches/Homebrew/downloads/c1f6c702bc64a40d92304b458ae07b0dc1e69c38421f6cff51bf8622bd262b3f--fzf--0.56.2.sonoma.bottle.tar.gz
==> Upgrading vim
  9.1.0800 -> 9.1.0850
==> Pouring vim--9.1.0850.sonoma.bottle.tar.gz
cp: chflags: /usr/local/Cellar/vim: Operation not permitted
Error: Failure while executing; `/usr/bin/env cp -pR /private/tmp/homebrew-unpack-20241112-23761-3zx314/vim /usr/local/Cellar` exited with 1. Here's the output:
cp: chflags: /usr/local/Cellar/vim: Operation not permitted

What did you expect to happen?

brew upgrade successfully

Step-by-step reproduction instructions (by running brew commands)

brew upgrade
@pstinghua pstinghua added the bug Reproducible Homebrew/brew bug label Nov 12, 2024
@gromgit
Copy link
Member

gromgit commented Nov 12, 2024

What's the output of /bin/ls -lde@ /usr/local /usr/local/Cellar /usr/local/Cellar/vim?

@pstinghua
Copy link
Author

pstinghua commented Nov 12, 2024

/bin/ls -lde@ /usr/local /usr/local/Cellar /usr/local/Cellar/vim

drwxr-xr-x   15 xieyuanliang  admin   480 Oct 29 17:11 /usr/local
drwxrwxr-x  136 xieyuanliang  admin  4352 Nov 11 11:57 /usr/local/Cellar
drwxr-xr-x    3 xieyuanliang  admin    96 Nov 12 17:50 /usr/local/Cellar/vim

@gromgit
Copy link
Member

gromgit commented Nov 12, 2024

Are you running an antivirus or other security software on your machine? If so, stop it and try brew upgrade again.

@pstinghua
Copy link
Author

Are you running an antivirus or other security software on your machine? If so, stop it and try brew upgrade again.

no

@gromgit
Copy link
Member

gromgit commented Nov 12, 2024

Wait, is your username xieyuanliang? If not, you have to login as that user to run any brew command that changes the filesystem.

@pstinghua
Copy link
Author

Wait, is your username xieyuanliang? If not, you have to login as that user to run any brew command that changes the filesystem.

whoami
xieyuanliang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reproducible Homebrew/brew bug
Projects
None yet
Development

No branches or pull requests

2 participants