diff --git a/packaging/os/apt.py b/packaging/os/apt.py index 84a019ae203..9e99a436294 100755 --- a/packaging/os/apt.py +++ b/packaging/os/apt.py @@ -567,7 +567,8 @@ def main(): if not HAS_PYTHON_APT: try: - module.run_command('apt-get update && apt-get install python-apt -y -q --force-yes', use_unsafe_shell=True, check_rc=True) + module.run_command('apt-get update', check_rc=True) + module.run_command('apt-get install python-apt -y -q', check_rc=True) global apt, apt_pkg import apt import apt.debfile