Bug#920800: marked as done (ValueError: could not convert string to float: '6.06 LTS')

"Debian Bug Tracking System" <[email protected]> Fri, 01 Feb 2019 14:36:03 +0000
Newsgroups gmane.linux.debian.devel.lsb
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1549031763-25452-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your message dated Fri, 01 Feb 2019 15:32:32 +0100
with message-id <[email protected]>
and subject line Re: Bug#920800: ValueError: could not convert string to fl=
oat: '6.06 LTS'
has caused the Debian Bug report #920800,
regarding ValueError: could not convert string to float: '6.06 LTS'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


--=20
920800: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D920800
Debian Bug Tracking System
Contact [email protected] with problems

------------=_1549031763-25452-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.debian.org; 29 Jan 2019 10:22:04 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02
	(2018-09-13) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-11.9 required=4.0 tests=BAYES_00,FOURLA,HAS_PACKAGE,
	SPF_PASS,XMAILER_REPORTBUG autolearn=ham autolearn_force=no
	version=3.4.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 25; hammy, 150; neutral, 116; spammy,
	0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--H*M:reportbug,
	0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug,
	0.000-+--H*UA:reportbug
Return-path: <[email protected]>
Received: from malenstwo.juszkiewicz.com.pl ([2001:41d0:a:231e::1])
	by buxtehude.debian.org with esmtp (Exim 4.89)
	(envelope-from <[email protected]>)
	id 1goQWq-0007lP-LZ
	for [email protected]; Tue, 29 Jan 2019 10:22:04 +0000
Received: by malenstwo.juszkiewicz.com.pl (Postfix, from userid 1000)
	id DA8ECC0658; Tue, 29 Jan 2019 10:06:38 +0100 (CET)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Marcin Juszkiewicz <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: ValueError: could not convert string to float: '6.06 LTS'
Message-ID: <154875279870.9848.262971604091211557.reportbug@malenstwo>
X-Mailer: reportbug 7.5.1
Date: Tue, 29 Jan 2019 10:06:38 +0100
X-Greylist: delayed 3500 seconds by postgrey-1.36 at buxtehude; Tue, 29 Jan 2019 10:22:04 UTC
Delivered-To: [email protected]

Package: lsb-release
Version: 10.2018112800
Severity: normal

Dear Maintainer,

* What led up to the situation?

At first this system was Ubuntu 13.04, then 13.10, 14.04 and 16.04
version. Yesterday I upgraded it to Debian 10 with just APT/Aptitude.

* What exactly did you do (or not do) that was effective (or ineffective)?

$ lsb_release -a

* What was the outcome of this action?

Traceback (most recent call last):
  File "/usr/bin/lsb_release", line 95, in <module>
    main()
  File "/usr/bin/lsb_release", line 59, in main
    distinfo = lsb_release.get_distro_information()
  File "/usr/lib/python3/dist-packages/lsb_release.py", line 356, in get_distro_information
    distinfo = guess_debian_release()
  File "/usr/lib/python3/dist-packages/lsb_release.py", line 246, in guess_debian_release
    get_distro_info(distinfo['ID'])
  File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in get_distro_info
    RELEASES_ORDER.sort(key=lambda n: float(n[0]))
  File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in <lambda>
    RELEASES_ORDER.sort(key=lambda n: float(n[0]))
ValueError: could not convert string to float: '6.06 LTS'

* What outcome did you expect instead?

Some sensible output.


-- Package-specific info:
lsb_release output
-*- -*- -*- -*- -*-
-*- -*- -*- -*- -*-
    Apt policy
-*- -*- -*- -*- -*-
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 https://deb.debian.org/debian buster/main i386 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=main,b=i386
     origin deb.debian.org
 500 https://deb.debian.org/debian buster/main amd64 Packages
     release o=Debian,a=testing,n=buster,l=Debian,c=main,b=amd64
     origin deb.debian.org
Pinned packages:
-*- -*- -*- -*- -*-
   sources.list
-*- -*- -*- -*- -*-
-*- -*- -*- -*- -*-
 /etc/lsb_release
-*- -*- -*- -*- -*-
- none

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8), LANGUAGE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lsb-release depends on:
ii  distro-info-data  0.39
ii  python3           3.7.2-1

Versions of packages lsb-release recommends:
ii  apt  1.8.0~beta1

Versions of packages lsb-release suggests:
pn  lsb  <none>

-- debconf-show failed

------------=_1549031763-25452-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 920800-done) by bugs.debian.org; 1 Feb 2019 14:32:37 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02
	(2018-09-13) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-15.0 required=4.0 tests=BAYES_00,FROMDEVELOPER,
	HAS_BUG_NUMBER,RCVD_IN_DNSWL_NONE,TXREP autolearn=ham
	autolearn_force=no version=3.4.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 23; hammy, 149; neutral, 63; spammy,
	1. spammytokens:0.999-1--H*Ad:D*com.pl hammytokens:0.000-+--python3,
	0.000-+--H*o:Debian, 0.000-+--OdyX, 0.000-+--H*F:U*odyx,
	0.000-+--H*r:[email protected]
Return-path: <[email protected]>
Received: from vm13.vps.bs.oriented.ch ([185.15.229.233])
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.89)
	(envelope-from <[email protected]>)
	id 1gpZrx-00068d-6O
	for [email protected]; Fri, 01 Feb 2019 14:32:37 +0000
Received: from gyllingar.localnet (unknown [194.230.155.147])
	by vm13.vps.bs.oriented.ch (Postfix) with ESMTPSA id 7AF79B202B9;
	Fri,  1 Feb 2019 15:32:34 +0100 (CET)
From: Didier 'OdyX' Raboud <[email protected]>
To: Marcin Juszkiewicz <[email protected]>, [email protected]
Subject: Re: Bug#920800: ValueError: could not convert string to float: '6.06 LTS'
Date: Fri, 01 Feb 2019 15:32:32 +0100
Message-ID: <[email protected]>
Organization: Debian - The Universal OS
In-Reply-To: <154875279870.9848.262971604091211557.reportbug@malenstwo>
References: <154875279870.9848.262971604091211557.reportbug@malenstwo>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"

Control: tags -1 +help +wontfix
Control: severity -1 wishlist

Hi there Marcin,

Le mardi, 29 janvier 2019, 10.06:38 h CET Marcin Juszkiewicz a =C3=A9crit :
> At first this system was Ubuntu 13.04, then 13.10, 14.04 and 16.04
> version. Yesterday I upgraded it to Debian 10 with just APT/Aptitude.

This is a _totally_ unsupported upgrade procedure :-) The only thing Debian=
=20
supports is either clean setups or upgrades from the previous _Debian_ stab=
le.=20
(Even upgrades skipping a Debian stable release are not supported.)

> $ lsb_release -a
>=20
> Traceback (most recent call last):
>   File "/usr/bin/lsb_release", line 95, in <module>
>     main()
>   File "/usr/bin/lsb_release", line 59, in main
>     distinfo =3D lsb_release.get_distro_information()
>   File "/usr/lib/python3/dist-packages/lsb_release.py", line 356, in
> get_distro_information distinfo =3D guess_debian_release()
>   File "/usr/lib/python3/dist-packages/lsb_release.py", line 246, in
> guess_debian_release get_distro_info(distinfo['ID'])
>   File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in
> get_distro_info RELEASES_ORDER.sort(key=3Dlambda n: float(n[0]))
>   File "/usr/lib/python3/dist-packages/lsb_release.py", line 48, in <lamb=
da>
> RELEASES_ORDER.sort(key=3Dlambda n: float(n[0]))
> ValueError: could not convert string to float: '6.06 LTS'

This seems to indicate you have upgraded to 16.06 in the mean time, have yo=
u=20
not?

I guess you should be able to get out of this situation by deleting
/etc/lsb-release (see https://bugs.debian.org/914287).

Sorry, but I'm not going to add code to support such upgrade paths in LSB;=
=20
closing and tagging accordingly.

Cheers,
    OdyX
------------=_1549031763-25452-0--