diff --git a/ci/travis/test.sh b/ci/travis/test.sh
index 25e05bd48cd516aa5028015cb12d1db915e956b9..2ef4409d195aeceeaf55fceaf6a4846d1ec71ab5 100755
--- a/ci/travis/test.sh
+++ b/ci/travis/test.sh
@@ -6,7 +6,7 @@ if [ $TRAVIS_OS_NAME == "linux" ]
 then
     export XVFBARGS="-screen 0 1280x1024x24"
     export DISPLAY=:99.0
-    sh -e /etc/init.d/xvfb restart
+    sudo sh -e /etc/init.d/xvfb restart
     sleep 3
 fi