[invalid] APT missing Mint Distribution Template

Moderator: emorrp1

Forum rules
Please read How to report bugs in Gloria before posting a bug report
And please no support questions here

[invalid] APT missing Mint Distribution Template

Postby endontoddy on Sat Aug 29, 2009 4:19 am

Hi chaps,

Installed the package 'software-properties-gtk' (v0.71.5) and get the following output when running from bash:

Code: Select all
endontoddy@Shredder /usr/share/python-apt/templates $ 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


After a little debugging it appears that the template it is expecting to find is an entry something like this:

Code: Select all
Suite: jaunty
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.04 'Jaunty Jackalope'
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


for LinuxMint in a .info file in /usr/share/python-apt/templates, but there is only the standard Debian and Ubuntu entries
endontoddy
Level 1
Level 1
 
Posts: 8
Joined: Sat Aug 22, 2009 7:23 pm

Linux Mint is funded by ads and donations.
 

Re: APT missing Mint Distribution Template

Postby Husse on Sun Aug 30, 2009 4:30 pm

This is not a bug - 'software-properties' do not work in Mint as can be found in the release notes
If we overcome the problems with it, partly exposed here, we will probably include it
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19717
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden


Return to Bugs in Gloria

Who is online

Users browsing this forum: No registered users and 1 guest