Update package metadata before installing packages

On Discord, @foamyguy mentioned that some builds were failing at the "install deps" step with a message like:
```
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev-dev_237-3ubuntu10.33_amd64.deb  404  Not Found [IP: 52.177.174.250 80]
```
This kind of error can occur when the package metadata is out of date and this specific package version was superseded by another in a security update.

Ideally, the image supplied by github would always be up to date, but if it's not, then doing the "update" will ensure that the metadata is right at the cost of probably just 1-2s of runtime.
This commit is contained in:
Jeff Epler 2020-02-07 11:36:31 -06:00 committed by GitHub
parent 9db11f4c2e
commit 043026cbf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@ if [[ $# -eq 0 ]] ; then
fi
# Install dependencies
sudo apt-get update
sudo apt-get install libudev-dev libusb-1.0
sudo apt-get install -y gettext
pip install -r requirements.txt