Skip to content

CI: Fix error on apt-get install #127

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

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

syuu1228
Copy link
Contributor

@syuu1228 syuu1228 commented Jun 3, 2024

On Ubuntu, we need to run "apt-get update" prior to "apt-get install", otherwise it does not gurantee the package database is up to date. If we don't do that, "apt-get install" with outdated database may cause error something like:

Err:9 mirror+file:/etc/apt/apt-mirrors.txt jammy-updates/main amd64 libc6-dbg amd64 2.35-0ubuntu3.7
404 Not Found [IP: 52.252.75.106 80]
E: Failed to fetch mirror+file:/etc/apt/apt-mirrors.txt/pool/main/g/glibc/libc6-dbg_2.35-0ubuntu3.7_amd64.deb 404 Not Found [IP: 52.252.75.106 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? Fetched 504 kB in 0s (1279 kB/s)

To fix this, add "apt-get update" on the begging of "Setup environment".

Related #122

@syuu1228 syuu1228 force-pushed the ci_add_apt_get_update branch from ffe2ec6 to 2bdc524 Compare June 3, 2024 14:06
On Ubuntu, we need to run "apt-get update" prior to "apt-get install", otherwise it does not gurantee the package database is up to date.
If we don't do that, "apt-get install" with outdated database may cause error something like:

Err:9 mirror+file:/etc/apt/apt-mirrors.txt jammy-updates/main amd64 libc6-dbg amd64 2.35-0ubuntu3.7
  404  Not Found [IP: 52.252.75.106 80]
E: Failed to fetch mirror+file:/etc/apt/apt-mirrors.txt/pool/main/g/glibc/libc6-dbg_2.35-0ubuntu3.7_amd64.deb  404  Not Found [IP: 52.252.75.106 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Fetched 504 kB in 0s (1279 kB/s)

To fix this, add "apt-get update" on the begging of "Setup environment".

Related scylladb#122
@syuu1228 syuu1228 force-pushed the ci_add_apt_get_update branch from 2bdc524 to f3da046 Compare June 3, 2024 14:07
@yaronkaikov yaronkaikov requested a review from roydahan June 3, 2024 14:25
@roydahan roydahan merged commit 2dc346c into scylladb:master Jun 3, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants