Mac command line execution:
brew update
The following error is reported:
Error:
homebrew-core is a shallow clone.
To `brew update`, first run:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
This command may take a few minutes to run due to the large size of the repository.
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!
The cause of this problem is usually the problem caused by the system update.
Solution: delete the homebrew core and then update it
cd /usr/local/Homebrew/Library/Taps/homebrew
rm -rf homebrew-core
brew upgrade
Read More:
- How to Solve Error: homebrew-core is a shallow clone.
- MAC uses homebrew to install wget error [How to Solve]
- [Solved] Mac Install homebrew Error: error: Not a valid ref: refs/remotes/origin/master
- tar: Error opening archive: Failed to open ‘/Users/xxx/Library/Caches/Homebrew/downloads/348a16e
- [Solved] Mac M1 Brew install Error: Command failed with exit 128:git
- Qt5core.pdb is not loaded [How to Solve]
- MAC: Brew upgrade Error [How to Fix]
- [Solved] net core HTTP Error 500.31 – Failed to load ASP.NET Core runtime HTTP Error 500.30 – ASP.NET Core
- [Solved] Curl: (22) the requested URL returned error: 404 when installing XXX on MAC brew
- [Solved] Asp.Net Core IIS Error: HTTP Error 500.30 – ASP.NET Core app failed to start
- MAC install lightgbm and xgboost Error [How to Solve]
- Spring Connect Redis Error: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: MOVED 12910 172.16.4.99:6379
- [Solved] Mac Notebook M1 Chip Install Hashlips library npm error
- [Solved] Mac starts redis error: there is no specified conf file
- Gitlab Clone Error: next InitializeSecurityContext failed
- [Solved] Git Clone Error: The TLS connection was non-properly terminated.
- Mac Start IDEA Error: Cannot load JVM bundle…Value of IDEA_VM_OPTIONS is (null)
- Github Clone Error: RPC failed; result=56, HTTP code=200
- [Solved] Git Clone Error: error setting certificate verify locations
- [Solved] New MAC Unity Develop Error: error installing cocoapods