print running processes in apt and dpkg
This commit is contained in:
parent
df89f8aea6
commit
6ba4ad5560
7
.github/workflows/automated-tests.yml
vendored
7
.github/workflows/automated-tests.yml
vendored
@ -296,6 +296,10 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
echo "Stop any ongoing processes related to apt-get or dpkg that might be stuck"
|
echo "Stop any ongoing processes related to apt-get or dpkg that might be stuck"
|
||||||
# Use -q to suppress "no process found" messages
|
# Use -q to suppress "no process found" messages
|
||||||
|
# Kill any apt-get or dpkg processes that might be hanging
|
||||||
|
for process in apt-get dpkg; do
|
||||||
|
pkill -9 "$process" 2>/dev/null || true
|
||||||
|
done
|
||||||
killall -q apt-get || true
|
killall -q apt-get || true
|
||||||
killall -q dpkg || true
|
killall -q dpkg || true
|
||||||
|
|
||||||
@ -313,6 +317,9 @@ jobs:
|
|||||||
apt-get clean
|
apt-get clean
|
||||||
apt-get autoremove
|
apt-get autoremove
|
||||||
|
|
||||||
|
echo "Identify if there is some process still locking"
|
||||||
|
ps aux | grep -E 'dpkg|apt'
|
||||||
|
|
||||||
RETRY_COUNT=$((RETRY_COUNT + 1))
|
RETRY_COUNT=$((RETRY_COUNT + 1))
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user