Package: software-properties-common
Version: 0.99.30-4.1
Severity: important
X-Debbugs-Cc:
eyalroz1@gmx.com
Dear Maintainer,
I am trying, and failing, to use software-properties-common on Devuan (= Debian without systemd). I get:
# add-apt-repository ppa:libreoffice/ppa
Traceback (most recent call last):
File "/usr/bin/apt-add-repository", line 361, in <module>
addaptrepo = AddAptRepository()
File "/usr/bin/apt-add-repository", line 39, in __init__
self.distro.get_sources(self.sourceslist)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 92, in get_sources
raise NoDistroTemplateException(
...<2 lines>...
)
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for devuan/excalibur ceres
Devuan does has a templates .info file, /usr/share/python- apt/templates/Devuan.info ; and I have added Devuan excalibur to that file. That template file is of course not part of software-properties-common, but your package is intended to support such distribution templates, IIUC.
Anyway, there seems to be a combination of two problems (at least).
The first is in the treatment of uppercase vs lowercase. The template file name has Devuan in uppercase, but in some places in the code it seems the distribution name is determined to be devuan, lowercase.
The second is the inclusion of an extra space plus "ceres" in the distro name. I would have expected either "devuan/excalibur" or just "excalibur", but instead it's "devuan/excalibur ceres", which is probably not right. I think this may have something to do with the parsing of /etc/devuan_version:
# cat /etc/devuan_version
excalibur/ceres
# cat /etc/debian_version
trixie/sid
(although I could be wrong). Anyway, I would appreciate your help in "robustifying" your package so that it is more flexible in the use of templates, for Debian-derivative distributions like Devuan and others.
Here's the entry for excalibur in the Devuan.info template file:
Suite: excalibur
RepositoryType: deb
BaseURI:
http://deb.devuan.org/merged/
MatchURI: [a-z]{2}\.deb\.devuan\.org
MirrorsFile: Devuan.mirrors
_Description: Devuan 6 'Excalibur'
Component: main
_CompDescription: Officially supported
Component: contrib
_CompDescription: DFSG-compatible Software with Non-Free Dependencies
Component: non-free
_CompDescription: Non-DFSG-compatible Software
-- System Information:
Distributor ID: Devuan
Description: Devuan GNU/Linux 6 (excalibur/ceres)
Release: 6
Codename: excalibur ceres
Architecture: x86_64
Kernel: Linux 6.6.13-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_IL, LC_CTYPE=en_IL (charmap=UTF-8), LANGUAGE=en_IL:en
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled
Versions of packages software-properties-common depends on:
ii ca-certificates 20241223
ii gir1.2-glib-2.0 2.83.3-2
ii gir1.2-packagekitglib-1.0 1.3.0-2devuan1
ii packagekit 1.3.0-2devuan1
ii python-apt-common 2.9.8
ii python3 3.13.1-2
ii python3-dbus 1.3.2-5+b4
ii python3-gi 3.50.0-4
ii python3-software-properties 0.99.30-4.1
software-properties-common recommends no packages.
software-properties-common suggests no packages.
-- no debconf information
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)