Project

General

Profile

Bug #12372

Missing information in /etc/os-release

Added by u 9 months ago. Updated 27 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
03/18/2017
Due date:
% Done:

10%

QA Check:
Info Needed
Feature Branch:
Type of work:
User interface design
Blueprint:
Starter:
Affected tool:

Description

This prevents GNOME Software to start on Tails/Stretch

This also breaks the configuration of repositories in Synaptic when software-properties-gtk is installed. It is included by default in Stretch with GNOME according to #11110#note-4 but not in Tails.


Related issues

Related to Tails - Bug #11110: Document alternative Synaptic dialog with software-properties-gtk Resolved 02/12/2016
Related to Tails - Bug #9033: Adjust /etc/issue and /etc/motd to Tails branding Confirmed 03/07/2015
Blocks Tails - Feature #13244: Core work 2017Q4: Foundations Team Confirmed 06/29/2017

History

#1 Updated by u 9 months ago

add in /etc/os-release:

ID=whatever
PRETTY_NAME=whatever

#2 Updated by intrigeri 9 months ago

  • Status changed from New to In Progress
  • Target version set to Tails_3.0
  • % Done changed from 0 to 10

Is this a blocker for the release? If so, please bump priority to Elevated.

#3 Updated by intrigeri 9 months ago

u, sajolida: is this a blocker for the release? If so, please bump priority to Elevated. The impact is unclear to me as we don't include gnome-software by default, but the fix seems to trivial that it probably takes less time to just fix it than to discuss it any further.

#4 Updated by intrigeri 9 months ago

  • Subject changed from Tails based on stretch: gnome-software-center won't start to GNOME Software won't start on Tails/Stretch

#5 Updated by u 9 months ago

It's not a blocker for the release I think.

#6 Updated by sajolida 8 months ago

Agreed.

#7 Updated by sajolida 7 months ago

  • Subject changed from GNOME Software won't start on Tails/Stretch to Missing ID is /etc/os-release
  • Description updated (diff)

#8 Updated by sajolida 7 months ago

  • Subject changed from Missing ID is /etc/os-release to Missing information in /etc/os-release

#9 Updated by sajolida 7 months ago

Adding the snippet in #12372#note-1 is not enough to completely fix GNOME Software and software-properties-gtk.

When starting GNOME Software I still get:

15:43:29:0807 Gs  no distro name specified

When starting software-properties-gtk I still get:

ERROR:root:Cannot import UbuntuDrivers: No module named 'UbuntuDrivers'
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 101, in <module>
    app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 109, in __init__
    SoftwareProperties.__init__(self, options=options, datadir=datadir)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)    
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Tails/stretch

And the configuration of repositories in Synaptic that I wanted to use to solve #11110 is still broken :(

#10 Updated by sajolida 7 months ago

  • Related to Bug #11110: Document alternative Synaptic dialog with software-properties-gtk added

#11 Updated by intrigeri 7 months ago

  • Target version changed from Tails_3.0 to Tails_3.1

sajolida made it clear above that it's not blocking 3.0.

#12 Updated by intrigeri 5 months ago

#13 Updated by u 5 months ago

  • Related to Bug #9033: Adjust /etc/issue and /etc/motd to Tails branding added

#14 Updated by anonym 5 months ago

  • Target version changed from Tails_3.1 to Tails_3.2

#15 Updated by intrigeri 3 months ago

  • Assignee changed from anonym to sajolida
  • Type of work changed from Code to User interface design

sajolida wrote:

Adding the snippet in #12372#note-1 is not enough to completely fix GNOME Software and software-properties-gtk.

When starting GNOME Software I still get:

[...]

This comes from https://sources.debian.net/src/gnome-software/3.22.5-1/src/plugins/gs-plugin-odrs.c/?hl=70#L70. Fixed by adding NAME="Tails" in /etc/os-release in Tails 3.1, and then GNOME Software manages to list the installed apps.

It still fails to display other available apps in the "All" tab until I run apt update to download the DEP-11 metadata (the config file that enables this wasn't there before the appstream package is pulled in by installing GNOME Software itself), but that's another problem, that should get its own ticket if/once we decide to ship GNOME Software in Tails.

When starting software-properties-gtk I still get:

[...]

This comes from https://sources.debian.net/src/python-apt/1.4.0%7Ebeta3/aptsources/distro.py/?hl=92#L92. The templates live in /usr/share/python-apt/templates/ and contain a list of mirrors that aptsources/sourceslist.py will use when parsing the existing APT sources. So as the error message says, there's no Tails template in there. We could add some, based on the Debian ones (and perhaps we'll need to add entries for the non-Debian APT sources we use?) but the Debian hidden services we're using are not listed in the Debian template so that's not enough: copying Debian.{info,mirrors} to Tails.{info,mirrors} fixes the startup of software-properties-gtk, and then the first tab is labelled "Tails Software" (wow!) with every checkbox unchecked, and all our APT sources are listed in the "Other Software" tab.

IMO we have two options: either display all the APT sources we enable by default in "Tails Software" (so that user-added ones are clearly singled out, and "Tails" appears as a merge of Debian and non-Debian sources, which is really is), or pretend we're Debian (and then set our name to Debian in /etc/os-release, display all the Debian sources in "Debian Software", and all our others sources in "Other Software"). I prefer the first option personally, but I want sajolida's input on this before implementing anything, since he's the one who wants to design/document stuff in this interface.

#16 Updated by intrigeri 3 months ago

  • Target version changed from Tails_3.2 to Tails_3.3

(I think it's too late to get the UX input + implement the solution in time for 3.2.)

#17 Updated by intrigeri 2 months ago

#18 Updated by intrigeri 2 months ago

#19 Updated by sajolida about 1 month ago

  • QA Check set to Info Needed

#20 Updated by sajolida 27 days ago

  • Target version changed from Tails_3.3 to Tails_3.5

Also available in: Atom PDF