Update repositories before upgrading packages

This commit is contained in:
Jeremy Gardais 2020-07-18 16:28:34 +02:00
parent e74122fb21
commit 34db514091
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 4 additions and 0 deletions

View File

@ -276,6 +276,10 @@ upgrade_system() { # {{{
debug_message "upgrade_system \ debug_message "upgrade_system \
Try to apply APT upgrades". Try to apply APT upgrades".
## First update repositories to get all available upgrades
aptitude update >> "${APT_TMP_FILE}" 2>&1
## And apply full-upgrade
DEBIAN_FRONTEND=noninteractive aptitude -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold full-upgrade >> "${APT_TMP_FILE}" 2>&1 DEBIAN_FRONTEND=noninteractive aptitude -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold full-upgrade >> "${APT_TMP_FILE}" 2>&1
} }