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