Skip to content

Commit 2dc346c

Browse files
syuu1228roydahan
authored andcommitted
CI: Fix error on apt-get install
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
1 parent 26e9711 commit 2dc346c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222

2323
- name: Setup environment
2424
run: |
25+
sudo apt-get update
2526
sudo apt-get install libssl1.1 libuv1-dev libkrb5-dev libc6-dbg
2627
sudo snap install valgrind --classic
2728
pip3 install https://github.com/scylladb/scylla-ccm/archive/master.zip

.github/workflows/cassandra.yml

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828

2929
- name: Setup environment
3030
run: |
31+
sudo apt-get update
3132
sudo apt-get install libssl1.1 libuv1-dev libkrb5-dev libc6-dbg
3233
sudo snap install valgrind --classic
3334
pip3 install https://github.com/scylladb/scylla-ccm/archive/master.zip

0 commit comments

Comments
 (0)