Skip to contentSkip to conversation

github: run apt-get update before installing packages

PATCH New Simon Horman 1 participant 2 messages Mar 23, 2022 – Mar 24, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 github: run apt-get update before installing packages

Refresh package database before installing dependencies to avoid failures due to trying to install older, no longer available, versions of packages.

---
 .github/workflows/build.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Workflow run
- https://github.com/horms/kexec-tools/actions/runs/2028827809

.github/workflows/build.yml +3 -1
index df35703a27e0..e554751e0017 100644
@@ -61,7 +61,9 @@ jobs:
 
     - name: Install Dependencies
       if: env.EXTRA_PKGS != ''
-      run: sudo apt-get -q=2 install ${{ env.EXTRA_PKGS }}
+      run: |
+        sudo apt-get update
+        sudo apt-get -q=2 install ${{ env.EXTRA_PKGS }}
 
     - name: Build
       run: |
Signature · 1 line
2.30.2
author Applied
#1 lore raw

PATCH 1/1 github: run apt-get update before installing packages

Quoted 4 lines · Simon Horman

Refresh package database before installing dependencies to avoid failures due to trying to install older, no longer available, versions of packages.

Applied.