Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to install agent before adding to sources #3

Open
freedenizen opened this issue May 28, 2014 · 1 comment
Open

Trying to install agent before adding to sources #3

freedenizen opened this issue May 28, 2014 · 1 comment

Comments

@freedenizen
Copy link

This may just be a problem with puppet >=3.6 but it appears that it is trying to do an apt-get before adding the repo to sources.
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install zabbix-agent' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package zabbix-agent
Error: /Stage[main]/Zabbix::Agent::Install/Package[zabbix-agent]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install zabbix-agent' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package zabbix-agent
Notice: /Stage[main]/Zabbix/Apt::Source[zabbix]/File[zabbix.list]: Dependency Package[zabbix-agent] has failures: true
Warning: /Stage[main]/Zabbix/Apt::Source[zabbix]/File[zabbix.list]: Skipping because of failed dependencies
Notice: /Stage[main]/Apt::Update/Exec[apt_update]: Dependency Package[zabbix-agent] has failures: true
Warning: /Stage[main]/Apt::Update/Exec[apt_update]: Skipping because of failed dependencies
Notice: /Stage[main]/Zabbix/Apt::Source[zabbix]/Anchor[apt::source::zabbix]: Dependency Package[zabbix-agent] has failures: true
Warning: /Stage[main]/Zabbix/Apt::Source[zabbix]/Anchor[apt::source::zabbix]: Skipping because of failed dependencies
Notice: /Stage[main]/Zabbix::Agent::Config/File[/var/log/zabbix-agent]: Dependency Package[zabbix-agent] has failures: true
Warning: /Stage[main]/Zabbix::Agent::Config/File[/var/log/zabbix-agent]: Skipping because of failed dependencies
...

@alkivi-sas
Copy link
Collaborator

Hello,

It seems that apt-get install is trigger before the apt::source trigger reload ...
I added an extra condition to change that. Maybe that will do trick. Could you also try to upgrade apt module ?

Thanks for the feedback anyway :)

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant