Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brew update with errors #2921

Closed
sickamongthepure opened this issue Jul 21, 2017 · 14 comments
Closed

brew update with errors #2921

sickamongthepure opened this issue Jul 21, 2017 · 14 comments

Comments

@sickamongthepure
Copy link

Hello, after 10.12.6 update 'brew update' command outputs the following errors:

$ brew update
Failed to set filetime 1500627652 on outfile: errno 1
Failed to set filetime 1500623501 on outfile: errno 1
Failed to set filetime 1499988820 on outfile: errno 1
Failed to set filetime 1500622300 on outfile: errno 1
Failed to set filetime 1500632354 on outfile: errno 1
Failed to set filetime 1499154411 on outfile: errno 1
Failed to set filetime 1498479582 on outfile: errno 1
Already up-to-date.

This is my 'brew doctor' and 'brew config':

$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: You have a curlrc file
If you have trouble downloading packages with Homebrew, then maybe this
is the problem? If the following command doesn't work, then try removing
your curlrc:
  curl https://github.com

Warning: Some keg-only formula are linked into the Cellar.
Linking a keg-only formula, such as gettext, into the cellar with
`brew link <formula>` will cause other formulae to detect them during
the `./configure` step. This may cause problems when compiling those
other formulae.

Binaries provided by keg-only formulae may override system binaries
with other strange results.

You may wish to `brew unlink` these brews:
  curl
$ brew config
HOMEBREW_VERSION: 1.2.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: b5529084906af89827f6d9befd613457a1615918
Last commit: 3 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 6d38158666cb60c06fd05e06986fa15b893cb65e
Core tap last commit: 47 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648
Clang: 8.1 build 802
Git: 2.11.0 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Perl: /usr/local/bin/perl => /usr/local/Cellar/perl/5.26.0/bin/perl
Python: /usr/bin/python
Ruby: /usr/local/opt/ruby@2.3/bin/ruby => /usr/local/Cellar/ruby@2.3/2.3.4/bin/ruby
Java: 1.8.0_141, 1.8.0_131
macOS: 10.12.6-x86_64
Xcode: 8.3.3
CLT: 8.3.2.0.1.1492020469
X11: 2.7.11 => /opt/X11

@MikeMcQuaid
Copy link
Member

What's the output of brew update --force --verbose? Thanks!

@sickamongthepure
Copy link
Author

@MikeMcQuaid,

$ brew update --force --verbose
Checking if we need to fetch /usr/local/Homebrew...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/caskroom/homebrew-versions...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/sidaf/homebrew-pentest...
Failed to set filetime 1500649710 on outfile: errno 1
Fetching /usr/local/Homebrew...
Failed to set filetime 1499988820 on outfile: errno 1
Fetching /usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade...
Failed to set filetime 1500643587 on outfile: errno 1
Fetching /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask...
Failed to set filetime 1500639291 on outfile: errno 1
Fetching /usr/local/Homebrew/Library/Taps/caskroom/homebrew-versions...
Failed to set filetime 1500655469 on outfile: errno 1
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
Failed to set filetime 1498479582 on outfile: errno 1
Fetching /usr/local/Homebrew/Library/Taps/sidaf/homebrew-pentest...
Failed to set filetime 1499154411 on outfile: errno 1
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services...
Updating /usr/local/Homebrew...
Reset branch 'stable'
Current branch stable is up to date.

Updating /usr/local/Homebrew/Library/Taps/buo/homebrew-cask-upgrade...
Current branch master is up to date.

Updating /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask...
Current branch master is up to date.

Updating /usr/local/Homebrew/Library/Taps/caskroom/homebrew-versions...
Current branch master is up to date.

Updating /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
Current branch master is up to date.

Updating /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services...
Current branch master is up to date.

Updating /usr/local/Homebrew/Library/Taps/sidaf/homebrew-pentest...
Current branch master is up to date.

Already up-to-date.

@ilovezfs
Copy link
Contributor

Do you have npm touch or typings installed?

@sickamongthepure
Copy link
Author

@ilovezfs

No, I don't have npm in my system

@ilovezfs
Copy link
Contributor

Please try moving your ~/.gitconfig out of the way.

mv ~/.gitconfig ~/gitconfig-backup

and then try again.

@sickamongthepure
Copy link
Author

I don't have .gitconfig in my home directory

@ilovezfs
Copy link
Contributor

Please try

sudo chown -R $(whoami) /usr/local/Homebrew/

and then try again.

@sickamongthepure
Copy link
Author

@ilovezfs

Didn't helped:

$ sudo chown -R $(whoami) /usr/local/Homebrew/

$ brew update
Failed to set filetime 1500699330 on outfile: errno 1
Failed to set filetime 1499988820 on outfile: errno 1
Failed to set filetime 1500706129 on outfile: errno 1
Failed to set filetime 1500715042 on outfile: errno 1
Failed to set filetime 1500710160 on outfile: errno 1
Failed to set filetime 1498479582 on outfile: errno 1
Failed to set filetime 1499154411 on outfile: errno 1
Already up-to-date.

@ilovezfs
Copy link
Contributor

Do you have a .curlrc file?

@ilovezfs
Copy link
Contributor

Yeah brew doctor says you do. Please try moving it out of the way, and then try again.

@sickamongthepure
Copy link
Author

@ilovezfs,

It helped. Thanks

$ mv ~/.curlrc ~/.curlrc.bak

$ brew update
Already up-to-date.

@ilovezfs
Copy link
Contributor

Cool. If you figure out what line or lines in that file are causing the problem, please let us know.

@sickamongthepure
Copy link
Author

sickamongthepure commented Jul 22, 2017

@ilovezfs

It was remote-time line

@ilovezfs
Copy link
Contributor

@sickamongthepure ah that makes sense!

@Homebrew Homebrew deleted a comment from silverwind Nov 13, 2017
@Homebrew Homebrew locked and limited conversation to collaborators Nov 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants