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 and brew upgrade fails with nghttp2 related error #4228

Closed
2 of 8 tasks
traversaro opened this issue Oct 5, 2021 · 5 comments
Closed
2 of 8 tasks

brew update and brew upgrade fails with nghttp2 related error #4228

traversaro opened this issue Oct 5, 2021 · 5 comments
Labels
investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: macOS

Comments

@traversaro
Copy link

Description

If I run:

          brew update
          brew upgrade

I get as error:

2021-10-05T16:09:10.7734610Z �[31mError:�[0m The `brew link` step did not complete successfully
2021-10-05T16:09:10.7735320Z The formula built, but is not symlinked into /usr/local
2021-10-05T16:09:10.7741890Z Could not symlink include/nghttp2/nghttp2.h
2021-10-05T16:09:10.7743170Z Target /usr/local/include/nghttp2/nghttp2.h
2021-10-05T16:09:10.7743810Z is a symlink belonging to nghttp2. You can unlink it:
2021-10-05T16:09:10.7744290Z   brew unlink nghttp2
2021-10-05T16:09:10.7744540Z 
2021-10-05T16:09:10.7744990Z To force the link and overwrite all conflicting files:
2021-10-05T16:09:10.7746000Z   brew link --overwrite libnghttp2
2021-10-05T16:09:10.7746710Z 
2021-10-05T16:09:10.7747090Z To list all files that would be deleted:
2021-10-05T16:09:10.7748010Z   brew link --overwrite --dry-run libnghttp2
2021-10-05T16:09:10.7748370Z 
2021-10-05T16:09:10.7748750Z Possible conflicting files are:
2021-10-05T16:09:10.7751580Z /usr/local/include/nghttp2/nghttp2.h -> /usr/local/Cellar/nghttp2/1.45.1/include/nghttp2/nghttp2.h
2021-10-05T16:09:10.7756210Z /usr/local/include/nghttp2/nghttp2ver.h -> /usr/local/Cellar/nghttp2/1.45.1/include/nghttp2/nghttp2ver.h
2021-10-05T16:09:10.7762560Z /usr/local/lib/libnghttp2.14.dylib -> /usr/local/Cellar/nghttp2/1.45.1/lib/libnghttp2.14.dylib
2021-10-05T16:09:10.7767730Z /usr/local/lib/libnghttp2.a -> /usr/local/Cellar/nghttp2/1.45.1/lib/libnghttp2.a
2021-10-05T16:09:10.7771770Z /usr/local/lib/libnghttp2.dylib -> /usr/local/Cellar/nghttp2/1.45.1/lib/libnghttp2.dylib
2021-10-05T16:09:10.7778590Z /usr/local/lib/pkgconfig/libnghttp2.pc -> /usr/local/Cellar/nghttp2/1.45.1/lib/pkgconfig/libnghttp2.pc

Virtual environments affected

  • Ubuntu 16.04
  • Ubuntu 18.04
  • Ubuntu 20.04
  • macOS 10.15
  • macOS 11
  • Windows Server 2016
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Failed build: https://github.com/traversaro/github-actions-brew-update-upgrade-check/actions/runs/1308387900 .

Is it regression?

Yes, latest working version https://github.com/traversaro/github-actions-brew-update-upgrade-check/actions/runs/1306111456 .

Expected behavior

I would expect the update to finish correctly with a 0 return status of the command.

Actual behavior

2021-10-05T16:09:10.7734610Z �[31mError:�[0m The `brew link` step did not complete successfully
2021-10-05T16:09:10.7735320Z The formula built, but is not symlinked into /usr/local
2021-10-05T16:09:10.7741890Z Could not symlink include/nghttp2/nghttp2.h
2021-10-05T16:09:10.7743170Z Target /usr/local/include/nghttp2/nghttp2.h
2021-10-05T16:09:10.7743810Z is a symlink belonging to nghttp2. You can unlink it:
2021-10-05T16:09:10.7744290Z   brew unlink nghttp2
2021-10-05T16:09:10.7744540Z 
2021-10-05T16:09:10.7744990Z To force the link and overwrite all conflicting files:
2021-10-05T16:09:10.7746000Z   brew link --overwrite libnghttp2
2021-10-05T16:09:10.7746710Z 
2021-10-05T16:09:10.7747090Z To list all files that would be deleted:
2021-10-05T16:09:10.7748010Z   brew link --overwrite --dry-run libnghttp2
2021-10-05T16:09:10.7748370Z 
2021-10-05T16:09:10.7748750Z Possible conflicting files are:
2021-10-05T16:09:10.7751580Z /usr/local/include/nghttp2/nghttp2.h -> /usr/local/Cellar/nghttp2/1.45.1/include/nghttp2/nghttp2.h
2021-10-05T16:09:10.7756210Z /usr/local/include/nghttp2/nghttp2ver.h -> /usr/local/Cellar/nghttp2/1.45.1/include/nghttp2/nghttp2ver.h
2021-10-05T16:09:10.7762560Z /usr/local/lib/libnghttp2.14.dylib -> /usr/local/Cellar/nghttp2/1.45.1/lib/libnghttp2.14.dylib
2021-10-05T16:09:10.7767730Z /usr/local/lib/libnghttp2.a -> /usr/local/Cellar/nghttp2/1.45.1/lib/libnghttp2.a
2021-10-05T16:09:10.7771770Z /usr/local/lib/libnghttp2.dylib -> /usr/local/Cellar/nghttp2/1.45.1/lib/libnghttp2.dylib
2021-10-05T16:09:10.7778590Z /usr/local/lib/pkgconfig/libnghttp2.pc -> /usr/local/Cellar/nghttp2/1.45.1/lib/pkgconfig/libnghttp2.pc

Repro steps

Run:

          brew update
          brew upgrade
@Bo98
Copy link

Bo98 commented Oct 5, 2021

This is my fault but should have already been fixed shortly before this issue was opened.

@Darleev Darleev added OS: macOS investigate Collect additional information, like space on disk, other tool incompatibilities etc. and removed needs triage labels Oct 6, 2021
@Darleev
Copy link
Contributor

Darleev commented Oct 6, 2021

Hello @traversaro,
Currently, I see no issues on macOS 10.15, 11 for mentioned brew commands. Could you please verify one more time?
We're looking forward to your reply.

@traversaro
Copy link
Author

@Darleev
Copy link
Contributor

Darleev commented Oct 6, 2021

 @traversaro I'm going to close the issue then. Thanks for the feedback.
 In case of any questions feel free to contact us.

@Darleev Darleev closed this as completed Oct 6, 2021
@traversaro
Copy link
Author

traversaro commented Oct 6, 2021

@traversaro I'm going to close the issue then. Thanks for the feedback. In case of any questions feel free to contact us.

Sure! I tought I had closed it myself, but that is not the case indeed, sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: macOS
Projects
None yet
Development

No branches or pull requests

3 participants