Bug 359887 - Neon packages change DISTRIB_ID in /etc/lsb-release
Summary: Neon packages change DISTRIB_ID in /etc/lsb-release
Status: RESOLVED FIXED
Alias: None
Product: neon
Classification: KDE Neon
Component: general (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Jonathan Riddell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-28 12:00 UTC by Laurent Bonnaud
Modified: 2016-05-28 13:04 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Bonnaud 2016-02-28 12:00:02 UTC
Hi,

I installed KDE neon packages and now the /etc/lsb-release file on my system contains:

DISTRIB_ID=KDE neon
DISTRIB_RELEASE=15.10
DISTRIB_CODENAME=wily
DISTRIB_DESCRIPTION="KDE neon on 15.10"

This is a problem because it breaks at least update-apt-xapian-index :

# update-apt-xapian-index 
ERROR:root:DebFileApplication import
Traceback (most recent call last):
  File "/usr/share/software-center/softwarecenter/db/__init__.py", line 4, in <module>
    from debfile import DebFileApplication, DebFileOpenError
  File "/usr/share/software-center/softwarecenter/db/debfile.py", line 25, in <module>
    from softwarecenter.db.application import Application, AppDetails
  File "/usr/share/software-center/softwarecenter/db/application.py", line 28, in <module>
    import softwarecenter.distro
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 199, in <module>
    distro_instance = _get_distro()
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 174, in _get_distro
    module = __import__(distro_module_name, globals(), locals(), [], -1)
ImportError: No module named kde neon
Traceback (most recent call last):
  File "/usr/sbin/update-apt-xapian-index", line 102, in <module>
    if not indexer.setupIndexing(force=opts.force, system=opts.pkgfile is None):
  File "/usr/lib/python2.7/dist-packages/axi/indexer.py", line 471, in setupIndexing
    self.plugins = Plugins(progress=self.progress, system=system)
  File "/usr/lib/python2.7/dist-packages/axi/indexer.py", line 94, in __init__
    addon = Addon(fullname, **kw)
  File "/usr/lib/python2.7/dist-packages/axi/indexer.py", line 49, in __init__
    self.module = imp.load_source("axi.plugin_" + self.name, fname)
  File "/usr/share/apt-xapian-index/plugins/software_center.py", line 13, in <module>
    from softwarecenter.db.update import (
  File "/usr/share/software-center/softwarecenter/db/update.py", line 33, in <module>
    from softwarecenter.backend.scagent import SoftwareCenterAgent
  File "/usr/share/software-center/softwarecenter/backend/scagent.py", line 28, in <module>
    from softwarecenter.distro import get_distro, get_current_arch
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 199, in <module>
    distro_instance = _get_distro()
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 174, in _get_distro
    module = __import__(distro_module_name, globals(), locals(), [], -1)
ImportError: No module named kde neon


Reproducible: Always
Comment 1 Francesco Chicchiriccò 2016-02-29 08:14:15 UTC
Just updated, have the same in /etc/lsb-release, no other problems found so far
Comment 2 Harald Sitter 2016-02-29 11:06:16 UTC
Discussed this on IRC.

The DISTRIB_ID needs to be changed to one word.
Comment 3 Laurent Bonnaud 2016-02-29 14:10:41 UTC
In fact I do not think it is desirable to change DISTRIB_ID at all, since I usually have several DE installed on the same system and do not want DE to compete to change DISTRIB_ID.
Comment 4 Harald Sitter 2016-02-29 14:17:14 UTC
Neon supports only one desktop.
Comment 5 Laurent Bonnaud 2016-02-29 14:22:21 UTC
On 29/02/2016 15:17, Harald Sitter via KDE Bugzilla wrote:

> Neon supports only one desktop.

This is unfortunate since I am currently using MATE while I am waiting for the most serious Qt5/KF5/Plasma/KDE bugs to be fixed.

Besides, I administer systems for students and we like to offer them a choice of DE.
Comment 6 apache 2016-03-14 09:39:00 UTC
I have inconsistent release info
http://i.imgur.com/OYnv4gA.png
Comment 7 Jonathan Riddell 2016-03-14 09:44:27 UTC
If you have kubuntu-settings-desktop installed then it'll show that.  remove --purge it if you don't want it to.
Comment 8 Laurent Bonnaud 2016-04-15 07:09:36 UTC
Here is another side effect of neon packages messing with /etc/lsb-release:

Unpacking base-files (9.4ubuntu4) over (9.4ubuntu3+p16.04+git20160414.1434) ...
Processing triggers for plymouth-theme-kubuntu-text (1:16.04ubuntu2) ...
dpkg: warning: version '/etc/lsb-release' has bad syntax: version number does not start with digit
update-initramfs: deferring update (trigger activated)
Processing triggers for plymouth-theme-ubuntu-gnome-text (16.04.4) ...
dpkg: warning: version '/etc/lsb-release' has bad syntax: version number does not start with digit
Comment 9 Francesco Chicchiriccò 2016-04-15 07:14:52 UTC
(In reply to Laurent Bonnaud from comment #8)
> Here is another side effect of neon packages messing with /etc/lsb-release:
> 
> Unpacking base-files (9.4ubuntu4) over (9.4ubuntu3+p16.04+git20160414.1434)
> ...
> Processing triggers for plymouth-theme-kubuntu-text (1:16.04ubuntu2) ...
> dpkg: warning: version '/etc/lsb-release' has bad syntax: version number
> does not start with digit
> update-initramfs: deferring update (trigger activated)
> Processing triggers for plymouth-theme-ubuntu-gnome-text (16.04.4) ...
> dpkg: warning: version '/etc/lsb-release' has bad syntax: version number
> does not start with digit

Yep, I had the same trouble: had to manually set it via

echo 9.4 > /etc/postgresql-common/supported_versions
Comment 10 Harald Sitter 2016-05-28 13:04:02 UTC
we fixed sotware-properties. postgres should be fixed to not use lsb-release but os-release and use it's like_id field to establish whether or not a system is derived from ubuntu or not.