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') {