This forum has been archived. All content is frozen. Please use KDE Discuss instead.

add-apt-repository fails on KDE Neon Build 22.04

Tags: None
(comma "," separated)
quarck
Registered Member
Posts
5
Karma
0
OS
I upgraded my KDE Neon to 22.04. Everything works fine except "add-apt-repository". It crashes with the following traceback:

Code: Select all
add-apt-repository                                                                                                                                                         
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 363, in <module>
    addaptrepo = AddAptRepository()
  File "/usr/bin/add-apt-repository", line 41, in __init__
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 91, in get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Neon/jammy
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_add-apt-repository.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 363, in <module>
    addaptrepo = AddAptRepository()
  File "/usr/bin/add-apt-repository", line 41, in __init__
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 91, in get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Neon/jammy


How to fix the issue?
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS
quarck wrote:I upgraded my KDE Neon to 22.04. Everything works fine except "add-apt-repository". It crashes with the following traceback:


Why did you do that? neon has not yet finalized upgrades to the 22.04 base

How to fix the issue?

probably by rolling back to a good snapshot or backup, and waiting until they official announce upgrades?


Code: Select all
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Neon/jammy

My guess is that that have not yet modified all the configurations in Neon to make things like this work correctly.

You can add PPAs, but will need to do so manually by creating the appropriate file in /etc/apt/sources.list.d


claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
quarck
Registered Member
Posts
5
Karma
0
OS
I wanted to test how KDE Neon would work with Ubuntu 22.04 and ran "neon-preview-upgrade". Actually, I found out how to work around the issue. I just changed "ID" to "Ubuntu" in "/etc/os-release". I'm not sure if I should submit a bug about it and if developers are aware about broken "add-apt-repository".
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS
I think that they are working out the details still, things like modifying the core system, so the "neon-preview-upgrade" and other systems haven't been set up yet.

It probably is not useful to report as bug on this until after they announce public upgrade testing, once they have actually made all the changes needed for things like this, and done the basic automated and internal testing.


https://blog.neon.kde.org/2022/08/19/kd ... ng-update/


claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, mickae, Sogou [Bot]