ensure_packages_installed fix
This commit is contained in:
parent
a9d57c18ae
commit
777365adf8
|
@ -36,9 +36,7 @@ async def ensure_packages_installed(
|
|||
return True
|
||||
|
||||
update_cmd = (
|
||||
"apt-get update"
|
||||
"-y"
|
||||
"--no-install-recommends"
|
||||
"apt-get update -y --no-install-recommends"
|
||||
)
|
||||
return_code, stdout, stderr = await utils.async_run_command(
|
||||
update_cmd,
|
||||
|
@ -55,12 +53,9 @@ async def ensure_packages_installed(
|
|||
return False
|
||||
|
||||
install_cmd = (
|
||||
"apt-get install"
|
||||
"-y"
|
||||
"--no-install-recommends"
|
||||
"--assume-yes"
|
||||
"-o Dpkg::Options::='--force-confdef'" # Default to existing config
|
||||
"-o Dpkg::Options::='--force-confold'" # Keep existing config
|
||||
"apt-get install -y --no-install-recommends --assume-yes "+
|
||||
"-o Dpkg::Options::='--force-confdef' "+ # Default to existing config
|
||||
"-o Dpkg::Options::='--force-confold' "+ # Keep existing config
|
||||
f"{' '.join(packages_to_install)}"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue