From 74bc4476896c36e89aed3aa8d81f843073840e8a Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Tue, 7 Dec 2021 07:15:34 -0600 Subject: [PATCH] fix: add --fix-broken to apt --- src/utils/setup/setupAptPack.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/setup/setupAptPack.ts b/src/utils/setup/setupAptPack.ts index c6d5bead..e041ef59 100644 --- a/src/utils/setup/setupAptPack.ts +++ b/src/utils/setup/setupAptPack.ts @@ -26,12 +26,12 @@ export async function setupAptPack( if (version !== undefined && version !== "") { try { - await execaSudo(apt, ["install", "-y", `${name}=${version}`]) + await execaSudo(apt, ["install", "--fix-broken", "-y", `${name}=${version}`]) } catch { - await execaSudo(apt, ["install", "-y", `${name}-${version}`]) + await execaSudo(apt, ["install", "--fix-broken", "-y", `${name}-${version}`]) } } else { - await execaSudo(apt, ["install", "-y", name]) + await execaSudo(apt, ["install", "--fix-broken", "-y", name]) } return { binDir: "/usr/bin/" }