gnome-system-monitor is showing Ubuntu as the distro name

Bug #742038 reported by Eduard Gotwig
36
This bug affects 8 people
Affects Status Importance Assigned to Milestone
elementary OS
Fix Released
Low
Ivo Nunes
0.1-jupiter
Won't Fix
Undecided
Unassigned
0.2-luna
Fix Released
Low
Ivo Nunes

Bug Description

gnome-system-monitor is showing Ubuntu as the distro name. First tab.
This has to do with LSB in eOS.

With the FIX explained here I also try to make Luna ready for upgrading to higher releases in future.

EDIT: I have the files to fix that bug attached at the end of this site

Warning: Hostname fix does not work for now

paths:

/usr/share/software-center/softwarecenter/distro/elementary.py

/usr/share/python-apt/templates/elementary.info

/etc/lsb-release

/etc/issue

/etc/issue.net

/etc/hostname

/usr/share/update-manager/DistUpgrade.cfg

(after installation of Luna)
/etc/apt/sources.list

Tags: branding
Eduard Gotwig (gotwig)
description: updated
Revision history for this message
Avi Romanoff (aroman) wrote :

Says elementary right above it, in equally large letters. Not on track for Jupiter, but should be considered for J+1.

Revision history for this message
Dillon King (dillontking) wrote :

On my system, it only says Ubuntu and 10.10 (maverick). Above that, underlined, is the computer's hostname. Perhaps you had 'elementary' set as your hostname?

As an aside, I wonder if the decision to leave the Ubuntu branding in a few areas was intentional? It is present also in the Update Manager and Software Center.

Avi Romanoff (aroman)
Changed in elementaryos:
status: New → Incomplete
status: Incomplete → Confirmed
importance: Undecided → Low
milestone: none → j+1-alpha1
Revision history for this message
Erasmo Marín (erasmo-marin) wrote :

Also have this problem, it says ubuntu anywere.

Example: Check the file /etc/issue

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

It says "elementary" above that in equally large letters, and shows the kernel version below it. IMO it's a good place to learn about your system; if you mind the kernel version you'd also mind the version of the underlying Ubuntu, so I'd leave everything as it is.

tags: added: branding
Revision history for this message
Avi Romanoff (aroman) wrote : Re: [Bug 742038] Re: gnome-system-monitor is showing Ubuntu as the distro name

I believe it only says. "elementary" because that's the default hostname, which may of course be changed during the install. So I don't think leaving it as is is an acceptable solution.

Sent from my jailbroken iPod

On Jun 6, 2011, at 8:53 AM, "Sergey \"Shnatsel\" Davidoff" <email address hidden> wrote:

> It says "elementary" above that in equally large letters, and shows the
> kernel version below it. IMO it's a good place to learn about your
> system; if you mind the kernel version you'd also mind the version of
> the underlying Ubuntu, so I'd leave everything as it is.
>
> ** Tags added: branding
>
> --
> You received this bug notification because you are subscribed to
> elementary OS.
> https://bugs.launchpad.net/bugs/742038
>
> Title:
> gnome-system-monitor is showing Ubuntu as the distro name
>
> Status in elementary OS:
> Confirmed
>
> Bug description:
> gnome-system-monitor is showing Ubuntu as the distro name. First tab.
> This has to do with LSB in eOS.

Revision history for this message
Steffen Petersen (spet) wrote :

Both /etc/issue and /etc/lsb-release say ubuntu and not elementary. The files (from a clean Jupiter install) are attached.

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Steffen, thanks a lot for the files!

However, I still don't want to change these values because they provide backwards compatibility with Ubuntu. Many cross-distro things rely on those values for determining the distro, and changing these values probably will break them. For me, working apps are more important than 1 string showing ubuntu version next to kernel version.

Revision history for this message
Steffen Petersen (spet) wrote :

A wise choice, indeed.

Gnome System Monitor uses "lsb_release -irc" to retrieve the distribution information and hence omits the Description field. Perhaps the upstream project could include this field when displaying distribution info and Elementary set the description to "elementary OS"?

I'm not well versed in the LSB standard and do not know if the description field can be used this way, though.

Revision history for this message
Eduard Gotwig (gotwig) wrote :

just change the things in the file /etc/lsb-release is enough. Dont discuss so long about so a stupid (and easy to fix ) bug.

When you change the lsb-release you get problems with apt-get, becouse it wants a template file. Than you have to make a template file for it (put it in directory python-apt/templates) or something like that (search on your filesystem for the python-apt directory) - For that you can use the ubuntu template file as base

There will be other issues as well...

Eduard Gotwig (gotwig)
description: updated
description: updated
Revision history for this message
Eduard Gotwig (gotwig) wrote :
Revision history for this message
Eduard Gotwig (gotwig) wrote :
Revision history for this message
Eduard Gotwig (gotwig) wrote :
description: updated
Revision history for this message
Eduard Gotwig (gotwig) wrote :
Revision history for this message
Eduard Gotwig (gotwig) wrote :
Revision history for this message
Eduard Gotwig (gotwig) wrote :
description: updated
Eduard Gotwig (gotwig)
description: updated
Eduard Gotwig (gotwig)
description: updated
Eduard Gotwig (gotwig)
description: updated
Revision history for this message
Eduard Gotwig (gotwig) wrote :
Revision history for this message
Eduard Gotwig (gotwig) wrote :
Revision history for this message
Ivo Nunes (ivonunes) wrote :

instead of replacing sources.list after installing the system, maybe it would be better to have the codename set as oneiric in elementary.info

If it is set as luna, when you use add-apt-repository it will add an invalid repository.

Revision history for this message
Ivo Nunes (ivonunes) wrote :

I'm not completely sure about this tho, I'm just saying this based on previous experiences I had.

I may be wrong.

Revision history for this message
Ivo Nunes (ivonunes) wrote :

I've started packaging some of those fixes into a deb.

You can check them at https://code.launchpad.net/~netherblood/elementaryos/elementary-lsb

Revision history for this message
Eduard Gotwig (gotwig) wrote :

Hey, thanks for that ! hm, I think DistUpgrade.cfg is not included (?) and why there are only i386 builds, thats a bit old school :D Do you configured the source.list thing, that it does only change the file, when luna is installed? Thats important, and does it work for you, I would like to see a video or sth like that :D! I only have an intel pentium4 , so the performance is not that good, even for video recording.

Revision history for this message
Eduard Gotwig (gotwig) wrote :

and /etc/issue

/etc/issue.net

are also not included, just want to notify you :D

Revision history for this message
Ivo Nunes (ivonunes) wrote :

The builds work for i386 and amd64, since I defined it as "all" in the
architecture launchpad shows just i386 (yeah, it's annoying) but in reality
it's for both.

I've got a init script to change the sources.list and I'll add these missing
files soon.

I need to check if they belong to any package first because there can't be
two packages for the same file. If they do I must get all their files and
put them in the package, so that we can replace the package.

On Wed, Aug 10, 2011 at 9:58 AM, Eduard Gotwig <email address hidden>wrote:

> and /etc/issue
>
> /etc/issue.net
>
> are also not included, just want to notify you :D
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/742038
>
> Title:
> gnome-system-monitor is showing Ubuntu as the distro name
>
> Status in elementary OS:
> In Progress
> Status in elementary OS 0.1 series:
> Won't Fix
> Status in elementary OS 0.2 series:
> In Progress
>
> Bug description:
> gnome-system-monitor is showing Ubuntu as the distro name. First tab.
> This has to do with LSB in eOS.
>
> With the FIX explained here I also try to make Luna ready for
> upgrading to higher releases in future.
>
> EDIT: I have the files to fix that bug attached at the end of this
> site
>
> Warning: Hostname fix does not work for now
>
> paths:
>
> /usr/share/software-center/softwarecenter/distro/elementary.py
>
> /usr/share/python-apt/templates/elementary.info
>
> /etc/lsb-release
>
> /etc/issue
>
> /etc/issue.net
>
> /etc/hostname
>
> /usr/share/update-manager/DistUpgrade.cfg
>
> (after installation of Luna)
> /etc/apt/sources.list
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/elementaryos/+bug/742038/+subscriptions
>

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Great work guys, I'll look into this ASAP. I can handle the packaging.
Thanks for your help.

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

I've found some official ubuntu advice on lsb in derivatives: https://wiki.ubuntu.com/DerivativeDistroHowto?highlight=%28SeedManagement%29#Trademarks

Revision history for this message
Eduard Gotwig (gotwig) wrote :

This page does NOT realy help us. We have to change the ID in lsb-release, or we are not realy lsb compliant. This site gives us mostly only infos over the trademark "Ubuntu" in our distro.

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

JoliCloud did an interesting thing: they have added /etc/upstream-release/lsb-release file and -u,--upstream flag to lsb-release binary that makes it parse the upstream file. We could adopt that system.

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

/etc/lsb-release, /etc/issue, /etc/issue.net are now patched. Those issue things might make stuff go terribly wrong, esp. screw up /etc/apt/sources.list. If that happens, I'll keep /etc/issue(.net) as it is, and patch gnome-system-monitor in the worst case (or just leave it as it is).

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

also, hostname is already taken care of via casper

Revision history for this message
Eduard Gotwig (gotwig) wrote :

I wouldn't do that. How do other distr.'s do that? e.g LinuxMint, or PearOS?

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Hmm, this was done by netherblood and discussed in IRC, so I guess I should post an overview of how it's done.
Right now we have branding in 3 places:
1) elementary-lsb package which overrides /etc/issue, lsb_release and all that stuff. It's not an OS patch, it's merely a package that replaces files in other packages. It should be very easy to customize.
2) Casper package in os-patches PPA. BTW I should check if I can merge it into elementary-lsb package to make it more derivative-friendly.
3) /.disk/info on LiveCD (outside of rootfs)

Revision history for this message
Danielle Foré (danrabbit) wrote :

This is fixed in the latest daily. marking as fixed release since it's in a build

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.