Update repositories before upgrading packages
This commit is contained in:
parent
e74122fb21
commit
34db514091
|
@ -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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue