GHA: add apt update where missing

To mitigate this kind of (repeat) errors:
```
Err:14 http://azure.archive.ubuntu.com/ubuntu noble-updates/main amd64 python3-werkzeug all 3.0.1-3ubuntu0.1
  404  Not Found [IP: 40.81.13.82 80]
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/p/python-werkzeug/python3-werkzeug_3.0.1-3ubuntu0.1_all.deb
Fetched 10.4 MB in 4s (2593 kB/s)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
```
https://github.com/curl/curl/actions/runs/11732257460/job/32684111508#step:3:74

Follow-up to 842f88434f #15082
Closes #15519
This commit is contained in:
Viktor Szakats 2024-11-08 03:17:44 +01:00
parent a3b4ffd429
commit cb092c0a7e
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 9 additions and 6 deletions

View file

@ -42,6 +42,7 @@ jobs:
# - name: install prereqs
# run: |
# sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
# sudo apt-get update -y
# sudo apt-get install -y --no-install-suggests --no-install-recommends \
# python3-proselint
#

View file

@ -50,12 +50,14 @@ jobs:
- name: install
env:
DEBIAN_FRONTEND: noninteractive
run: >-
sudo apt-get install -y --no-install-suggests --no-install-recommends
codespell python3-pip python3-networkx python3-pydot python3-yaml
python3-toml python3-markupsafe python3-jinja2 python3-tabulate
python3-typing-extensions python3-libcst python3-impacket
python3-websockets python3-pytest &&
run: |
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update -y
sudo apt-get install -y --no-install-suggests --no-install-recommends \
codespell python3-pip python3-networkx python3-pydot python3-yaml \
python3-toml python3-markupsafe python3-jinja2 python3-tabulate \
python3-typing-extensions python3-libcst python3-impacket \
python3-websockets python3-pytest
python3 -m pip install --break-system-packages cmakelint==1.4.3 pytype==2024.9.13 ruff==0.6.8
- name: spellcheck