scylladb / cpp-rust-driver

API-compatible rewrite of https://github.com/scylladb/cpp-driver as a wrapper for Rust driver.
GNU Lesser General Public License v2.1
11 stars 11 forks source link

CI: Fix error on apt-get install #127

Closed syuu1228 closed 1 month ago

syuu1228 commented 1 month ago

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