:: Re: [DNG] distribution template for…
Pàgina inicial
Delete this message
Reply to this message
Autor: Adrian Zaugg
Data:  
A: dng
Assumpte: Re: [DNG] distribution template for python-apt
Hi Boian

In der Nachricht vom Wednesday, 6 September 2023 02:11:13 CEST schrieb Boian
Bonev:

> Did you try 'apt install python-apt-common-devuan'?
> That normally comes via recommends and may not always be installed.


Good hint, thank you, this contains the necessary files. This should probably
have a hard dependency somewhere.*)

Unfortunately python-apt has still problems. Now, the stack trace looks like:

~$ 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 249, in __init__
    self.init_distro()
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/
SoftwarePropertiesGtk.py", line 466, in init_distro
    eol_date = distro.eol
               ^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'eol'



There should be a release info file "devuan.csv" in /usr/share/distro-info/
which gets installed with distro-info-data. This package gets pulled in from
python3-apt. I've installed python3-apt, but it doesn't help nevertheless.

Do you have any other hint to solve this problem?

Thank you!

Best regards, Adrian.

*) In Debian the package python-apt-common includes the info for Debian,
Blankon, Kali, Tanglu, Ubuntu and gNewSense but not Devuan. Maybe it should
include Devuan aswell or depend on python-apt-common-devuan in Devuan.
Strange is that python3-apt does not depend on python-apt-common.... I don't
understand what's the plan here.