From: delco225 Date: Fri, 23 Jan 2015 09:32:30 +0000 (+0100) Subject: bug: error when installing ceph dependencies with install-deps.sh X-Git-Tag: v0.93~195^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F3466%2Fhead;p=ceph.git 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 --- diff --git a/install-deps.sh b/install-deps.sh index 8bbfaaded9d..7eab02949b1 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