From 1d0fc6630568bd6dab983a1705a8147b92fd91ba Mon Sep 17 00:00:00 2001 From: theofficialgman <28281419+theofficialgman@users.noreply.github.com> Date: Sat, 25 Nov 2023 11:06:38 -0500 Subject: [PATCH] api: add broken apt packages check to `is_supported_system` --- api | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api b/api index daf3e5fdaa..27f47812fa 100755 --- a/api +++ b/api @@ -2630,6 +2630,12 @@ All apt based application installs will fail. Unless you have a backup of your / Pi-Apps does NOT support systems without ALL of $__os_codename, $__os_codename-updates, and $__os_codename-security dists present in the sources.list Please refer to the default sources.list for Ubuntu and restore all required dists." return 1 + elif ! apt-get --dry-run check &>/dev/null ; then + echo "Congratulations, Linux tinkerer, you broke your system. There are packages on your system that are in a broken state. +Refer to the output below for any potential solutions. + +$(apt-get --dry-run check)" + return 1 elif [ "$(df -a / -B 1 --output=avail | tail -1 | tr -d ' ')" -lt $((500*1024*1024)) ];then echo "Your system drive has less than 500MB of free space. Watch out for "\""disk full"\"" errors." return 1