Error: Could not link:/usr/local/etc/bash_completion.d/brew
2017-04-02 10:44
405 查看
在brew update 或brew install某东东时出现下面的提示
$ brew update
Updated 1 tap (homebrew/core).
==> Updated Formulae
libhttpseverywhere
Error: Could not link:
/usr/local/etc/bash_completion.d/brew
Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/zsh/site-functions/_brew
Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/man/man1/brew-cask.1
/usr/local/share/man/man1/brew.1
Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/doc/homebrew
Please delete these paths and run `brew update`.
图
![](https://oscdn.geek-share.com/Uploads/Images/Content/202010/14/887effa5cc373fdd45cfda07864d61fd)
解决办法是有几处路径Error 就全部rm [b]-rf,如下
[/b]
$ rm -rf /usr/local/share/doc/homebrew
$ rm -rf /usr/local/share/man/man1/brew-cask.1
$ rm -rf /usr/local/share/man/man1/brew.1
$ rm -rf /usr/local/share/zsh/site-functions/_brew
$ rm -rf /usr/local/etc/bash_completion.d/brew
$ brew update
Already up-to-date.
$ brew update
Updated 1 tap (homebrew/core).
==> Updated Formulae
libhttpseverywhere
Error: Could not link:
/usr/local/etc/bash_completion.d/brew
Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/zsh/site-functions/_brew
Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/man/man1/brew-cask.1
/usr/local/share/man/man1/brew.1
Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/doc/homebrew
Please delete these paths and run `brew update`.
图
解决办法是有几处路径Error 就全部rm [b]-rf,如下
[/b]
$ rm -rf /usr/local/share/doc/homebrew
$ rm -rf /usr/local/share/man/man1/brew-cask.1
$ rm -rf /usr/local/share/man/man1/brew.1
$ rm -rf /usr/local/share/zsh/site-functions/_brew
$ rm -rf /usr/local/etc/bash_completion.d/brew
$ brew update
Already up-to-date.
相关文章推荐
- Error: Could not link: /usr/local/etc/bash_completion.d/brew
- Could not link: /usr/local/etc/bash_completion.d/brew
- Error: Could not link: /usr/local/share/doc/homebrew
- Error: Could not link: /usr/local/share/doc/homebrew
- ubuntu出现ERROR: Could not find 'wxe_driver.so' in: /usr/local/bin/erlang/lib/wx-1.2/priv
- error: could not create '/usr/local/lib/python2.7/dist-packages/jieba': Permission denied
- 关于homebrew使用时遇到的问题: Error: Could not symlink bin/gdb/usr/local/bin is not writable.
- 运行apache时,发生错误:could not open error log file /usr/local/apache/logs/error_log
- Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'!
- nagios 页面发送命令异常 Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!
- Could not use /usr/local/apache/logs/slowquery.log for logging (error 13).
- Syntax error on line of /etc/httpd/conf/httpd.conf: Could not open configuration file *.conf denied
- Could not start the service on local computer. Error 1053: the service did not respond to the start or control request i
- apache 在 加载openssl 模块时出现 “/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value”错误解决方案
- Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK. Looked here: C:\Users\Administrator\AppData\Local\Android\sdk\tools\templates\gradle\wrapper
- Mac 解决问题:-bash: gdb: command not found &/usr/local/share/man/man5 is not writable.
- FATAL ERROR: could not find /usr/bin/my_print_defaults创建权限表出错
- 安装jdk报错-bash: export: `=': not a valid identifier -bash: export: `/usr/local/jdk1.8/': not a valid i
- hadoop错误org.apache.hadoop.util.DiskChecker$DiskErrorException Could not find any valid local directory for
- VS ERROR LNK 1201 ,LINK could not write to the program database (PDB) for the output file