update CI workflows to run 'apt-get update' if installation of packages via 'apt-get install' failed, likely due to stale apt cache#4176
Conversation
Need to update the APT cache before installing to avoid:
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/d/dh-autoreconf/dh-autoreconf_17_all.deb 503 Service Unavailable [IP: 52.252.75.106 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Unify the handling of "sudo apt[-get] install" to install all packages at once and retry if that failed after updating the cache.
|
@Flamefire is there a reason you're reverting the switch from |
Using |
At some point we were probably running with Ubuntu 22.04 (because we were using |
Sometimes we need to update the APT cache before installing to avoid: