Unable to add repository

Questions about applications and software
Forum rules
Before you post please read this

Unable to add repository

Postby marietta_greg on Thu Feb 28, 2013 6:06 pm

Hi, I'm trying to add a repository from the command line and get this error:

sudo apt-add-repository ppa:am-monkeyd/nautilus-elementary-ppa
[sudo] password for greg:
You are about to add the following PPA to your system:

More info: https://launchpad.net/~am-monkeyd/+arch ... entary-ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

Traceback (most recent call last):
File "/usr/bin/apt-add-repository", line 160, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 96, in __init__
self.reload_sourceslist()
File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 584, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 87, in get_sources
raise NoDistroTemplateException("Error: could not find a "
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template

I then tried to add it using GUI. Software sources won't even start - no error - just nothing happens. Synaptic, when I accesss Setting / Repositories, I am met with "Repositories Changed The repository information has changed. You have to click on the "Reload" button for your changes to take effect" Click Reload and try again, message repeats.

I have attempted apt-get update & upgrade, both run normally, no errors from either. Why do I get the above errors and how can I correct?

Thanks
marietta_greg
Level 2
Level 2
 
Posts: 80
Joined: Thu Feb 02, 2012 10:57 pm

Linux Mint is funded by ads and donations.
 

Re: Unable to add repository

Postby glebihan on Thu Feb 28, 2013 6:14 pm

Which version of mint are you running ?
glebihan
Level 1
Level 1
 
Posts: 24
Joined: Sun Nov 06, 2011 11:49 am

Re: Unable to add repository

Postby marietta_greg on Thu Feb 28, 2013 6:20 pm

Sorry, should have included that in my post - Mint 13 - MATE
marietta_greg
Level 2
Level 2
 
Posts: 80
Joined: Thu Feb 02, 2012 10:57 pm

Re: Unable to add repository

Postby glebihan on Thu Feb 28, 2013 6:49 pm

Well, I just checked the PPA, and it does not provide packages for that version.
It's actually been dead for quite a while.

But it would be good to try adding another PPA to see if the problem comes from the PPA itself or if there's really something wrong on your system.
glebihan
Level 1
Level 1
 
Posts: 24
Joined: Sun Nov 06, 2011 11:49 am

Re: Unable to add repository

Postby marietta_greg on Thu Feb 28, 2013 10:24 pm

OK. So the PPA may be old and invalid. Nevertheless, why is Software Sources not even starting, and Synaptic fails with that message about repositories changed and relaad does not resolve it?
marietta_greg
Level 2
Level 2
 
Posts: 80
Joined: Thu Feb 02, 2012 10:57 pm

Re: Unable to add repository

Postby glebihan on Fri Mar 01, 2013 1:55 am

Please provide the output of :
Code: Select all
sudo apt-get update
glebihan
Level 1
Level 1
 
Posts: 24
Joined: Sun Nov 06, 2011 11:49 am

Re: Unable to add repository

Postby marietta_greg on Fri Mar 01, 2013 9:03 am

routine run through repositories. No errors

Fetched 3,436 kB in 13s (254 kB/s)
Reading package lists... Done
marietta_greg
Level 2
Level 2
 
Posts: 80
Joined: Thu Feb 02, 2012 10:57 pm

Re: Unable to add repository

Postby wavespot on Fri Mar 01, 2013 9:14 am

Due to wrong python template file (located in /usr/share/python-apt/)

You should have :
-rw-r--r-- 1 root root 4,2K avril 18 2012 Debian.info
-rw-r--r-- 1 root root 26K avril 18 2012 Debian.mirrors
-rw-r--r-- 1 root root 1,6K avril 18 2012 gNewSense.info
-rw-r--r-- 1 root root 16K juin 1 2010 gNewSense.mirrors
-rw-r--r-- 1 root root 21K déc. 18 12:31 LinuxMint.info
-rw-r--r-- 1 root root 2,5K nov. 12 16:55 LinuxMint.mirrors
-rw-r--r-- 1 root root 34K avril 18 2012 Ubuntu.info
-rw-r--r-- 1 root root 16K avril 18 2012 Ubuntu.mirrors

LinuxMint.info is provided by 'mintupdate' package

Or, your lsb-release file is wrong : 'lsb_release -cs' should print nadia
wavespot
Level 1
Level 1
 
Posts: 39
Joined: Tue Jan 17, 2012 6:44 am

Re: Unable to add repository

Postby marietta_greg on Fri Mar 01, 2013 1:08 pm

lsb_release -cs
n/a


I shall compare the python template to what you provided.

-rw-r--r-- 1 root root 4295 Apr 18 2012 Debian.info
-rw-r--r-- 1 root root 25802 Apr 18 2012 Debian.mirrors
-rw-r--r-- 1 root root 1590 Apr 18 2012 gNewSense.info
-rw-r--r-- 1 root root 16349 Jun 1 2010 gNewSense.mirrors
-rw-r--r-- 1 root root 21463 Dec 18 06:31 LinuxMint.info
-rw-r--r-- 1 root root 2552 Nov 12 10:55 LinuxMint.mirrors
-rw-r--r-- 1 root root 34444 Apr 18 2012 Ubuntu.info
-rw-r--r-- 1 root root 15549 Apr 18 2012 Ubuntu.mirrors

Even though lsb_release returned "n/a", the top of the LinuxMint.info files shows "Debian" instead of Nadia, which is lower down (??)
Suite: debian
RepositoryType: deb
BaseURI: http://packages.linuxmint.com/
MatchURI: packages.linuxmint.com
MirrorsFile-amd64: /usr/share/python-apt/templates/LinuxMint.mirrors
MirrorsFile-i386: /usr/share/python-apt/templates/LinuxMint.mirrors
Description: Linux Mint Debian
Component: main
CompDescription: Main packages
CompDescriptionLong: Main packages
Component: upstream
CompDescription: Upstream packages
CompDescriptionLong: Upstream packages
Component: import
CompDescription: Imported packages
CompDescriptionLong: Imported packages
Component: backport
CompDescription: Backports
CompDescriptionLong: Backported packages
Component: romeo
CompDescription: Unstable packages
CompDescriptionLong: Unstable packages

Suite: nadia
RepositoryType: deb
BaseURI: http://packages.linuxmint.com/
MatchURI: packages.linuxmint.com
MirrorsFile-amd64: /usr/share/python-apt/templates/LinuxMint.mirrors
MirrorsFile-i386: /usr/share/python-apt/templates/LinuxMint.mirrors
Description: Linux Mint 14 'Nadia'
Component: main
CompDescription: Main packages
CompDescriptionLong: Main packages
Component: upstream
CompDescription: Upstream packages
CompDescriptionLong: Upstream packages
Component: import
CompDescription: Imported packages
CompDescriptionLong: Imported packages
Component: backport
CompDescription: Backports
CompDescriptionLong: Backported packages
Component: romeo
CompDescription: Unstable packages
CompDescriptionLong: Unstable packages

Suite: maya
RepositoryType: deb
BaseURI: http://packages.linuxmint.com/
MatchURI: packages.linuxmint.com
MirrorsFile-amd64: /usr/share/python-apt/templates/LinuxMint.mirrors
MirrorsFile-i386: /usr/share/python-apt/templates/LinuxMint.mirrors
Description: Linux Mint 13 'Maya'
Component: main
CompDescription: Main packages
CompDescriptionLong: Main packages
Component: upstream
CompDescription: Upstream packages
CompDescriptionLong: Upstream packages
Component: import
CompDescription: Imported packages
CompDescriptionLong: Imported packages
Component: backport
CompDescription: Backports
CompDescriptionLong: Backported packages
Component: romeo
CompDescription: Unstable packages
CompDescriptionLong: Unstable packages

Thanks!
marietta_greg
Level 2
Level 2
 
Posts: 80
Joined: Thu Feb 02, 2012 10:57 pm

Re: Unable to add repository

Postby wavespot on Fri Mar 01, 2013 2:23 pm

Your info file is correct

Your lsb-release file is not , it should be like this :

DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=13
DISTRIB_CODENAME=maya
DISTRIB_DESCRIPTION="Linux Mint 13 Maya"

Replace maya with Nadia, of course

It's located in /etc
wavespot
Level 1
Level 1
 
Posts: 39
Joined: Tue Jan 17, 2012 6:44 am

Re: Unable to add repository

Postby marietta_greg on Fri Mar 01, 2013 3:05 pm

edited /etc/lsb_release, found :

grep: /etc/linuxmint/info: No such file or directory
DISTRIB_grep: /etc/linuxmint/info: No such file or directory
DISTRIB_grep: /etc/linuxmint/info: No such file or directory
DISTRIB_grep: /etc/linuxmint/info: No such file or directory

Replace it with

DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=13
DISTRIB_CODENAME=maya
DISTRIB_DESCRIPTION="Linux Mint 13 Maya"

lsb_release -cs returned nadia.

Then I executed apt-get update and dist-upgrade, no errors, nothing upgraded.

Attempted my PPA add from command line - SUCCESSFUL!

Attempted Software Soruces - OPENED!

Attempted Synaptic Settings / Repositories - OPENED (I know - I'm being anal here, but just to be sure)

So thank you, I think my issue is resolved. Do you have any idea how my lsb_release got hosed??

Thanks very much!!!
marietta_greg
Level 2
Level 2
 
Posts: 80
Joined: Thu Feb 02, 2012 10:57 pm

Re: Unable to add repository

Postby wavespot on Sat Mar 02, 2013 10:39 am

No idea, really

Glad to hear your issue is solved :)
wavespot
Level 1
Level 1
 
Posts: 39
Joined: Tue Jan 17, 2012 6:44 am

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: det4100 and 10 guests