From 26f92bb5c75e86ed5f7e26f4aa072ee5867106dc Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Tue, 2 May 2023 11:30:12 +0200 Subject: [PATCH] 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? --- action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action.yml b/action.yml index 784abed..a91d133 100644 --- a/action.yml +++ b/action.yml @@ -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