这到底是怎么回事puppet我的Ubuntu节点上?它似乎要求su安装东西的权限,我不知道它为什么这样做。
我该怎么做才能让它发挥作用?
jay@scooter:~$ puppetd --test --server rizzo
info: Caching catalog for scooter
info: Applying configuration version '1331938939'
err: /Stage[main]//Node[scooter]/Package[apache2]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install apache2' returned 100: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Run Code Online (Sandbox Code Playgroud)
wom*_*ble 12
因为您不是以 root 身份运行 Puppet,并且您需要 root 权限才能通过 apt 安装软件包。如果您不希望它安装软件包,则不要告诉它,如果您确实希望它安装软件包,请以 root 身份运行它。此外,它并没有试图通过suor运行任何东西sudo,它只是以通常的方式失败了,你会得到任何没有所需文件权限的东西。
| 归档时间: |
|
| 查看次数: |
754 次 |
| 最近记录: |