From 1384dec47c6e4d934530bc660edb29339818dd8a Mon Sep 17 00:00:00 2001 From: Botspot Date: Wed, 11 Aug 2021 12:37:45 -0500 Subject: [PATCH] pkg-install: check and warn for "configured multiple times in" --- pkg-install | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkg-install b/pkg-install index 5d311a5..d33216c 100755 --- a/pkg-install +++ b/pkg-install @@ -87,6 +87,20 @@ Please check your Internet connection and try again. -------------------------------------------------------------------------------- \e[39m" fi + if echo "$errors" | grep -q 'is configured multiple times in';then + echo -e "\e[93m +-------------------------------------------------------------------------------- +APT reported a double-configured repository, and you must fix it to fix Pi-Apps. + +To delete the repository: +Remove the relevant line from /etc/apt/sources.list file or delete the file in +the /etc/apt/sources.list.d folder. + +sources.list requires root permissions to edit: sudo mousepad /path/to/file +-------------------------------------------------------------------------------- +\e[39m" + fi + exit 1 fi