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

Update apt-get before installing libcurl to fix GitHub Actions failure #21

Merged
merged 1 commit into from
May 20, 2022

Conversation

chriszs
Copy link
Contributor

@chriszs chriszs commented May 19, 2022

Description

libcurl4-openssl-dev was failing to install in GitHub Actions with the following error:

Run sudo apt install -y libcurl4-openssl-dev

[...snip...]

Err:1 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl4-openssl-dev amd64 7.68.0-1ubuntu2.10
  404  Not Found [IP: 40.81.13.82 80]
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/c/curl/libcurl4-openssl-dev_7.68.0-1ubuntu2.10_amd64.deb  404  Not Found [IP: 40.81.13.82 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Error: Process completed with exit code 100.

According to this thread and the docs, the solution may be to run apt-get update first. That's what this PR does.

Test Steps

File PR, wait for build to work. Update: It does!

Needed before installing libcurl
@chriszs chriszs requested a review from a team as a code owner May 19, 2022 21:56
@chriszs chriszs changed the title Update apt-get to before installing libcurl to fix GitHub Actions failure Update apt-get before installing libcurl to fix GitHub Actions failure May 19, 2022
Copy link
Contributor

@freedmand freedmand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! We need to consolidate the GH actions scripts in the future. This looks good!

@chriszs chriszs merged commit 78eeca1 into develop May 20, 2022
@chriszs chriszs deleted the fix/libcurl-dep-install-failure branch May 20, 2022 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants