[OSX] Error: Cowardly refusing to ‘sudo brew update’

問題

執行 sudo brew update 時出現如下錯誤訊息

 
Error: Cowardly refusing to 'sudo brew update'
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.

原因

brew 權限不正確

 
MBA:bin root# ls -la /usr/local/bin/brew*
-rwxr-xr-x  1 taien  admin  4913 Feb 11 20:46 brew
lrwxr-xr-x  1 taien admin    40 Oct 28  2015 brew-cask -> ../Cellar/brew-cask/0.58.0/bin/brew-cask

解決方法

 
sudo chown root:wheel /usr/local/bin/brew

66 comments

  1. I do not know whether it’s just me or if everybody else experiencing issues with
    your website. It appears like some of the written text in your content are running off the
    screen. Can someone else please provide feedback and let me know if this is happening to them
    as well? This could be a issue with my web browser because
    I’ve had this happen before. Thanks

  2. Right now it looks like Movable Type is the top blogging
    platform available right now. (from what I’ve read) Is that what
    you are using on your blog?

  3. I have been surfing online greater than three hours lately, yet I never discovered any attention-grabbing article like yours.
    It’s pretty value enough for me. In my opinion, if all webmasters and bloggers made good
    content material as you did, the internet can be a lot more helpful than ever before.

  4. I think that what you published made a lot of sense.
    But, think about this, suppose you wrote a catchier post title?
    I mean, I don’t want to tell you how to run your blog, however suppose you added something
    that grabbed folk’s attention? I mean [OSX] Error: Cowardly refusing
    to ‘sudo brew update’ – Taien's blog is a little plain. You should peek at Yahoo’s home page and
    see how they create post headlines to grab viewers to click.
    You might add a related video or a pic or two to get people interested about what you’ve got to say.
    Just my opinion, it might bring your posts a little livelier.

  5. Pretty portion of content. I just stumbled upon your web site and in accession capital to assert that I acquire in fact
    loved account your blog posts. Any way I will be
    subscribing to your augment or even I achievement you get entry to consistently fast.

  6. Wow, wonderful blog structure! How lengthy have you ever been blogging for?

    you make blogging glance easy. The entire glance of your site is magnificent, as smartly as the content material!

  7. Nice post. I used to be checking continuously this blog and I’m inspired!
    Very useful information particularly the last phase 🙂 I maintain such information much.
    I used to be looking for this particular info for a very lengthy
    time. Thanks and best of luck.

  8. I’ve been browsing online more than 2 hours today, yet
    I never found any interesting article like yours.
    It’s pretty worth enough for me. In my opinion, if all webmasters and bloggers made good content as you did,
    the net will be much more useful than ever before.

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *

*