Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am getting the following errors when I try to use a PPA:

~$ sudo add-apt-repository ppa:freefilesync/ffs
[sudo] password for *****: 
You are about to add the following PPA to your system:
FreeFileSync Releases
This is the official FreeFileSync repository for Ubuntu. It is recommended to use this to keep your FreeFileSync tool easily updated.

For instuctions on how to add the repository, see http://www.dlecan.com/archives/56-How-to-install-FreeFileSync-on-Ubuntu-PPA.html or (fr) http://doc.ubuntu-fr.org/freefilesync.
More info: https://launchpad.net/~freefilesync/+archive/ffs
Press [ENTER] to continue or ctrl-c to cancel adding it

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 95, in run
self.add_ppa_signing_key(self.ppa_path)
File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 107, in add_ppa_signing_key
print "Error reading %s: %s" % (lp_url, e[1])
NameError: global name 'lp_url' is not defined

how to fix it? I use Ubuntu 11.10.

Thanks

share|improve this question
    
What does lsb_release -a show? –  Uri Herrera Feb 23 '12 at 2:21
add comment

1 Answer

up vote 0 down vote accepted

Just tested the same PPA on a clean Ubuntu 11.10. I suggest you update your Ubuntu with any updates shown in Update Manager. The only changes I did were to add all the official repositories (multiver, universe...) and all 4 of the Update tab option (backport, restricted...)

A cause might be that the version of Python you are using is different from the one the system needs. I was going to upload an image but somehow imgur and askubuntu have a problem.

UPDATE - I FINALLY!!!! uploaded the image to imgur.

enter image description here

As you can see from this incredible and very patiently uploaded image, the PPA actually works. So like i suggested, first see if you have another PPA or have change the Python that comes by default with Ubuntu 11.10.

share|improve this answer
    
Hi Luis, thanks. I successfully from your tips –  Fanoy Feb 25 '12 at 13:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.