The parsing is sensitive to i18n and will fail if, for instance, it is set to French.
Workaround the problem by always setting the language to C so the script
can safely assume all output will be in english.
http://tracker.ceph.comm/issues/10596 Fixes: #10596
Signed-off-by: Ahoussi Armand <ahoussi.say@telecom-bretagne.eu>
DIR=/tmp/install-deps.$$
trap "rm -fr $DIR" EXIT
mkdir -p $DIR
-
if test $(id -u) != 0 ; then
SUDO=sudo
fi
-
+export LC_ALL=C# the following is vulnerable to i18n
case $(lsb_release -si) in
Ubuntu|Debian|Devuan)
$SUDO apt-get install -y dpkg-dev