From 3347e0daecb95a89d2475db3f4734688beef24f1 Mon Sep 17 00:00:00 2001 From: delco225 Date: Fri, 23 Jan 2015 10:32:30 +0100 Subject: [PATCH] bug: error when installing ceph dependencies with install-deps.sh 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 --- install-deps.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install-deps.sh b/install-deps.sh index 8bbfaaded9da6..7eab02949b1a9 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -14,11 +14,10 @@ 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 -- 2.39.5