From f96b66a11fd673bddfcda259119911c732f7e9c6 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Thu, 5 Jan 2023 06:45:51 +0000 Subject: [PATCH] Update file executable_install-program --- home/dot_local/bin/executable_install-program | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/dot_local/bin/executable_install-program b/home/dot_local/bin/executable_install-program index ab0bbaee..53403204 100644 --- a/home/dot_local/bin/executable_install-program +++ b/home/dot_local/bin/executable_install-program @@ -624,6 +624,9 @@ async function beforeInstall(packageManager) { await $`sudo apk update` } else if (packageManager === 'apt') { runCommand('Running apt-get update', `sudo apt-get update`) + if (fileExists('/var/lib/apt/lists/lock')) { + runCommand('Removing /var/lib/apt/lists/lock', `sudo rm /var/lib/apt/lists/lock`) + } } else if (packageManager === 'basher') { } else if (packageManager === 'binary') { } else if (packageManager === 'brew' || packageManager === 'cask') {