Devuan bug report logs - #549
software-properties-gtk crashes due to missing distribution template for Devuan [fix]

Package: python-apt-common; Reported by: Richard Missenden <richard.missenden@gmail.com>; dated Wed, 17 Feb 2021 15:03:01 UTC; Maintainer for python-apt-common is (unknown).

Message received at submit@bugs.devuan.org:


Received: (at submit) by bugs.devuan.org; 17 Feb 2021 14:50:05 +0000
Return-Path: <richard.missenden@gmail.com>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Wed, 17 Feb 2021 14:50:05 +0000 (UTC)
Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 201DCF60AD8
	for <submit@bugs.devuan.org>; Wed, 17 Feb 2021 15:45:17 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="kVoJrac3";
	dkim-atps=neutral
Received: by mail-ed1-f41.google.com with SMTP id q10so16767873edt.7
        for <submit@bugs.devuan.org>; Wed, 17 Feb 2021 06:45:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=from:subject:to:message-id:date:user-agent:mime-version
         :content-transfer-encoding:content-language;
        bh=cSuYq7gAU2bSGQQCrKI4dga4nn729v7wykUQEoyzOWA=;
        b=kVoJrac3ctt/kZLJ6sJVfPuxcXsJByHXkedb/JTJLqcLuh3ciELr0V75uXb1JyY7Ie
         Nkl1wjX0ZtRdipj4DUHXXIduJT7q2Zl7Hhs7NLhsC0/ucgEVVviVRzdhrLZ+vuzhcOJz
         K94qEHeILW6fiq3xseKyx4XBKOxxsQqVwc9IEzz8Du6WxpU2rII99Fkvw3eItmT14j8j
         5Dr7AjMsbAL1QYuhrES/ma8SqZy5jtb3r9YVKLBs7wiXkbAm5Maxvh7+WetThCI79cUh
         Z1DN7xqcHk8TKSwSo4GyV2GcoAIdXQeJ9C3viRnLYk7aMVh9FF2RfNCGeUaDnwrYsaPw
         9Ywg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:subject:to:message-id:date:user-agent
         :mime-version:content-transfer-encoding:content-language;
        bh=cSuYq7gAU2bSGQQCrKI4dga4nn729v7wykUQEoyzOWA=;
        b=KLX5CSVgNEGGKpZGezCuifrQQrpd6QAPAG3B8S1kVavKcOSE4CJODUK4nPzOVveJ6E
         1PfqkO/ShR9S+MC7mQtHw3LxzgDPQXf6ZAuo840CCu8THKrDNbKxBEUqnW8lY9d6B95e
         AwTvYGmWelgHZ3EhlYiQFnUNVJj0enRWjNWI+Tk6j+5v1PRTvnadtcAFRSRrl6C93Vf1
         If8PFeHWPbEQHwp579L4cj9mpEEw9xBw1da9ZN2mqQ44I2K4+ZtZemEfctttMOm4hclq
         EEsnZDrFNjr8cRVreQ1YrPcm5Tgh9ZPSqK3s+wWfH+Y1wk8urV13Z605XM0vTh4y3Zd0
         PE2Q==
X-Gm-Message-State: AOAM531O+iIgVdy8IAPX7AMAer73b5R1nZzMaF+sIIvPJSg+4Dp43koT
	5StQUHT1ejALTNqeY5XJ1qmhlJ1ylOE=
X-Google-Smtp-Source: ABdhPJyuMuDUKRuqzknBIkS9L0rimi9x+VQq9s8jfAQhvj4yFOwxZYaGrxxldy9Dfy/5GMbATU5LsQ==
X-Received: by 2002:a05:6402:5112:: with SMTP id m18mr26986446edd.129.1613573117498;
        Wed, 17 Feb 2021 06:45:17 -0800 (PST)
Received: from [10.43.180.126] ([156.146.60.103])
        by smtp.gmail.com with ESMTPSA id d5sm1235992edu.12.2021.02.17.06.45.16
        for <submit@bugs.devuan.org>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Wed, 17 Feb 2021 06:45:17 -0800 (PST)
From: Richard Missenden <richard.missenden@gmail.com>
Subject: software-properties-gtk crashes due to missing distribution template
 for Devuan [fix]
To: submit@bugs.devuan.org
Message-ID: <bf7a7a37-e481-5b45-2596-4b62689947b5@gmail.com>
Date: Wed, 17 Feb 2021 14:45:15 +0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.6.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,
	RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Package: python-apt-common
Version: 1.8.4.3

When launching software-properties-gtk via the command line, via "Xfce 
Menu > Settings > Software & Updates" or via "synaptic > Settings > 
Repositories", it crashes because it can't find a template for Devuan:


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 94, 
in get_sources
     (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a 
distribution template for Devuan/beowulf

Fix:

I created the files

/usr/share/python-apt/templates/Devuan.info:

ChangelogURI: 
http://packages.debian.org/changelogs/pool/%s/%s/%s/%s_%s/changelog

Suite: beowulf
RepositoryType: deb
BaseURI: http://deb.devuan.org/merged/
MatchURI: ((http|ftp)[0-9]*\.([a-z]*\.){0,1}|deb\.|httpredir\.)devuan\.org
MirrorsFile: Devuan.mirrors
Description: Devuan 3 'Beowulf'
Component: main
CompDescription: Officially supported
Component: contrib
CompDescription: DFSG-compatible Software with Non-Free Dependencies
Component: non-free
CompDescription: Non-DFSG-compatible Software

Suite: beowulf-security
RepositoryType: deb
ParentSuite: beowulf
Description: Security updates

Suite: beowulf-updates
RepositoryType: deb
ParentSuite: beowulf
Description: Recommended updates

and /usr/share/python-apt/templates/Devuan.mirrors:

#LOC:GB
http://gb.deb.devuan.org/merged/

..and it works ok now. Seems like these files need to be added to 
python-apt. I couldn't find the proper ChangelogURI though, but 
otherwise it works.

Using Devuan 3/Beowulf.

Regards, Richard Missenden.




Acknowledgement sent to Richard Missenden <richard.missenden@gmail.com>:
New bug report received and forwarded. Copy sent to devuan-dev@lists.dyne.org. Full text available.
Report forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#549; Package python-apt-common. Full text available.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sun, 16 Jan 2022 18:39:01 UTC