我正在使用 Puppet Lab 的Apache 模块用于安装和配置 apache。我使用的是 Debian 7 (wheezy),下面是我在 puppet-master 中使用的清单文件site.pp
。我正在执行 puppet 客户端puppet apply --test
来安装 apache。但我遇到了错误。
node 'debian.yaalie.com' {
class {'apache': }
apache::vhost { 'debian.yaalie.com':
port => '80',
docroot => '/var/www/'
}
}
错误:
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install apache2' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
apache2-mpm-worker apache2-utils apache2.2-common
Suggested packages:
apache2-doc apache2-suexec apache2-suexec-custom
The following NEW packages will be installed:
apache2 apache2-mpm-worker apache2-utils apache2.2-common
0 upgraded, 4 newly installed, 0 to remove and 53 not upgraded.
Need to get 459 kB of archives.
After this operation, 933 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
apache2-utils apache2.2-common apache2-mpm-worker apache2
E: There are problems and -y was used without --force-yes
实际上,错误是因为我有多个依赖文件没有自动安装。如何解决这个问题。
任何帮助都将不胜感激。
答案1
这与 Puppet 或依赖项无关。
问题在于您的系统似乎缺少用于验证包签名的密钥。
您应该修复该问题。
apt-get install debian-keyring
apt-get install debian-archive-keyring
apt-get update
可能会解决这个问题。
如果没有,请阅读https://wiki.debian.org/SecureApt