1b74ddc0c9
gates / gates (push) Successful in 33s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
14 lines
1.6 KiB
Bash
14 lines
1.6 KiB
Bash
export DEBIAN_FRONTEND=noninteractive LC_ALL=C
|
|
echo "=== a normal apt run on the half state:"; apt-get install -y -q curl 2>&1 | grep -E "^E:" | head -2
|
|
echo "=== containers still up? $(docker ps -q | wc -l) running"
|
|
s=$(date +%s.%N); dpkg --configure -a --force-confold > /root/repair1.log 2>&1; echo "dpkg --configure -a rc=$? seconds=$(awk -v a=$s -v b=$(date +%s.%N) 'BEGIN{printf "%.1f", b-a}')"
|
|
s=$(date +%s.%N); apt-get -f install -y -q -o Dpkg::Options::=--force-confold > /root/repair2.log 2>&1; echo "apt-get -f install rc=$? seconds=$(awk -v a=$s -v b=$(date +%s.%N) 'BEGIN{printf "%.1f", b-a}')"; grep -E "upgraded|^E:" /root/repair2.log | head -2
|
|
echo "=== audit after repair: '$(dpkg --audit 2>&1 | head -1)'"
|
|
pkgs=$(apt-get -s dist-upgrade | grep "^Inst " | grep -v "Docker CE" | awk '{print $2}' | tr "\n" " ")
|
|
echo "debian still pending after repair: $(echo $pkgs | wc -w)"
|
|
s=$(date +%s.%N); apt-get install -y -q --only-upgrade -o Dpkg::Options::=--force-confold -o Dpkg::Options::=--force-confdef $pkgs > /root/apt-rest.log 2>&1; echo "apply-rest rc=$? seconds=$(awk -v a=$s -v b=$(date +%s.%N) 'BEGIN{printf "%.1f", b-a}')"
|
|
echo "pending_debian_after=$(apt-get -s dist-upgrade | grep "^Inst " | grep -vc "Docker CE") audit='$(dpkg --audit 2>&1 | head -1)' non-ii=$(dpkg -l | awk 'NR>5 && $1!="ii"' | grep -vc '^rc\|ic ifupdown')"
|
|
echo "libc6 $(dpkg-query -W -f='${Version}' libc6)"
|
|
for c in felhom-controller paperless-webserver paperless-postgres paperless-redis filebrowser; do echo "$c $(docker inspect -f '{{.State.Status}} {{if .State.Health}}{{.State.Health.Status}}{{end}} started={{.State.StartedAt}}' $c)"; done
|
|
apt-get clean
|