Add/Fix Synchronising package index files with debian repositories.

This commit is contained in:
Christoph 2017-10-22 15:10:18 +02:00
parent 96e1935bc9
commit 25fc6d3b7a
5 changed files with 47 additions and 1 deletions

View File

@ -731,6 +731,18 @@ tmp_err_msg=$(mktemp)
echo
echo -e "\033[37m\033[1mSome pre-installation tasks..\033[m"
echo
# - Synchronise package index files with the repository
# -
echononl " Synchronise package index files with the repository.."
apt-get update > "$tmp_err_msg" 2>&1
if [[ $? -eq 0 ]] ; then
echo_ok
else
echo_failed
error "$(cat $tmp_err_msg)"
fi
# - Install Prerequisites from debian package system
# -
echononl " Install prerequisites from debian package system"

View File

@ -356,7 +356,7 @@ fi
# - Synchronise package index files with the repository
# -
echononl " Synchronise package index files with the repository.."
apt-get update > error "$tmp_err_msg" 2>&1
apt-get update > "$tmp_err_msg" 2>&1
if [[ $? -eq 0 ]] ; then
echo_ok
else

View File

@ -364,6 +364,17 @@ fi
[[ "$IPV6" = "disabled" ]] && IPV6=""
# - Synchronise package index files with the repository
# -
echononl " Synchronise package index files with the repository.."
apt-get update > /dev/null 2>&1
if [[ $? -eq 0 ]] ; then
echo_ok
else
echo_failed
fi
# - Deinstall debian exim4 packages
# -
echononl " Deinstall debian exim4 packages"

View File

@ -558,6 +558,17 @@ else
fi
fi
# - Synchronise package index files with the repository
# -
echononl "\tSynchronise package index files with the repository.."
apt-get update > "$log_file" 2>&1
if [[ $? -eq 0 ]] ; then
echo_ok
else
echo_failed
error "$(cat $log_file)"
fi
echononl "\tInstall needed debian packages.."
needed_packages=""
_needed_packages="

View File

@ -1685,6 +1685,18 @@ fi
echo -e "\n\n\t\033[37m\033[1mEnable Spellcheccking..\033[m\n"
# - Synchronise package index files with the repository
# -
echononl " Synchronise package index files with the repository.."
apt-get update > "$log_file" 2>&1
if [[ $? -eq 0 ]] ; then
echo_ok
else
echo_failed
error "$(cat $log_file)"
fi
echononl "\tInstall needed debian packages.."
needed_packages_spell=""
_needed_packages_spell="