From 540c7b880f16f17858513b922b26aeece4882ad1 Mon Sep 17 00:00:00 2001 From: Ludovic <54670129+lbr38@users.noreply.github.com> Date: Fri, 25 Oct 2024 15:31:48 +0200 Subject: [PATCH] patch --- src/controllers/Package/Apt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/Package/Apt.py b/src/controllers/Package/Apt.py index 0b4af0a..17346fa 100644 --- a/src/controllers/Package/Apt.py +++ b/src/controllers/Package/Apt.py @@ -198,14 +198,14 @@ def update_cache(self): # TODO debug # Print apt process with ps result = subprocess.run( - ['ps aux | grep apt'], + ['fuser -vik -TERM /var/lib/apt/lists/lock'], stdout = subprocess.PIPE, # subprocess.PIPE & subprocess.PIPE are alias of 'capture_output = True' stderr = subprocess.PIPE, universal_newlines = True, # Alias of 'text = True' shell = True ) - print('ps: ' + str(result.stdout)) + print('fuser: \n' + str(result.stdout)) raise Exception('could not update apt cache: ' + str(e))