Bug 361636

Summary: After Installation of Neon add-apt-repository functions wrongly
Product: [KDE Neon] neon Reporter: smihael <smihael>
Component: Packages Unstable EditionAssignee: Neon Mailing List <neon>
Status: RESOLVED FIXED    
Severity: normal CC: chgonzalezg, jr, sitter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: attachment-25571-0.html

Description smihael 2016-04-11 14:54:20 UTC
Ever since installing Neon on my Kubuntu 15.10  I'm unable to use add-apt-repository command. Te problem is that there is no distribution template for neon/wily. Maybe you should provide a patched software-properties-kde together with other updates in your repo. 

Some details:

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 95, in <module>
    sp = SoftwareProperties(options=options)
  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 89, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for neon/wily
Comment 1 Jonathan Riddell 2016-04-11 14:59:27 UTC
what version of base-files do you have installed?
Comment 2 smihael 2016-04-11 15:22:38 UTC
Created attachment 98338 [details]
attachment-25571-0.html

Version: 7.2ubuntu12neon1+git20160322.1157+15.10


On 11 April 2016 at 16:59, Jonathan Riddell via KDE Bugzilla <
bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=361636
>
> Jonathan Riddell <jr@jriddell.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |jr@jriddell.org
>
> --- Comment #1 from Jonathan Riddell <jr@jriddell.org> ---
> what version of base-files do you have installed?
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 3 Christian González 2016-04-26 12:02:42 UTC
Same here. My workaround is to "sed -i s/DISTRIB_ID=neon/DISTRIB_ID=Ubuntu/ /etc/lsb_release" but I think it will change again when update base-files from neon repo.
Comment 4 Harald Sitter 2016-04-28 15:20:29 UTC
The exception should be fixed with an upgrade.

That said, software-properties still is a pile of crap as it employs the quite possibly daftest heuristics possible to pick the series to add the repo for, so you'd end up with 16.10 repos instead of 16.04. I do have a pile of patches to deal with this but it won't get done this week for sure, probably not next either since at least two components that aren't ours need changing.
Comment 6 Jonathan Riddell 2016-06-08 12:02:39 UTC
I built a fork of software-properties with harald's patch in the neon archives