Subject: bug#662: software-properties-gtk: does not start due to lack of devuan distro template

From: Elliot <[email-masked]>
Date: Sun, 30 Jan 2022 18:39:50 -0500

Package: software-properties-gtk
Version: 0.96.20.2-2.1
Severity: normal
X-Debbugs-Cc: [email-masked]

Dear Maintainer,

When launching software-properties-gtk, the program produces an error
saying that it does not have a proper template for Devuan Chimera. It
seems that it just needs one to be implemented and/or patched in, but I
am not sure about this.

Full Python Traceback:
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 91, in get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Devuan/chimaera

-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 4 (chimaera)
Release:	4
Codename:	chimaera
Architecture: x86_64

Kernel: Linux 5.10.0-11-amd64 (SMP w/12 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: OpenRC (via /run/openrc), PID 1: init
LSM: AppArmor: enabled

Versions of packages software-properties-gtk depends on:
ii  gir1.2-gtk-3.0               3.24.24-4
ii  python3                      3.9.2-3
ii  python3-gi                   3.38.0-2
ii  python3-software-properties  0.96.20.2-2.1
ii  software-properties-common   0.96.20.2-2.1

software-properties-gtk recommends no packages.

Versions of packages software-properties-gtk suggests:
pn  gnome-software  <none>

-- no debconf information

---

From: tito <[email-masked]>
Date: Tue, 1 Feb 2022 14:16:23 +0100

On Sun, 30 Jan 2022 18:39:50 -0500
Elliot <[email-masked]> wrote:

> _______________________________________________
> devuan-dev internal mailing list
> [email-masked]
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/devuan-dev

Hi,
the templates should be add to:

Package: python-apt-common (2.2.1) 

I think it should be possible to add them directly to the original debian 
package as they do ship some templates for derivative distributions

/usr/share/python-apt/templates/Blankon.info
/usr/share/python-apt/templates/Blankon.mirrors
/usr/share/python-apt/templates/Debian.info
/usr/share/python-apt/templates/Debian.mirrors
/usr/share/python-apt/templates/Kali.info
/usr/share/python-apt/templates/Kali.mirrors
/usr/share/python-apt/templates/Tanglu.info
/usr/share/python-apt/templates/Tanglu.mirrors
/usr/share/python-apt/templates/Ubuntu.info
/usr/share/python-apt/templates/Ubuntu.mirrors
/usr/share/python-apt/templates/gNewSense.info
/usr/share/python-apt/templates/gNewSense.mirrors

Attached you will find some templates that were posted to [email-masked]
by tempforever that allow software-properties-gtk  to run but there were concerns
about the correctness of the contents.
It would be best if the template files would be reviewed by the people
who is running the devuan repositories as they know best.

Ciao,
Tito

---

From: Boian Bonev <[email-masked]>
Date: Wed, 02 Feb 2022 07:39:33 +0200

Hello,

Please test with python-apt-common-devuan from ceres - it does not depend on
anything, so should be safe to install in beowulf/chimaera.

With best regards,
b.

On Sun, 2022-01-30 at 18:39 -0500, Elliot wrote:
>   File "/usr/lib/python3/dist-
> packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 109, in
> __init__
>   File "/usr/lib/python3/dist-
> packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
>   File "/usr/lib/python3/dist-
> packages/softwareproperties/SoftwareProperties.py", line 599, in
> reload_sourceslist
> aptsources.distro.NoDistroTemplateException: Error: could not find a
> distribution template for Devuan/chimaera
> 
> 
> -- System Information:
> Distributor ID: Devuan

---

From: tito <[email-masked]>
Date: Wed, 2 Feb 2022 23:17:35 +0100

On Wed, 02 Feb 2022 07:39:33 +0200
Where all about bugs in Devuan packages is reported <[email-masked]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> Hello,
> 

Hi,
spotted a typo;

--- Devuan.info.orig    2022-02-02 22:57:50.098440373 +0100
+++ Devuan.info 2022-02-02 23:00:39.546288910 +0100
@@ -33,7 +33,7 @@ RepositoryType: deb
 BaseURI: http://deb.devuan.org/merged/
 MatchURI: [a-z]{2}\.deb\.devuan\.org
 MirrorsFile: Devuan.mirrors
-_Description: Devuan 4 'Chimaera '
+_Description: Devuan 4 'Chimaera'
 Component: main
 _CompDescription: Officially supported
 Component: contrib

File seems to work as software-properties-gtk starts,
but the checkboxes in the "Devuan Software" and "Updates"
tab are not functional. This could be caused by my
setup. Had not time to test it in a clean Devuan
4 install.

Ciao,
Tito
 
> -----BEGIN PGP SIGNATURE-----
> 
> iQIzBAEBCgAdFiEEumC8IPN+WURNbSUAE2VyCRPS8i0FAmH6GRUACgkQE2VyCRPS
> 8i2f9w/7B5qEISACCT1uTLFv1GHftaQ85f8HTURfyETH4806wsegY5BpRhv7QBuE
> R9h6fOS81ETtBVXqxxzrJnsFl1qSqdVgEZp1k6I8jhWnbAAthoQUlIZ3XsLHpCFE
> n6V761qEXIcfat9YOo6Uzbs6Lj3i9nwux+8l0kIJpjI4CPJ4jyFnoYqBEMUvDBV5
> i0j2qHaTlRihD+JKI+oqEBjzT4H61SxViT6qYFuoVOZ8KIPb7UYmz5p+4kw7mMcJ
> +71xalhnA7P4FdwptXBfCiVSbNjnDQhKNjKOqfE1YDqT47HOQGyOFZB2UXKms/Qq
> vs7f117J8HyUX0DXcU5WemLaUAbIIjzzDxSQsyQ0i7dv8CDBVznA5LOxR8HrA/YQ
> Ya78P3tX6oiVsJJHhu37IAzAsofYM1BG6F/BqBla94EBhtzJ74OyYyhHoXsJiU9k
> aNPSWfKgbgXstwAplOV1I54XHYaegrbf8SgaFAxgNQXsaN21eAuoiihGbCo5vZPa
> MnLSy09fOwyUiMaPcdjzj8CN21ceap+HtL3KV/IANqXucGvNU2YMMnoCVXF0qfdD
> eIjQeYSpdZq6yuYASVTSMbZOJPvkZYzkK02qiOGYwdU0D82IiOJP0Pz771XX79d4
> HaV2vtgUhupD2Tz+800fq6by1/NnJV/neTrLD+8jdJulHd1TLMg=
> =LZT4
> -----END PGP SIGNATURE-----
> Devuan-bugs mailing list
> [email-masked]
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/devuan-bugs

---

From: Boian Bonev <[email-masked]>
Date: Thu, 03 Feb 2022 16:36:14 +0200

Hi,

>  _CompDescription: Officially supported

This file is generated based on /usr/share/distro-info/devuan.csv that
comes from distro-info-data. Can you propose a PR there [1]? 

With best regards,
b.

[1]
https://git.devuan.org/devuan/distro-info-data/src/branch/suites/unstable)

---

From: tito <[email-masked]>
Date: Thu, 3 Feb 2022 16:16:04 +0100

On Thu, 03 Feb 2022 16:36:14 +0200

> comes from distro-info-data. Can you propose a PR there [1]? 
Hi,
Looked at  /usr/share/distro-info/devuan.csv but spotted nothing related.

Ciao,
Tito

---

From: Mark Hindley <[email-masked]>
Date: Thu, 3 Feb 2022 15:31:36 +0000

> comes from distro-info-data. Can you propose a PR there [1]? 

I have just built a distro-info-data 0.52+devuan2 which has the excess
whitespace removed.

Mark

---

From: "Devuan bug Tracking System" <[email-masked]>
Date: Fri, 04 Feb 2022 02:36:04 +0000

This is an automatic notification regarding your bug report
which was filed against the software-properties-gtk package:

#662: software-properties-gtk: does not start due to lack of devuan distro template

It has been closed by [email-masked].

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact [email-masked] by
replying to this email.

-- 
662: https://bugs.devuan.org/cgi/bugreport.cgi?bug=662
Devuan Bug Tracking System
Contact [email-masked] with problems

Subject: #662: fixed in src:python-apt-common-devuan version 2.3.0+devuan2
From: [email-masked]
To: [email-masked]
Date: Fri, 04 Feb 2022 01:15:30 +0000

Version: 2.3.0+devuan2

Source package python-apt-common-devuan (2.3.0+devuan2) added to Devuan suite unstable.

This closes bug report 662.

Thanks

DAK managing the Devuan archive

Format: 1.8
Date: Fri, 04 Feb 2022 00:44:53 +0000
Source: python-apt-common-devuan
Architecture: source
Version: 2.3.0+devuan2
Distribution: unstable
Urgency: medium
Maintainer: Boian Bonev <[email-masked]>
Changed-By: Boian Bonev <[email-masked]>
Closes: 662
Changes:
 python-apt-common-devuan (2.3.0+devuan2) unstable; urgency=medium
 .
   * Rebuild to accommodate changes in distro-info-data (Closes: #662)
Checksums-Sha1:
 fdceac5cb1dd8a3559a457d108d364363534185b 1374 python-apt-common-devuan_2.3.0+devuan2.dsc
 7e5eed6c2de4b89f4dae75df66d15beb9287314c 4172 python-apt-common-devuan_2.3.0+devuan2.tar.xz
 3cefa49223c8d31e32640f0e9845a15a7e658cca 6730 python-apt-common-devuan_2.3.0+devuan2_source.buildinfo
Checksums-Sha256:
 0a50a0fb81a95c6752a964aae467960835a3258f566bd22627008cc53750476e 1374 python-apt-common-devuan_2.3.0+devuan2.dsc
 7c71397e6c8b09bf3f47996d0b413e41aa1bd7f01b51db374c75d3baf2db80ff 4172 python-apt-common-devuan_2.3.0+devuan2.tar.xz
 db644ba0ec109536340e5d42c9de975a0ecee38b545b1f92e73e9e08f7e982ec 6730 python-apt-common-devuan_2.3.0+devuan2_source.buildinfo
Files:
 74114fee3aca0c1478e792c497e44a87 1374 python optional python-apt-common-devuan_2.3.0+devuan2.dsc
 a2ae69804f78ff4d865ff3319bf1b752 4172 python optional python-apt-common-devuan_2.3.0+devuan2.tar.xz
 c295b2d38cfcbcc2ebe4cd409ffccc32 6730 python optional python-apt-common-devuan_2.3.0+devuan2_source.buildinfo

Subject: software-properties-gtk: does not start due to lack of devuan distro template
From: Elliot <[email-masked]>
To: Devuan Bug Tracking System <[email-masked]>
Date: Sun, 30 Jan 2022 18:39:50 -0500

Dear Maintainer,

Full Python Traceback:

-- System Information:
Distributor ID:	Devuan

---

From: [email-masked]
Date: Mon, 8 Aug 2022 07:07:26 +0200 (CEST)

Apologies for the months late reply and any formatting mistakes, I moved on from this and forgot about it. Either way, this doesn't seem to have been fixed in either chaemera, daedalus, or ceres (after testing in several VMs and on my laptop running Devuan). Launching the application via either the desktop or the command line (with or without polkit) still produces an error as seen by the output on my Daedalus VM:

aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Devuan/daedalus ceres

If it helps/is related to this, running the command "distro-info --all" only seems to produce upstream Debian release names as output as seen here:

buzz
rex
bo
hamm
slink
potato
woody
sarge
etch
lenny
squeeze
wheezy
jessie
stretch
buster
bullseye
bookworm
trixie
sid
experimental

>  Maintainer: Boian Bonev <> [email-masked]> >
>  Changed-By: Boian Bonev <> [email-masked]> >
>  Closes: 662
>  Changes:

---

From: Mark Hindley <[email-masked]>
Date: Mon, 8 Aug 2022 07:28:09 +0100

On Mon, Aug 08, 2022 at 07:07:26AM +0200, [email-masked] wrote:
>    Apologies for the months late reply and any formatting mistakes, I
>    moved on from this and forgot about it. Either way, this doesn't seem
>    to have been fixed in either chaemera, daedalus, or ceres (after
>    testing in several VMs and on my laptop running Devuan). Launching the
>    application via either the desktop or the command line (with or without
>    polkit) still produces an error as seen by the output on my Daedalus
>    VM:

Apologies if this is an obvious question, but do you have the
python-apt-common-devuan package installed?

Mark

---

From: [email-masked]
Date: Mon, 8 Aug 2022 19:25:32 +0200 (CEST)

In Chaemera this package is not available and on Daedalus this doesn't change anything when installed.

-- 
 Sent with Tutanota, enjoy secure & ad-free emails.

---

From: Mark Hindley <[email-masked]>
Date: Tue, 9 Aug 2022 07:21:01 +0100

Control: reassign -1 python-apt-common-devuan

>    change anything when installed.

OK, thanks. Reassigning.

Boian, can you take a look as to wy this fix is not, or no longer working?

Thanks

Mark

---

From: Boian Bonev <[email-masked]>
Date: Tue, 09 Aug 2022 23:36:30 +0300

Hi,

I am testing on chimaera - it does not have the python-apt-common-devuan in its
repo, yet.

Before:

user@host:~$ software-properties-gtk
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 91, in
get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a
distribution template for Devuan/chimaera

Fix:

user@host:~$ wget
http://deb.devuan.org/merged/pool/DEVUAN/main/p/python-apt-common-devuan/python-apt-common-devuan_2.3.0+devuan2_all.deb
user@host:~$ sudo dpkg -i python-apt-common-devuan_2.3.0+devuan2_all.deb

After:

user@host:~$ software-properties-gtk
ERROR:root:Cannot import UbuntuDrivers: No module named 'UbuntuDrivers'

... and it works (not sure if it works properly, though)

With best regards,
b.

---

From: Mark Hindley <[email-masked]>
Date: Thu, 11 Aug 2022 07:33:49 +0100

> Boian, can you take a look as to wy this fix is not, or no longer working?

I have reproduced this on a Daedalus install.

It seems to be triggered by the

 VERSION_CODENAME="daedalus ceres"

in /etc/os-release which doesn't match a template. Changing it to a single
codename makes software-properties-gtk run.

Boian, is the right fix to add that codename template?

Thanks

Mark

---

From: Boian Bonev <[email-masked]>
Date: Sun, 14 Aug 2022 23:59:26 +0300

> Boian, is the right fix to add that codename template?

I don't think so. Codename should become a single word, but it is not clear (at
least to me) how to achieve that and also get it to distinguish daedalus from
ceres. AFAIK Debian also yields the same codename both for testing and unstable
and only has the proper one for (old)stable.

OTOH software-properties-gtk does not work properly neither on chimaera nor on
daedalus - it runs (after changing os-release) but does not recognize the
configured entries in /etc/apt/sources.list and does not parse the mirrors from
/usr/share/python-apt/templates/Devuan.mirrors. I did try to see what is going
on but I am not on good terms with snakes and couldn't find the problem.

With best regards,
b.