Remove mirror selection

Some Debian mirrors have not been synced correctly, disable automatic mirror selection for now.
This commit is contained in:
Marco Ochse 2019-04-28 13:06:19 +02:00 committed by GitHub
parent d4b7cc15e9
commit 9ec1992929
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -277,21 +277,21 @@ function fuCHECKNET {
# Install T-Pot dependencies
function fuGET_DEPS {
export DEBIAN_FRONTEND=noninteractive
# Determine fastest mirror
echo
echo "### Determine fastest mirror for your location."
echo
netselect-apt -n -a amd64 unstable && cp sources.list /etc/apt/
mySOURCESCHECK=$(cat /etc/apt/sources.list | grep -c unstable)
if [ "$mySOURCESCHECK" == "0" ]
then
echo "### Automatic mirror selection failed, using main mirror."
# Point to Debian (Sid, unstable)
tee /etc/apt/sources.list <<EOF
deb http://deb.debian.org/debian unstable main contrib non-free
deb-src http://deb.debian.org/debian unstable main contrib non-free
# # Determine fastest mirror
# echo
# echo "### Determine fastest mirror for your location."
# echo
# netselect-apt -n -a amd64 unstable && cp sources.list /etc/apt/
# mySOURCESCHECK=$(cat /etc/apt/sources.list | grep -c unstable)
# if [ "$mySOURCESCHECK" == "0" ]
# then
# echo "### Automatic mirror selection failed, using main mirror."
# Point to Debian (Sid, unstable)
tee /etc/apt/sources.list <<EOF
deb http://deb.debian.org/debian unstable main contrib non-free
deb-src http://deb.debian.org/debian unstable main contrib non-free
EOF
fi
# fi
echo
echo "### Getting update information."
echo