Install libtext-iconv-perl before dist-upgrade

This commit is contained in:
Alexandre Aubin 2018-09-13 20:31:44 +02:00
parent 34ee03e5ac
commit 454e52a61e

View file

@ -233,6 +233,15 @@ function upgrade_system() {
apt_get_wrapper update \ apt_get_wrapper update \
|| return 1 || return 1
# We need libtext-iconv-perl even before the dist-upgrade,
# otherwise the dist-upgrade might fails on some setups because
# perl is yolomacnuggets :|
# Stuff like "Can't locate object method "new" via package "Text::Iconv""
apt_get_wrapper -o Dpkg::Options::="--force-confold" \
-y --force-yes install \
libtext-iconv-perl \
|| return 1
apt_get_wrapper -y dist-upgrade \ apt_get_wrapper -y dist-upgrade \
|| return 2 || return 2
@ -250,10 +259,7 @@ function upgrade_system() {
function install_script_dependencies() { function install_script_dependencies() {
# dependencies of the install script itself # dependencies of the install script itself
# We need libtext-iconv-perl because in some weird case, this errors pops up during the install local DEPENDENCIES2="lsb-release wget whiptail gnupg apt-transport-https"
# of some packages ... :|
# Can't locate object method "new" via package "Text::Iconv"
local DEPENDENCIES="lsb-release wget whiptail gnupg apt-transport-https libtext-iconv-perl"
if [[ "$AUTOMODE" == "0" ]] ; if [[ "$AUTOMODE" == "0" ]] ;
then then