Unable to install software packages using Home Brew

homebrewinstall

I am unable to install any software packages using homebrew. I get the following error when I try to install any softwares.

    Rahuls-iMac:local rahuljeevanandam$ brew install mysql
    ==> Installing mysql dependency: cmake
    ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/cmake-2.8.1
    Already downloaded: /Library/Caches/Homebrew/cmake-2.8.10.1.lion.bottle.tar.gz
    Error: SHA1 mismatch
    Expected: 31856bbd662ca47c325761fc7040e43f9a635c64
    Actual: 4b2ea1d2785009c32d85d1d0e0c7dc4cd68322b7
    Archive: /Library/Caches/Homebrew/cmake-2.8.10.1.lion.bottle.tar.gz
    (To retry an incomplete download, remove the file above.)

    Rahuls-iMac:local rahuljeevanandam$ brew install wget
    ==> Downloading http://ftpmirror.gnu.org/wget/wget-1.14.tar.gz
    ######################################################################## 100.0%
    Error: SHA1 mismatch
    Expected: c487bce740b3a1847a35fb29b5c6700c46f639b8
    Actual: ca98a1bf07f850bc23731fd15d869d1b73ef8c84
    Archive: /Library/Caches/Homebrew/wget-1.14.tar.gz
    (To retry an incomplete download, remove the file above.)

Best Answer

This error indicates that the files being downloaded are corrupt or not the expected files. What is your internet connection like? Try downloading these URLs directly from your browser. (If your router or ISP is inserting ads or a login page, you may be downloading this instead of the actual file.)