Problem installing kernel from backports

30 views
Skip to first unread message

Jochen Häberle

unread,
Feb 24, 2015, 7:34:22 AM2/24/15
to puppet...@googlegroups.com
Hi,

I am having problems installing a kernel from backports on Debian Wheezy with Puppet 3.7.4

I am using puppetlabs/apt to manage Debian repositories and have the following code for my note

notice("getting kernel from backports...")
apt::force { 'linux-image-amd64':
release => 'wheezy-backports',
cfg_files => 'unchanged',
cfg_missing => true,
require => Apt::Source['Debian_Backports'],
} ->
package { 'linux-image-amd64':
ensure => 'latest',
}

The notice is reached, but the kernel-package is not touched and stays at the main Debian version

The Apt repositoriy is declared elsewhere as

apt::source { 'Debian_Backports':
comment => 'This is the Debian Backports mirror',
location => 'http://ftp.de.debian.org/debian',
release => 'wheezy-backports',
repos => 'main contrib non-free',
pin => '200',
include_src => false,
include_deb => true,
}

The source file is present and apt-show-versions gives me the kernel from backports I want to get. apt-get update is executed.

I do not see the problem. Could anypne pls help me out???

Thanks in advance

Jochen

Felix Frank

unread,
Mar 1, 2015, 3:12:35 PM3/1/15
to puppet...@googlegroups.com
Hi,

running puppet with --debug will show you the check command that is run
to determine whether the package needs updating. It yields a zero exit
code apparently, so the 'unless' dependency is not hit.

https://github.com/puppetlabs/puppetlabs-apt/blob/0e3220711ba9ce05715c39c22771e34b81b41382/manifests/force.pp#L55

HTH,
Felix
Reply all
Reply to author
Forward
0 new messages