Skip to content

Commit

Permalink
Update package metadata before installing packages
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jepler authored Feb 7, 2020
1 parent 9db11f4 commit 043026c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 043026c

Please sign in to comment.