[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

416 comments

  1. 通告: wholesale jerseys
  2. 通告: blog tam su
  3. Hey just wanted to give you a quick heads up. The text in your article seem
    to be running off the screen in Firefox. I’m not sure if
    this is a formatting issue or something to do with internet browser compatibility but I
    thought I’d post to let you know. The layout look great though!
    Hope you get the issue fixed soon. Cheers

  4. Thanks for ones marvelous posting! I seriously enjoyed
    reading it, you are a great author.I will be sure to bookmark your
    blog and will eventually come back someday. I want to encourage you to continue
    your great writing, have a nice evening!

  5. I love what you guys are up too. This type of clever work and reporting!
    Keep up the amazing works guys I’ve incorporated you guys to my personal blogroll.

  6. I’ve been exploring for a bit for any high quality articles or blog posts in this sort of house .
    Exploring in Yahoo I finally stumbled upon this site. Studying this info So i am happy to show that I have a very just right uncanny feeling I found out just what I needed.
    I such a lot undoubtedly will make certain to
    don?t disregard this site and provides it a look regularly.

  7. Hi there terrific blog! Does running a blog similar to this require a massive amount work?
    I’ve virtually no understanding of coding but I had been hoping to start
    my own blog in the near future. Anyhow, if you have any recommendations
    or tips for new blog owners please share.
    I know this is off topic however I just had to ask. Thank you!

  8. Do you have a spam issue on this site; I also am a blogger, and I was curious about your situation;
    many of us have created some nice methods and we
    are looking to swap techniques with other folks, please shoot me an email if interested.

  9. Just wish to say your article is as astonishing. The clarity in your post is simply excellent and that i
    could assume you are knowledgeable on this subject.
    Fine together with your permission let me to clutch your
    RSS feed to stay updated with impending post. Thanks a million and
    please continue the gratifying work.

  10. Hello just wanted to give you a brief heads up and let you know
    a few of the pictures aren’t loading properly.
    I’m not sure why but I think its a linking issue.

    I’ve tried it in two different web browsers and both show the same results.

  11. Today, while I was at work, my cousin stole my iphone
    and tested to see if it can survive a 25 foot drop, just so she can be
    a youtube sensation. My apple ipad is now destroyed and she has 83 views.
    I know this is entirely off topic but I had to share it
    with someone!

  12. Hi would you mind letting me know which webhost you’re working with?
    I’ve loaded your blog in 3 completely different browsers
    and I must say this blog loads a lot faster then most.

    Can you suggest a good hosting provider at a reasonable price?
    Many thanks, I appreciate it!

  13. Good day! I know this is kinda off topic but I was wondering which blog platform are you using for this
    site? I’m getting sick and tired of WordPress because I’ve had issues with
    hackers and I’m looking at options for another platform. I would be
    great if you could point me in the direction of
    a good platform.

  14. I love your blog.. very nice colors & theme. Did you make this website yourself or did you hire
    someone to do it for you? Plz respond as
    I’m looking to design my own blog and would like to
    know where u got this from. many thanks

  15. I have 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 view, if all webmasters and
    bloggers made good content as you did, the net will be a lot more
    useful than ever before.

  16. I think this is one of the most important info for me.
    And i am glad reading your article. But want to
    remark on some general things, The site style is ideal, the articles is really
    nice : D. Good job, cheers

  17. I will immediately clutch your rss as I can not find your email subscription hyperlink or e-newsletter
    service. Do you have any? Kindly permit me know so that
    I may just subscribe. Thanks.

  18. Its like you read my mind! You seem to know a lot about this, like you wrote the book
    in it or something. I think that you could do with some pics to drive
    the message home a bit, but other than that, this is magnificent blog.
    An excellent read. I’ll certainly be back.

  19. Magnificent goods from you, man. I have understand your stuff previous to and you are just too fantastic.
    I actually like what you’ve acquired here, certainly
    like what you’re saying and the way in which you say it.
    You make it enjoyable and you still care for to keep it wise.
    I cant wait to read much more from you. This is really a wonderful
    web site.

  20. Howdy! This is my first comment here so I just wanted to give a quick shout out and say I
    really enjoy reading your posts. Can you suggest any other blogs/websites/forums that
    go over the same topics? Thank you!

  21. 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 view, if all website owners and bloggers made good content
    as you did, the internet will be a lot more useful than ever before.

  22. Today, while I was at work, my sister stole my iPad and tested to see if it can survive
    a 25 foot drop, just so she can be a youtube sensation. My iPad is now broken and she has 83
    views. I know this is totally off topic but I had to share it with someone!

發表迴響

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

*