Ask Your Question

Revision history [back]

I had this problem, and searching for the solution yielded the fix here.

Ensure the name specified for the package resource matches the actual package name that dpkg sees.

From their example:

Incorrect Example

The package name used by dpkg is libapache2-mod-auth-openid. This will fail to match and install again.

package { 'mod_auth_openid':
    provider => dpkg,
    ensure   => present,
    source   => "/var/tmp/libapache2-mod-auth-openid_0.7-0.1_amd64",
}

Correct Example

The package name used by dpkg is libapache2-mod-auth-openid. This will succeed in matching and no additional install will be performed.

package { 'libapache2-mod-auth-openid':
    provider => dpkg,
    ensure   => present,
    source   => "/var/tmp/libapache2-mod-auth-openid_0.7-0.1_amd64",
}