From 794cd5137ec50eade7f195782feda0dcd0ab3599 Mon Sep 17 00:00:00 2001 From: Botspot Date: Mon, 13 Sep 2021 16:49:34 -0500 Subject: [PATCH] pkg-install: add checks for broken ngix-full package & "Did not understand pin type" --- pkg-install | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkg-install b/pkg-install index 6b20f52..cb8cfc4 100755 --- a/pkg-install +++ b/pkg-install @@ -162,6 +162,19 @@ Google the errors above this message, or ask in the Raspberry Pi Forums. https://www.raspberrypi.org/forums" fi + #check for "dpkg: error processing package nginx-full (--configure):" + if echo "$errors" | grep -qF "error processing package nginx-full" ;then + message_to_user "This error was not caused by Pi-Apps, it is caused by your nginx-full package. + +Maybe reinstalling it would help? +sudo apt install --reinstall nginx-full" + fi + + #check for "W: Did not understand pin type releace" + if echo "$errors" | grep -qF "Did not understand pin type" ;then + message_to_user "This error was not caused by Pi-Apps. Looks like there is a typo in your /etc/apt/sources.list" + fi + #no need for this function to exit with return code 1 just because the last if statement evaluated to 1 exit 0 }