Ubuntu 11.10 中的 PPA 错误

Ubuntu 11.10 中的 PPA 错误

当我尝试使用 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

如何修复?我使用 Ubuntu 11.10。

谢谢

答案1

刚刚在干净的 Ubuntu 11.10 上测试了相同的 PPA。我建议您使用更新管理器中显示的任何更新来更新您的 Ubuntu。我所做的唯一更改是添加所有官方存储库(多版本、Universe……)和更新选项卡选项的所有 4 个(反向移植、受限……)

原因可能是你使用的 Python 版本与系统所需的版本不同。我本来要上传一张图片,但 imgur 和 askubuntu 不知怎么的出现了问题。

更新 - 我终于!!!将图片上传至 imgur。

在此处输入图片描述

从这张令人难以置信的、非常耐心上传的图片中可以看出,PPA 确实有效。所以,就像我建议的那样,首先看看你是否有另一个 PPA,或者是否更改了 Ubuntu 11.10 默认自带的 Python。

相关内容