On Thu, Aug 6, 2009 at 11:12 AM, Micah Anderson<mi...@debian.org> wrote:
> Package: lsb-release
> Version: 3.2-23
> Severity: important
>
> I'm running an up-to-date sid box, and when I run lsb_release -r it tells me:
>
> Codename:       lenny
>
> $ cat /etc/debian_version
> squeeze/sid
>
> It seems like lsb_release -r looks at my apt/sources.list and sees the first 
> line:
>
> deb http://debian.csail.mit.edu/debian stable main contrib non-free
>
> and decides that I am running a 'stable' machine, even though it is a
> perfectly reasonable configuration to have on a sid box (I need to
> occasionally install a packge from stable to do some testing). If I remove 
> this
> line, then the Codename shows 'sid'.
>
> There must be a better way to determine this than by picking up the
> lowest entry in sources.list?

I've had plenty of back-and-forths on this over the years (see the
archived bugs for src:lsb) and it is clear that no single "guessing"
algorithm makes everyone happy and there's (currently) no fast way to
figure out what release most of your packages are from.*  To
paraphrase an old saying, you run a hybrid sources.list, you takes
your chances.  And this is documented in lsb_release(1):

       Detection of systems using a mix of packages from various distributions
       or releases is something of a black art; the current heuristic tends to
       assume that the installation is of the earliest distribution  which  is
       still being used by apt but that heuristic is subject to error.

If it really bothers you, do something like echo
"DISTRIB_CODENAME=sid" >> /etc/lsb-release as root.


Chris

* Patch welcome.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to