:: [DNG] distribution template for pyt…
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Adrian Zaugg
Fecha:  
A: dng
Asunto: [DNG] distribution template for python-apt
Devuan is missing the distribution template files Devuan.info and
Devuan.mirrors in 
    /usr/share/python-apt/templates/


This kills the cinnamon software manager with:

~$ software-properties-gtk 
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 100, in <module>
    app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, 
file=file)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/
SoftwarePropertiesGtk.py", line 162, in __init__
    SoftwareProperties.__init__(self, options=options, datadir=datadir)
  File "/usr/lib/python3/dist-packages/softwareproperties/
SoftwareProperties.py", line 108, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/
SoftwareProperties.py", line 605, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in 
get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a 
distribution template for Devuan/daedalus


The Bug was already reported to Devuan as #33 [1] concerning "add-apt-
repository" but was never solved.


To generate the "Devuan.mirrors" file I quickly hacked a bash script, which is
attached, but I don't know how to build the second file needed "Devuan.info".
Has anyone built this file already or does know how to build it?

It would be nice if we could solve this bug an have a working python-apt
installation in Devuan.

Regards, Adrian.


[1] https://www.devuan.org/gitlab-issues/devuan.devuan-maintainers.33.html