[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

74 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.

  9. I’ve read several just right stuff here. Definitely price bookmarking for revisiting. I wonder how a lot attempt you place to create this kind of excellent informative website.

  10. I’m impressed, I have to admit. Rarely do I encounter a blog that’s both educative and engaging, and let me tell you, you’ve hit the nail on the head. The issue is something too few folks are speaking intelligently about. Now i’m very happy I stumbled across this during my hunt for something relating to this.

  11. It is perfect time to make some plans for the future and it’s time to be happy. I have read this post and if I could I wish to suggest you some interesting things or advice. Maybe you can write next articles referring to this article. I desire to read even more things about it!

  12. You really make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand. It seems too complicated and very broad for me. I’m looking forward for your next post, I will try to get the hang of it!

發表迴響

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

*