Skip to content

Commit

Permalink
add check for misconfigured source with 'stable' release
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot committed Oct 14, 2023
1 parent 715e105 commit 04e4db0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api
Original file line number Diff line number Diff line change
Expand Up @@ -1784,7 +1784,14 @@ Please run this command in a terminal: sudo apt update --allow-releaseinfo-chang
In any case, Pi-Apps cannot work until you solve this issue. Try disabling any 3rd-party APT repos first, and if that doesn't work then ask for help.")
error_type="system"
fi

if grep -qF "E: The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources" <<<"$errors" ;then
error_caption+=("APT encountered an issue reading a source file for a repository. Most likely, you were trying to change your sources and did not format the file correctly.
In any case, Pi-Apps cannot work until you solve this issue. Check around in the /etc/apt/sources.list file and the /etc/apt/sources.list.d folder for duplicate mentions of the word 'stable'.")
error_type="system"
fi

if grep -q "The following packages have unmet dependencies:" <<<"$errors" ;then
# we want these errors to come to pi-apps logs if the user sends them, so don't add an error type
# add additional output for the packages that have unmet dependencies
Expand Down

0 comments on commit 04e4db0

Please sign in to comment.