Skip to content

Error when installing puppet-agent on Ubuntu #166

@hrpatel

Description

@hrpatel

apt-get update is not running before the module tries to install puppet-agent

...
((setup apt source))
Debug: Prefetching apt_key resources for apt_key
Debug: Executing '/usr/bin/apt-key adv --list-keys --with-colons --fingerprint --fixed-list-mode'
Notice: /Stage[main]/Puppet::Repo::Apt/Apt::Source[puppetlabs-pc1]/Apt::Setting[list-puppetlabs-pc1]/File[/etc/apt/sources.list.d/puppetlabs-pc1.list]/ensure: created
Debug: /Stage[main]/Puppet::Repo::Apt/Apt::Source[puppetlabs-pc1]/Apt::Setting[list-puppetlabs-pc1]/File[/etc/apt/sources.list.d/puppetlabs-pc1.list]: The container Apt::Setting[list-puppetlabs-pc1] will propagate my refresh event
Info: /Stage[main]/Puppet::Repo::Apt/Apt::Source[puppetlabs-pc1]/Apt::Setting[list-puppetlabs-pc1]/File[/etc/apt/sources.list.d/puppetlabs-pc1.list]: Scheduling refresh of Class[Apt::Update]
Debug: Apt::Setting[list-puppetlabs-pc1]: The container Apt::Source[puppetlabs-pc1] will propagate my refresh event
Debug: Apt::Source[puppetlabs-pc1]: The container Class[Puppet::Repo::Apt] will propagate my refresh event
((Try to install puppet-agent))
Debug: Executing '/usr/bin/dpkg-query -W --showformat '${Status} ${Package} ${Version}\n' puppet-agent'
Debug: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install puppet-agent'
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install puppet-agent' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package puppet-agent is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source...
...
((eventually run an apt-get update))
Info: Class[Apt::Update]: Scheduling refresh of Exec[apt_update]
Debug: Exec[apt_update](provider=posix): Executing '/usr/bin/apt-get update'
Debug: Executing '/usr/bin/apt-get update'
Notice: /Stage[main]/Apt::Update/Exec[apt_update]: Triggered 'refresh' from 1 events
Debug: /Stage[main]/Apt::Update/Exec[apt_update]: The container Class[Apt::Update] will propagate my refresh event
Debug: Class[Apt::Update]: The container Stage[main] will propagate my refresh event

I checked the apt module documentation examples, nothing stood out .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions