From fc217e4aecd8b30c3b0d7f82af1f9cd5a94331c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu> Date: Wed, 8 Feb 2017 16:47:52 +0100 Subject: [PATCH] Update before changing sources.list. --- 3.New_server_deployment/3.Initialize_APT/0_setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/3.New_server_deployment/3.Initialize_APT/0_setup.sh b/3.New_server_deployment/3.Initialize_APT/0_setup.sh index e4f6d5e0..d6367d11 100755 --- a/3.New_server_deployment/3.Initialize_APT/0_setup.sh +++ b/3.New_server_deployment/3.Initialize_APT/0_setup.sh @@ -23,6 +23,8 @@ fi # migrate to Ubuntu 16.04 / apply sources.list if ( rgrep '14.04' /etc/lsb-release >/dev/null ); then echo "Upgrading to Ubuntu 16.04." + apt-get update + apt-get dist-upgrade -y cp sources16.list /etc/apt/sources.list apt-get update DEBIAN_FRONTEND=noninteractive /usr/bin/apt-get dist-upgrade -o Dpkg::Options::="--force-confold" --force-yes -y -- GitLab