Run apt-get update in action.yml

GitHub does not so automatically so the package lists may be outdated, causing the package installation to fail:

    Err:1 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 qemu-user-static amd64 1:6.2+dfsg-2ubuntu6.7
      404  Not Found [IP: 52.147.219.192 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/q/qemu/qemu-user-static_6.2%2bdfsg-2ubuntu6.7_amd64.deb  404  Not Found [IP: 52.147.219.192 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
This commit is contained in:
Julian Brost 2023-05-02 11:30:12 +02:00 committed by GitHub
parent cc68286fed
commit 26f92bb5c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,9 @@ runs:
steps:
- uses: actions/checkout@v3
- shell: bash
run: sudo apt-get update
- shell: bash
run: sudo apt-get install -y qemu-user-static binfmt-support