From 454e52a61e846cf3b7effa99cd88ea95db29c684 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 13 Sep 2018 20:31:44 +0200 Subject: [PATCH] Install libtext-iconv-perl before dist-upgrade --- install_yunohost | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/install_yunohost b/install_yunohost index 4b87f81..0951e92 100755 --- a/install_yunohost +++ b/install_yunohost @@ -233,6 +233,15 @@ function upgrade_system() { apt_get_wrapper update \ || 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 \ || return 2 @@ -250,10 +259,7 @@ function upgrade_system() { function install_script_dependencies() { # dependencies of the install script itself - # We need libtext-iconv-perl because in some weird case, this errors pops up during the install - # 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" + local DEPENDENCIES2="lsb-release wget whiptail gnupg apt-transport-https" if [[ "$AUTOMODE" == "0" ]] ; then