From 078d6e51e5fd857ac2d598ef608371be0d9bd700 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Fri, 15 Aug 2025 16:17:31 -0400 Subject: [PATCH] Re-install python3 after removal to solve unmet dependencies --- .github/actions/build-dependencies/action.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/actions/build-dependencies/action.yml b/.github/actions/build-dependencies/action.yml index b34bb933..c50ce6cf 100644 --- a/.github/actions/build-dependencies/action.yml +++ b/.github/actions/build-dependencies/action.yml @@ -11,10 +11,11 @@ runs: sudo apt remove -y "*nodejs*" "*npm*" "*yarn*" "*java*" "*kotlin*" "*golang*" "*swift*" "*julia*" "*fortran*" "*android*" sudo apt remove -y "*apache2*" "*nginx*" "*firefox*" "*chromium*" "*chrome*" "*edge*" - # The following removal command requires explicitly installing python/removing shim-signed - sudo apt install --fix-missing --fix-broken -y python3 python3.12 libpython3-stdlib - sudo apt remove -y --allow-remove-essential -f shim-signed + sudo apt remove -y --allow-remove-essential -f shim-signed *python3* + # This removal command requires the prior removals due to unmet dependencies otherwise sudo apt remove -y "*qemu*" "*sql*" "*texinfo*" "*imagemagick*" + # Reinstall python3 as a general dependency of a functional operating system + sudo apt install python3 if: runner.os == 'Linux' - name: Remove unused packages