Ask Your Question

Why does Puppet always try to reinstall some packages?

asked 2014-01-16 10:48:13 -0600

robrwo gravatar image

We're running Puppet Enterprise on Debian Wheezy servers.

Every time we run Puppet, it claims it is changing the ensure attribute of a few packages from "purged" to "installed" on all of the servers:

Notice: /Stage[main]/Devtools::Packages/Package[libjpeg62-dev]/ensure: ensure changed 'purged' to 'present'

As far as I can tell, there is nothing uninstalling these packages. And the apt utility says the packages are installed.

I'd ignore this error, but then the corresponding files show up as changed in auditd logs, so it's annoying.

Any idea why Puppet thinks it has to keep installing these packages?

edit retag flag offensive close merge delete


I've noticed after checking apt that it wants a package to be upgraded. Could this be the cause?

robrwo gravatar imagerobrwo ( 2014-01-16 11:57:07 -0600 )edit

Try doing a a manual puppet run with --debug and --verbose

spuder gravatar imagespuder ( 2014-01-17 00:12:59 -0600 )edit

Debug says it runs: ``` Debug: Executing '["/usr/bin/dpkg-query", "-W", "--showformat", "'${Status} ${Package} ${Version} :DESC: ${Description}\\n:DESC:\\n'", "libjpeg62-dev"]' ``` which says that it's been installed, as it does ...(more)

robrwo gravatar imagerobrwo ( 2014-01-17 03:04:48 -0600 )edit

don't close questions, just mark the correct answer.

ramindk gravatar imageramindk ( 2014-01-17 11:52:29 -0600 )edit

@ramindk Do you have an alternative answer that requires it to be reopened?

robrwo gravatar imagerobrwo ( 2014-01-20 04:49:15 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-01-17 03:23:15 -0600

robrwo gravatar image

I think I understand the problem. Two packages were in conflict, so whenever I installed libjpeg62-dev, it would remove libtiff4-dev. The next time Puppet runs, it sees libtiff4-dev needs to be installed. But installing it removes libjpeg62-dev.

edit flag offensive delete link more


To diagnose this, run puppet repeatedly and notice that different packages are installed at different times.

robrwo gravatar imagerobrwo ( 2014-01-22 05:55:21 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-01-16 10:48:13 -0600

Seen: 681 times

Last updated: Jan 17 '14