brew update 慢 解决办法 镜像更新源
来源:互联网 发布:湖南移动网络准入系统 编辑:程序博客网 时间:2024/05/22 18:22
转自:https://www.logcg.com/archives/1301.html
Brew 是OS X 上类似apt-get以及yum的一个软件包管理器,它依托于Github………………
所以,虽然你侥幸下载到了 brew,但你肯定是无法更新 brew 的。原因你懂。不过虽然不能更新 brew,但这只是指brew这个管理器本身罢了,软件还是可以安装的。但由于无法使用 brewupdate 也就无法更新软件……我们有必要来给 brew 换源。
brew 的镜像源
brew 也有镜像源?嗯,确实有的,而且还不止一个:
- 中科大brew镜像源
- 清华brew镜像源
cd /usr/localgit remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew.git//清华镜像源git remote set-url origin http://mirrors.ustc.edu.cn/homebrew.git//中科大镜像源//二者选其一即可更新
cd ~mkdir tmpcd tmp//以下要与你选择的镜像源相同git clone git://mirrors.tuna.tsinghua.edu.cn/homebrew.gitgit clone http://mirrors.ustc.edu.cn/homebrew.git sudo rm -rf /usr/local/.gitsudo rm -rf /usr/local/Librarysudo cp -R homebrew/.git /usr/local/sudo cp -R homebrew/Library /usr/local/
排错
如果你遇到如下问题:
╰─➤ brew updateStashing your changes: M .gitignore M .yardopts M README.md M share/doc/homebrew/Acceptable-Formulae.md M share/doc/homebrew/Common-Issues.md M share/doc/homebrew/FAQ.md M share/doc/homebrew/Formula-Cookbook.md M share/doc/homebrew/Homebrew-0.9.3.md M share/doc/homebrew/How-To-Open-a-Homebrew-Pull-Request-(and-get-it-merged).md D share/doc/homebrew/How-to-Create-and-Maintain-a-Tap.md M share/doc/homebrew/How-to-build-software-outside-Homebrew-with-Homebrew-keg-only-dependencies.md M share/doc/homebrew/Installation.md M share/doc/homebrew/Interesting-Taps-&-Branches.md M share/doc/homebrew/Maintainer-Guidelines.md M share/doc/homebrew/Press.md M share/doc/homebrew/Python-for-Formula-Authors.md M share/doc/homebrew/Querying-Brew.md M share/doc/homebrew/README.md D share/doc/homebrew/Rename-A-Formula.md M share/doc/homebrew/Troubleshooting.md M share/doc/homebrew/Xcode.md M share/doc/homebrew/brew-tap.md M share/man/man1/brew.1fatal: Unable to create '/usr/local/.git/index.lock': Permission deniedCannot save the current index stateError: Failure while executing: git stash save --include-untracked --quiet
那么就安照如下命令排错:sudo chgrp -R admin /usr/local//确保目录归属管理组sudo chmod -R g+w /usr/local//确保管理组可读
0 0
- brew update 慢 解决办法 镜像更新源
- brew update 慢 解决办法 镜像更新源
- brew update 更新太慢
- brew update
- brew update
- ubuntu apt-get update 更新源失败的解决办法
- linux update更新源
- Ubuntu中sudo apt-get update很慢解决办法
- Ubuntu中sudo apt-get update很慢解决办法
- ubuntu执行sudo apt-get update很慢解决办法
- Ubantu14.04使用wifi上网速度慢解决办法(更新源)
- Mac brew update手顺
- brew update no response issue
- brew update 失败结局办法
- update慢如何处理?
- pod update/install 慢
- Linux--更新(update/upgrade) & 更新源
- sudo apt-get update更新源失败
- python中list的一些用法
- 解密:protobuf协议序列化后的变体
- 1002-星系炸弹
- View=com.android.internal.policy.impl.PhoneWindow$DecorView{4249aaf8 V.E..... R.....ID 0,0-729,192}
- 一个简单的局域网Socket聊天程序
- brew update 慢 解决办法 镜像更新源
- 行人检测资源汇总
- Qt之无边框窗口创建
- Android Studio下JNI开发
- 解决 Make sure the Cursor is initialized correctly before accessing data from it
- find the mincost route
- 【Code Art / C#】随机贝塞尔曲线效果测试
- 139. Word Break | Java最短代码实现
- CentOs 6.6配置 Apache服务器 Mysql5.5 PHP5.5 以及Tomcat8.0 JDK的方法