Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1054875: /usr/bin/add-apt-repository: python3-launchpadlib required for apt-add-repository

89 views
Skip to first unread message

Luke W Faraone

unread,
Oct 27, 2023, 5:10:05 PM10/27/23
to
Package: software-properties-common
Version: 0.99.30-4
Severity: normal
File: /usr/bin/add-apt-repository
X-Debbugs-Cc: lfar...@debian.org

Using the apt-add-repository command with a Launchpad PPA produces this
unhelpful error:

$ sudo add-apt-repository ppa:yuezk/globalprotect-openconnect
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 362, in <module>
sys.exit(0 if addaptrepo.main() else 1)
^^^^^^^^^^^^^^^^^
File "/usr/bin/add-apt-repository", line 345, in main
shortcut = handler(source, **shortcut_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line
40, in shortcut_handler
return handler(shortcut, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 86, in
__init__
if self.lpppa.publish_debug_symbols:
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 126, in
lpppa
self._lpppa = self.lpteam.getPPAByName(name=self.ppaname)
^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 113, in
lpteam
self._lpteam = self.lp.people(self.teamname)
^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'people'

I understand that adding a PPA is not a "supported" operation in Debian, but at
the very least a hint for the needed package should be displayed.


-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages software-properties-common depends on:
ii ca-certificates 20230311
ii gir1.2-glib-2.0 1.78.1-1
ii gir1.2-packagekitglib-1.0 1.2.7-1
ii packagekit 1.2.7-1
ii python-apt-common 2.6.0
ii python3 3.11.4-5+b1
ii python3-dbus 1.3.2-5
ii python3-gi 3.46.0-1
ii python3-software-properties 0.99.30-4

software-properties-common recommends no packages.

software-properties-common suggests no packages.

-- no debconf information
0 new messages