software-properties-gtk doesn't start

Bug #364092 reported by markpersy
66
This bug affects 11 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

ProblemType: Bug
Architecture: i386
Date: mon apr 20 13:39:08 CEST 2009
DistroRelease: Ubuntu 9.04 Release Candidate
Package: software-properties-gtk 0.71.5
PackageArchitecture: all
SourcePackage: software-properties

Linux HP550 2.6.28-11-generic #41-Ubuntu SMP Wed Apr 8 04:38:53 UTC 2009 i686 GNU/Linux

~~

markpersy@xsy-laptop32:~$ gksu --desktop /usr/share/applications/software-properties.desktop /usr/bin/software-properties-gtk
Traceback (most recent call last): File "/usr/bin/software-properties-gtk", line 104, in <module>
    app = SoftwarePropertiesGtk(datadir=data_dir, options=options, file=file)
  File "/usr/lib/python2.6/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 75, in __init__
    SoftwareProperties.__init__(self, options=options, datadir=datadir)
  File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 83, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 521, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python2.6/dist-packages/aptsources/distro.py", line 90, in get_sources
    raise NoDistroTemplateException("Error: could not find a "
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template
markpersy@xsy-laptop32:~$

Revision history for this message
Vicente Ruiz (uve) wrote :

The same problem. I just change my sources.list (jaunty -> karmic) and software-properties-gtk doesn't run.

$ sudo software-properties-gtk
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 104, in <module>
    app = SoftwarePropertiesGtk(datadir=data_dir, options=options, file=file)
  File "/usr/lib/python2.6/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 75, in __init__
    SoftwareProperties.__init__(self, options=options, datadir=datadir)
  File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 83, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 521, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python2.6/dist-packages/aptsources/distro.py", line 90, in get_sources
    raise NoDistroTemplateException("Error: could not find a "
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template

Revision history for this message
David Nielsen (davidnielsen-deactivatedaccount) wrote :

Same thing on Koala.

david@dawkins:~$ sudo software-properties-gtk
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 104, in <module>
    app = SoftwarePropertiesGtk(datadir=data_dir, options=options, file=file)
  File "/usr/lib/python2.6/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 75, in __init__
    SoftwareProperties.__init__(self, options=options, datadir=datadir)
  File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 83, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 521, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python2.6/dist-packages/aptsources/distro.py", line 90, in get_sources
    raise NoDistroTemplateException("Error: could not find a "
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template

Revision history for this message
nullack (nullack) wrote :

Confirmed on Karmic

Changed in software-properties (Ubuntu):
status: New → Confirmed
Revision history for this message
Alessandro Ranaldi (ciaolo) wrote :

Same thing for me, even after today's updates.

Revision history for this message
Nikola Yanev (gericom) wrote :

the same here on Karmic!

Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 104, in <module>
    app = SoftwarePropertiesGtk(datadir=data_dir, options=options, file=file)
  File "/usr/lib/python2.6/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 75, in __init__
    SoftwareProperties.__init__(self, options=options, datadir=datadir)
  File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 83, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 521, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python2.6/dist-packages/aptsources/distro.py", line 90, in get_sources
    raise NoDistroTemplateException("Error: could not find a "
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template

Revision history for this message
Nikola Yanev (gericom) wrote :

fixed here !!!
open the file /usr/share/python-apt/templates/Ubuntu.info and add this inside, just before the jaunty one, or replace it with the attached file, that i've allready editted:

Suite: karmic
RepositoryType: deb
BaseURI: http://archive.ubuntu.com/ubuntu/
MatchURI: archive.ubuntu.com/ubuntu
BaseURI-powerpc: http://ports.ubuntu.com/
MatchURI-powerpc: ports.ubuntu.com|archive.ubuntu.com
BaseURI-lpia: http://ports.ubuntu.com/
MatchURI-lpia: ports.ubuntu.com|archive.ubuntu.com
MirrorsFile-amd64: /usr/share/python-apt/templates/Ubuntu.mirrors
MirrorsFile-i386: /usr/share/python-apt/templates/Ubuntu.mirrors
Description: Ubuntu 9.10 'Karmic Koala'
Component: main
CompDescription: Officially supported
CompDescriptionLong: Canonical-supported Open Source software
Component: universe
CompDescription: Community-maintained
CompDescriptionLong: Community-maintained Open Source software
Component: restricted
CompDescription: Non-free drivers
CompDescriptionLong: Proprietary drivers for devices
Component: multiverse
CompDescription: Restricted software
CompDescriptionLong: Software restricted by copyright or legal issues

Suite: karmic
MatchName: .*
BaseURI: cdrom:\[Ubuntu.*9.10
MatchURI: cdrom:\[Ubuntu.*9.10
Description: Cdrom with Ubuntu 9.10 'Karmic Koala'
Available: False
Component: main
CompDescription: Officially supported
Component: restricted
CompDescription: Restricted copyright

Suite: karmic-security
ParentSuite: karmic
RepositoryType: deb
BaseURI: http://security.ubuntu.com/ubuntu/
MatchURI: archive.ubuntu.com/ubuntu|security.ubuntu.com
BaseURI-powerpc: http://ports.ubuntu.com/
MatchURI-powerpc: ports.ubuntu.com/ubuntu
BaseURI-lpia: http://ports.ubuntu.com/
MatchURI-lpia: ports.ubuntu.com/ubuntu
Description: Important security updates

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

Suite: karmic-proposed
ParentSuite: karmic
RepositoryType: deb
Description: Pre-released updates

Suite: karmic-backports
ParentSuite: karmic
RepositoryType: deb
Description: Unsupported updates

Revision history for this message
Alessandro Ranaldi (ciaolo) wrote :

Thank you, Nikola.

Solved with editing the file

/usr/share/python-apt/templates/Ubuntu.info

and replacing every "jaunty" with "karmic".

Revision history for this message
markpersy (markpersy) wrote :

I have replaced Ubuntu.info but the error remains and software-properties-gtk doesn't start..

Revision history for this message
Alessandro Ranaldi (ciaolo) wrote :

Did you replace it with the Nikola's one? I just open my own with gedit and replaced "jaunty" in "karmic" (case sensitive, whole word) and solved. If you can't get your old file, you should wait for the official fix.

Revision history for this message
Jarkko Lietolahti (jarkko-jab) wrote :

Nikola's information fixed the problem on my KK.

Revision history for this message
Jarkko Lietolahti (jarkko-jab) wrote :

Simple search-and-replace resulted funny;

Description: Ubuntu 9.04 'karmic Jackalope'

;)

Revision history for this message
Martin Erik Werner (arand) wrote :

Seems to be resolved now.

Revision history for this message
Martin Olsson (mnemo) wrote :

Works here as well, most likely fixed by mvo's python-apt upload on may 5th.
Please re-open if anyone with karmic + latest updates finds it broken.

Changed in software-properties (Ubuntu):
status: Confirmed → Fix Released
stavares (stavares)
Changed in software-properties (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

How come you reopened this without leaving a comment?

Changed in software-properties (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Vicente Ruiz (uve) wrote :

It works fine with Karmic :)

Revision history for this message
Kjell L. (lkjell) wrote :

But the same happen in Lucid now. Guess I have to do the same just replace with lucid.

Changed in software-properties (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Please don't open bugs that are already fixed. The Lucid issue is because python-apt isn't updated yet. This is something which happens at the start of every single cycle. We're not even at the point where the toolchain is uploaded yet.

Changed in software-properties (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
EwenS (stephen-ewen) wrote :

I have this problem in lucid.

Revision history for this message
Kjell L. (lkjell) wrote : Re: [Bug 364092] Re: software-properties-gtk doesn't start

Does you have a lucid entry in this file
/usr/share/python-apt/templates/Ubuntu.info ?

On 13 May 2010 06:42, EwenS <email address hidden> wrote:
> I have this problem in lucid.
>
> --
> software-properties-gtk doesn't start
> https://bugs.launchpad.net/bugs/364092
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “software-properties” package in Ubuntu: Fix Released
>
> Bug description:
> ProblemType: Bug
> Architecture: i386
> Date: mon apr 20 13:39:08 CEST 2009
> DistroRelease: Ubuntu 9.04 Release Candidate
> Package: software-properties-gtk 0.71.5
> PackageArchitecture: all
> SourcePackage: software-properties
>
> Linux HP550 2.6.28-11-generic #41-Ubuntu SMP Wed Apr 8 04:38:53 UTC 2009 i686 GNU/Linux
>
> ~~
>
> markpersy@xsy-laptop32:~$ gksu --desktop /usr/share/applications/software-properties.desktop /usr/bin/software-properties-gtk
> Traceback (most recent call last):  File "/usr/bin/software-properties-gtk", line 104, in <module>
>    app = SoftwarePropertiesGtk(datadir=data_dir, options=options, file=file)
>  File "/usr/lib/python2.6/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 75, in __init__
>    SoftwareProperties.__init__(self, options=options, datadir=datadir)
>  File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 83, in __init__
>    self.reload_sourceslist()
>  File "/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py", line 521, in reload_sourceslist
>    self.distro.get_sources(self.sourceslist)
>  File "/usr/lib/python2.6/dist-packages/aptsources/distro.py", line 90, in get_sources
>    raise NoDistroTemplateException("Error: could not find a "
> aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template
> markpersy@xsy-laptop32:~$
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/364092/+subscribe
>

--
KL

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.