Travis-CI:" sudo:必须是setuid root"

时间:2014-10-12 16:15:33

标签: php laravel travis-ci

我是Travis-CI的新手,我正在尝试建立一个Laravel PHP项目。当我用sudo运行第一个命令时,我总是得到类似下面的内容:

Using worker: worker-linux-docker-caad8021.prod.travis-ci.com:travis-linux-11


Installing an SSH key from: default repository key
Key fingerprint: a8:40:9f:12:b2:b1:b0:a9:55:9e:e1:e7:9e:e7:6f:52

1.07s$ git clone --depth=50 --branch=view git@github.com:user/repo.git user/repo
$ cd user/repo
$ git checkout -qf 014a2be255b475550e7c52f6e04d70f84d82f3e2
stop: Unknown instance: 

Sudo, the FireFox addon, setuid and setgid have been disabled.


Setting environment variables from .travis.yml
$ export DB=mysql

0.03s$ phpenv global 5.4
0.09s$ php --version
PHP 5.4.33 (cli) (built: Sep 28 2014 15:57:23) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
0.12s$ composer --version
Composer version 31eadc6920cd1866bc061fb0087798c37e2b7d14 2014-09-25 17:49:51
0.01s$ sudo apt-get update
sudo: must be setuid root

The command "sudo apt-get update" failed and exited with 1 during .

Your build has been stopped.

1 个答案:

答案 0 :(得分:2)

我在Stack Overflow的另一个主题中找到了答案。这是出于安全原因,很快就会修复。


  

由于LXC / Docker层中的某些安全问题,目前无法允许在我们的基于Docker的架构上运行构建sudo访问。我们希望在不久的将来能够解决这个问题,但遗憾的是这个问题不在我们手中。

有关详情,请点击here