<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7058&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / How do I get apt-add-repository to work on Devuan?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7058</link>
		<description><![CDATA[The most recent posts in How do I get apt-add-repository to work on Devuan?.]]></description>
		<lastBuildDate>Thu, 06 Mar 2025 13:09:07 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: How do I get apt-add-repository to work on Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54776#p54776</link>
			<description><![CDATA[<p>I filed the following report using `reportbug`:</p><div class="quotebox"><blockquote><div><p>Package: software-properties-common<br />X-Debbugs-Cc: eyalroz1@gmx.com<br />Version: 0.99.30-4.1<br />Severity: important</p><p>Dear Maintainer,</p><p>I am trying, and failing, to use software-properties-common on Devuan (= Debian without systemd). I get:</p><div class="codebox"><pre><code># add-apt-repository ppa:libreoffice/ppa
Traceback (most recent call last):
  File &quot;/usr/bin/apt-add-repository&quot;, line 361, in &lt;module&gt;
    addaptrepo = AddAptRepository()
  File &quot;/usr/bin/apt-add-repository&quot;, line 39, in __init__
     self.distro.get_sources(self.sourceslist)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3/dist-packages/aptsources/distro.py&quot;, line 92, in get_sources
    raise NoDistroTemplateException(
    ...&lt;2 lines&gt;...
    )
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for devuan/excalibur ceres</code></pre></div><p>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,&#160; but your package is intended to support such distribution templates, IIUC.</p><p>Anyway, there seems to be a combination of two problems (at least).</p><p>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.</p><p>The second is the inclusion of an extra space plus &quot;ceres&quot; in the distro name. I would have expected either &quot;devuan/excalibur&quot; or just &quot;excalibur&quot;, but instead it&#039;s &quot;devuan/excalibur ceres&quot;, which is probably not right. I think this may have something to do with the parsing of /etc/devuan_version:</p><div class="codebox"><pre><code># cat /etc/devuan_version
excalibur/ceres
# cat /etc/debian_version 
trixie/sid</code></pre></div><p>(although I could be wrong). Anyway, I would appreciate your help in &quot;robustifying&quot; your package so that it is more flexible in the use of templates, for Debian-derivative distributions like Devuan and others.</p><p>Here&#039;s the entry for excalibur in the Devuan.info template file:</p><div class="codebox"><pre><code>Suite: excalibur
RepositoryType: deb
BaseURI: http://deb.devuan.org/merged/
MatchURI: [a-z]{2}\.deb\.devuan\.org
MirrorsFile: Devuan.mirrors
_Description: Devuan 6 &#039;Excalibur&#039;
Component: main
_CompDescription: Officially supported
Component: contrib
_CompDescription: DFSG-compatible Software with Non-Free Dependencies
Component: non-free
_CompDescription: Non-DFSG-compatible Software</code></pre></div></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (einpoklum)]]></author>
			<pubDate>Thu, 06 Mar 2025 13:09:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54776#p54776</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do I get apt-add-repository to work on Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54453#p54453</link>
			<description><![CDATA[<p>I agree it&#039;s not the appropriate response. Someone should report it upstream.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Mon, 10 Feb 2025 13:02:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54453#p54453</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do I get apt-add-repository to work on Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54449#p54449</link>
			<description><![CDATA[<p><strong>@ralph.ronnquist</strong> : I&#039;m not annoyed, I was just explaining why having individual users edit distribution files is not the appropriate response to this issue. Also, this issue goes waaay back, I remember experiencing it since probably Beowulf I think.</p><p><strong>@golinux</strong>: As you may be aware, I have a bunch of FOSS that I work on on my spare time; with Devuan - the role I have the time to take is limited to reporting issues I encounter, or in other words - complaining... But you will note that I&#039;ve mapped out what I see as the two remaining issues - in an effort to be constructive (comment #3).</p>]]></description>
			<author><![CDATA[dummy@example.com (einpoklum)]]></author>
			<pubDate>Mon, 10 Feb 2025 10:30:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54449#p54449</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do I get apt-add-repository to work on Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54418#p54418</link>
			<description><![CDATA[<p>@einpoklum, it&#039;s a little bit interesting that you on the one hand make your system be part of Devuan&#039;s (and thus Debian&#039;s) testing/unstable effort and on the other seem annoyed that not all of that software is fully integrated as a stable release environment with &quot;complete organisational branding&quot;.</p><p>Whilst it&#039;s helpful that you unravel misbehaviour, I&#039;d suggest that your annoyance is somewhat misplaced. Rather one would expect you to follow through on the priviiege of partaking in the trialing of testing/unstable software by reporting on the feedback channels set up for that purpose. You have isolated a functional misbehaviour which thus should be reported to the upstream maintainers (those concerned with the functionality rather than packaging).</p><p>Also as you probably are aware, Devuan&#039;s charter is to reflect Debian sans [identified badness], and there is no additional commitment to software interoperability and completeness. It obviously would have been fun if that software (apt-add-repository) had been designed to automatically slot in a Devuan branding (or arbitrary non-Debian branding) in its principal functionality, but extending that software (either specifically for Devuan or generically in its design) is unrelated to [identified badness] and therefore actually outside the scope of Devuan&#039;s charter.</p><p>But there&#039;s of course nothing wrong in pointing to these kinds of bugs. It&#039;s just the matter of following throw with constructive action rather than &quot;whine about it&quot;.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 07 Feb 2025 21:47:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54418#p54418</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do I get apt-add-repository to work on Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54415#p54415</link>
			<description><![CDATA[<div class="quotebox"><cite>einpoklum wrote:</cite><blockquote><div><p>The thing is, this is a Devuan package. It should work on Devuan. Users shouldn&#039;t need to figure out how to fix it, then fix it, on their own - that&#039;s what we have distro developers and maintainers for after all...</p></div></blockquote></div><p>Our developers and maintainers are USERS like you. They are neither hired nor paid for their efforts to provide a service for Devuan users. Currently, no one is even bothering to build the <span class="bbu"><a href="https://files.devuan.org/devuan_excalibur/installer-iso/WhereAreTheISOs_current_status.txt" rel="nofollow">installer testing isos</a></span> so that should put your complaint into perspective! Perhaps consider becoming part of the solution by providing a patch?</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Fri, 07 Feb 2025 18:46:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54415#p54415</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do I get apt-add-repository to work on Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54414#p54414</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Users shouldn&#039;t need to figure out how to fix it, then fix it, on their own - that&#039;s what we have distro developers and maintainers for after all...</p></div></blockquote></div><p>In a perfect world this is true, that is not the one we live in. The time has come to use the report bug link included in that file to report the problem and hopefully have it solved by them. Until then you get to do the work around to get done what you need done.</p>]]></description>
			<author><![CDATA[dummy@example.com (RedGreen925)]]></author>
			<pubDate>Fri, 07 Feb 2025 17:50:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54414#p54414</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do I get apt-add-repository to work on Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54413#p54413</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Well you seem fine with editing the distro.py</p></div></blockquote></div><p>... with great pains, as a non-Pythonista :-(</p><div class="quotebox"><blockquote><div><p>what is the problem with editing the other file need in this the os-release to match what is expected/required of it to work as you need. Make the two changed needed in it and it will work like you need it to do.</p></div></blockquote></div><p>The thing is, this is a Devuan package. It should work on Devuan. Users shouldn&#039;t need to figure out how to fix it, then fix it, on their own - that&#039;s what we have distro developers and maintainers for after all...</p>]]></description>
			<author><![CDATA[dummy@example.com (einpoklum)]]></author>
			<pubDate>Fri, 07 Feb 2025 15:15:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54413#p54413</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do I get apt-add-repository to work on Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54412#p54412</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>... unfortunately, that is not enough, two issues remain:</p><p>1. Case-sensitive comparison of &quot;Devuan&quot; and &quot;devuan&quot;&#160; in /usr/lib/python3/dist-packages/aptsources/distro.py (probably, there should be a .tolower() call at some earlier point), and<br />2. The script parses the relevant meta-data wrong, concluding that the distribution&#039;s &quot;codename&quot; is excalibur ceres rather than just excalibur.</p><p>I&#039;m not sure at this point how to fix that robustly; help is appreciated.</p></div></blockquote></div><p>Well you seem fine with editing the distro.py, what is the problem with editing the other file need in this the os-release to match what is expected/required of it to work as you need. Make the two changed needed in it and it will work like you need it to do.</p>]]></description>
			<author><![CDATA[dummy@example.com (RedGreen925)]]></author>
			<pubDate>Fri, 07 Feb 2025 13:25:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54412#p54412</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do I get apt-add-repository to work on Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54409#p54409</link>
			<description><![CDATA[<p>So, one part of the problem, as explained by Stephen Kitt on StackOverflow, is that the distribution template files are missing an entry for Devuan Excalibur (!)</p><p>The template files are located at <span class="bbc">/usr/share/python-apt/templates/</span>, and - there is a file for Devuan there - <span class="bbc">Devuan.info</span>.</p><p>We can add to it an entry for Excalibur:</p><div class="codebox"><pre><code>Suite: excalibur
RepositoryType: deb
BaseURI: http://deb.devuan.org/merged/
MatchURI: [a-z]{2}\.deb\.devuan\.org
MirrorsFile: Devuan.mirrors
_Description: Devuan 6 &#039;Excalibur&#039;
Component: main
_CompDescription: Officially supported
Component: contrib
_CompDescription: DFSG-compatible Software with Non-Free Dependencies
Component: non-free
_CompDescription: Non-DFSG-compatible Software</code></pre></div><p>... unfortunately, that is not enough, two issues remain:</p><p>1. Case-sensitive comparison of &quot;Devuan&quot; and &quot;devuan&quot;&#160; in /usr/lib/python3/dist-packages/aptsources/distro.py (probably, there should be a <span class="bbc">.tolower()</span> call at some earlier point), and<br />2. The script parses the relevant meta-data wrong, concluding that the distribution&#039;s &quot;codename&quot; is <span class="bbc">excalibur ceres</span> rather than just <span class="bbc">excalibur</span>.</p><p>I&#039;m not sure at this point how to fix that robustly; help is appreciated.</p>]]></description>
			<author><![CDATA[dummy@example.com (einpoklum)]]></author>
			<pubDate>Fri, 07 Feb 2025 08:32:09 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54409#p54409</guid>
		</item>
		<item>
			<title><![CDATA[Re: How do I get apt-add-repository to work on Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54406#p54406</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>And if not - can someone give me an idea regarding how to make the script find an appropriate template?</p></div></blockquote></div><p>Sure make a duplicate of the /etc/os-release file with debian listed in it. Actually better off going to debian website and get the base-files package from testing using <strong>ar</strong> to extract the .deb you can download from the link. The files that are setting the OS version are in that package.</p><div class="codebox"><pre><code>root@9600k:~# cat /etc/os-release 
PRETTY_NAME=&quot;Devuan GNU/Linux 6 (excalibur/ceres)&quot;
NAME=&quot;Devuan GNU/Linux&quot;
VERSION_ID=&quot;6&quot;
VERSION=&quot;6 (excalibur/ceres)&quot;
VERSION_CODENAME=&quot;excalibur ceres&quot;
ID=devuan
ID_LIKE=debian
HOME_URL=&quot;https://www.devuan.org/&quot;
SUPPORT_URL=&quot;https://devuan.org/os/community&quot;
BUG_REPORT_URL=&quot;https://bugs.devuan.org/&quot;
root@9600k:~# cat /etc/debian_version 
trixie/sid</code></pre></div><p>Actually just did it here. </p><div class="codebox"><pre class="vscroll"><code>zeus@9600k:~$ cd Downloads/
zeus@9600k:~/Downloads$ mkdir base_files
zeus@9600k:~/Downloads$ mv base-files_13.6_amd64.deb base_files/
zeus@9600k:~/Downloads$ cd base_files/
zeus@9600k:~/Downloads/base_files$ ar -xv base-files_13.6_amd64.deb 
x - debian-binary
x - control.tar.xz
x - data.tar.xz
zeus@9600k:~/Downloads/base_files$ ll
total 192
72 -rw-rw-r--  1 zeus zeus 72836 Feb  6 17:51 base-files_13.6_amd64.deb
 0 lrwxrwxrwx  1 zeus zeus     7 Nov 22 10:40 bin -&gt; usr/bin/
 4 drwxr-xr-x  2 zeus zeus  4096 Nov 22 10:40 boot/
 4 -rw-r--r--  1 zeus zeus  3196 Feb  6 17:52 control.tar.xz
68 -rw-r--r--  1 zeus zeus 69448 Feb  6 17:52 data.tar.xz
 4 -rw-r--r--  1 zeus zeus     4 Feb  6 17:52 debian-binary
 4 drwxr-xr-x  2 zeus zeus  4096 Nov 22 10:40 dev/
 4 drwxr-xr-x  7 zeus zeus  4096 Nov 22 10:40 etc/
 4 drwxr-xr-x  2 zeus zeus  4096 Nov 22 10:40 home/
 0 lrwxrwxrwx  1 zeus zeus     7 Nov 22 10:40 lib -&gt; usr/lib/
 0 lrwxrwxrwx  1 zeus zeus     9 Nov 22 10:40 lib64 -&gt; usr/lib64/
 4 drwxr-xr-x  2 zeus zeus  4096 Nov 22 10:40 proc/
 4 drwx------  2 zeus zeus  4096 Nov 22 10:40 root/
 4 drwxr-xr-x  2 zeus zeus  4096 Nov 22 10:40 run/
 0 lrwxrwxrwx  1 zeus zeus     8 Nov 22 10:40 sbin -&gt; usr/sbin/
 4 drwxr-xr-x  2 zeus zeus  4096 Nov 22 10:40 sys/
 4 drwxrwxr-x  2 zeus zeus  4096 Nov 22 10:40 tmp/
 4 drwxr-xr-x 10 zeus zeus  4096 Nov 22 10:40 usr/
 4 drwxr-xr-x 11 zeus zeus  4096 Nov 22 10:40 var/
zeus@9600k:~/Downloads/base_files$ ll etc/
total 36
4 -rw-r--r-- 1 zeus zeus   11 Nov 22 10:40 debian_version
4 drwxr-xr-x 2 zeus zeus 4096 Nov 22 10:40 default/
4 drwxr-xr-x 3 zeus zeus 4096 Nov 22 10:40 dpkg/
4 -rw-r--r-- 1 zeus zeus    9 Nov 22 10:40 host.conf
4 -rw-r--r-- 1 zeus zeus   35 Nov 22 10:40 issue
4 -rw-r--r-- 1 zeus zeus   28 Nov 22 10:40 issue.net
0 lrwxrwxrwx 1 zeus zeus   21 Nov 22 10:40 os-release -&gt; ../usr/lib/os-release
4 drwxr-xr-x 2 zeus zeus 4096 Nov 22 10:40 profile.d/
4 drwxr-xr-x 2 zeus zeus 4096 Nov 22 10:40 skel/
4 drwxr-xr-x 2 zeus zeus 4096 Nov 22 10:40 update-motd.d/
zeus@9600k:~/Downloads/base_files$ cat etc/debian_version 
trixie/sid
zeus@9600k:~/Downloads/base_files$ cat etc/os-release 
PRETTY_NAME=&quot;Debian GNU/Linux trixie/sid&quot;
NAME=&quot;Debian GNU/Linux&quot;
VERSION_CODENAME=trixie
ID=debian
HOME_URL=&quot;https://www.debian.org/&quot;
SUPPORT_URL=&quot;https://www.debian.org/support&quot;
BUG_REPORT_URL=&quot;https://bugs.debian.org/&quot;</code></pre></div><p>So there are the two files needed since the Devuan seems to keep debian_version at the Debian version only the os-release needs to be used.&#160; Copy the existing file to a backup and create a Debian version of it so you can easily switch back and forth between them.</p><div class="codebox"><pre><code>root@9600k:~# cp /etc/os-release /etc/os-release.devuan
root@9600k:~# nano /etc/os-release.debian
root@9600k:~# cat /etc/os-release.debian
PRETTY_NAME=&quot;Debian GNU/Linux trixie/sid&quot;
NAME=&quot;Debian GNU/Linux&quot;
VERSION_CODENAME=trixie
ID=debian
HOME_URL=&quot;https://www.debian.org/&quot;
SUPPORT_URL=&quot;https://www.debian.org/support&quot;
BUG_REPORT_URL=&quot;https://bugs.debian.org/&quot;</code></pre></div><p>So there you will have two files in there that can be switched back and forth when needed, like I now have in case this problem crops up in anything I do.</p>]]></description>
			<author><![CDATA[dummy@example.com (RedGreen925)]]></author>
			<pubDate>Thu, 06 Feb 2025 22:10:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54406#p54406</guid>
		</item>
		<item>
			<title><![CDATA[How do I get apt-add-repository to work on Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54404#p54404</link>
			<description><![CDATA[<p>The software-properties-common package includes the file <span class="bbc">/usr/bin/apt-add-repository</span>. But, for as long as I&#039;ve been using Devuan - this fails. It says:</p><div class="codebox"><pre><code>Traceback (most recent call last):
  File &quot;/usr/bin/apt-add-repository&quot;, line 361, in &lt;module&gt;
    addaptrepo = AddAptRepository()
  File &quot;/usr/bin/apt-add-repository&quot;, line 39, in __init__
    self.distro.get_sources(self.sourceslist)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3/dist-packages/aptsources/distro.py&quot;, line 92, in get_sources
    raise NoDistroTemplateException(
    ...&lt;2 lines&gt;...
    )
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for devuan/excalibur ceres</code></pre></div><p>Have Devuan maintainers considered this situation? If so, why has it not been addressed? And if not - can someone give me an idea regarding how to make the script find an appropriate template?</p>]]></description>
			<author><![CDATA[dummy@example.com (einpoklum)]]></author>
			<pubDate>Thu, 06 Feb 2025 20:57:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54404#p54404</guid>
		</item>
	</channel>
</rss>
