Subject: python-software-properties: Exception when add-apt-repository PPA Package: python-software-properties Version: 0.76.7debian2+nmu1 Severity: normal
I tried to add the Ubuntu Wine repository using the command line suggested on the Wine Wiki, but it failed: $ sudo add-apt-repository ppa:ubuntu-wine/ppa Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 65, in <module> if not sp.add_source_from_line(line): File "/usr/lib/python2.6/dist- packages/softwareproperties/SoftwareProperties.py", line 630, in add_source_from_line (deb_line, file) = expand_ppa_line(line.strip(), self.distro.codename) File "/usr/lib/python2.6/dist-packages/softwareproperties/ppa.py", line 47, in expand_ppa_line sourceslistd = apt_pkg.Config.find_dir("Dir::Etc::sourceparts") AttributeError: 'module' object has no attribute 'Config' If PPA repositories are not supported in base Debian, an appropriate error message should be displayed. Otherwise I'd expect that the new repository is added to sources.list or the sources.list.d directory. -- System Information: Debian Release: wheezy/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.39-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python-software-properties depends on: ii iso-codes 3.26-1 ISO language, territory, currency, ii lsb-release 3.2-27 Linux Standard Base version report ii python 2.6.6-14 interactive high-level object-orie ii python-apt 0.8.0 Python interface to libapt-pkg ii python-gnupginterface 0.3.2-9.1 Python interface to GnuPG (GPG) ii python2.6 2.6.7-1 An interactive high-level object-o ii python2.7 2.7.1-8 An interactive high-level object-o ii unattended-upgrades 0.72.3 automatic installation of security python-software-properties recommends no packages. python-software-properties suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org