我使用puppet实验室的apache模块来安装和configurationapache。 我使用的是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
其实这个错误是因为我有多个依赖文件没有自动安装。 如何解决这个问题。
任何帮助,将不胜感激。
这与Puppet或依赖关系无关。
问题是,看来你的系统缺less密钥来validation包签名。
你应该解决这个问题。
apt-get install debian-keyring apt-get install debian-archive-keyring apt-get update
可以解决这个问题。
如果没有,请阅读https://wiki.debian.org/SecureApt