lsbdistcodename and Debian Squeeze

996 views
Skip to first unread message

FRLinux

unread,
Mar 3, 2011, 6:55:45 AM3/3/11
to puppet...@googlegroups.com
Hello all,

I use puppetmaster on a Debian Squeeze server (packaged from Debian 2.6.2-4)

I am using a template for Debian Servers which works great for Lenny
in order to update my sources.list automagically, here goes:

deb http://ftp.ie.debian.org/debian <%= lsbdistcodename %> main contrib non-free
deb http://security.debian.org/ <%= lsbdistcodename %>/updates main

Now the problem is that for squeeze, it does not work as
lsbdistcodename gets n/a instead, is there any way to fix this?

architecture => amd64
facterversion => 1.5.7
hardwareisa => unknown
hardwaremodel => x86_64
id => root
is_virtual => true
kernel => Linux
kernelmajversion => 2.6
kernelrelease => 2.6.26-2-amd64
kernelversion => 2.6.26
lsbdistcodename => n/a
lsbdistdescription => Debian GNU/Linux 6.0 (n/a)
lsbdistid => Debian
lsbdistrelease => 6.0
lsbmajdistrelease => 6

Cheers,
Steph

Nan Liu

unread,
Mar 3, 2011, 12:44:18 PM3/3/11
to puppet...@googlegroups.com, FRLinux

If you run the command lsb_release on squeeze does it provide this
information? Looking at facter it's simply matching for the following
pattern (see lib/facter/lsb.rb):

"LSBDistCodeName" => %r{^Codename:\t(.*)$

Thanks,

Nan

Daniel Piddock

unread,
Mar 3, 2011, 1:41:36 PM3/3/11
to puppet...@googlegroups.com
On 03/03/11 11:55, FRLinux wrote:
> Hello all,
>
> I use puppetmaster on a Debian Squeeze server (packaged from Debian 2.6.2-4)
>
> I am using a template for Debian Servers which works great for Lenny
> in order to update my sources.list automagically, here goes:
>
> deb http://ftp.ie.debian.org/debian <%= lsbdistcodename %> main contrib non-free
> deb http://security.debian.org/ <%= lsbdistcodename %>/updates main
>
> Now the problem is that for squeeze, it does not work as
> lsbdistcodename gets n/a instead, is there any way to fix this?

Update your lsb-release package to at least version 3.2-23.2squeeze1.

Debian managed to almost release Squeeze with an lsb-release without
code for converting the version number 6.0 to the codename.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609325

HTH

Dan

FRLinux

unread,
Mar 3, 2011, 4:09:09 PM3/3/11
to puppet...@googlegroups.com, Daniel Piddock
On Thu, Mar 3, 2011 at 6:41 PM, Daniel Piddock
<dgp-...@corefiling.co.uk> wrote:
> Update your lsb-release package to at least version 3.2-23.2squeeze1.

That was it, turns out the upgrade hadn't finished properly hence left
a few packages pending updates.

Thanks for the reply and sorry for the noise.

Cheers,
Steph

Reply all
Reply to author
Forward
0 new messages