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

Bug#1033502: software-properties-common: got 'NoneType' object has no attribute 'people' while adding LP PPA

586 views
Skip to first unread message

Norbert

unread,
Mar 26, 2023, 7:00:04 AM3/26/23
to
Package: software-properties-common
Version: 0.99.30-4
Severity: normal
X-Debbugs-Cc: nrb...@gmail.com

Dear Maintainer,

to fix known VTE bug <https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=1033495> I need to add my Ubuntu PPA
<https://launchpad.net/~nrbrtx/+archive/ubuntu/vte> to the Debian 12 (bookworm)
system.

So I use below steps to reproduce:

```
apt-get install software-properties-common
apt-get update
apt-key adv --keyserver keyserver.ubuntu.com --recv
E756285F30DB2B2BB35012E219BFCAF5168D33A9
add-apt-repository -y "deb http://ppa.launchpad.net/nrbrtx/vte/ubuntu jammy
main"
```

I expect that the above "deb http://ppa.launchpad.net/nrbrtx/vte/ubuntu jammy
main" line will be added to /etc/apt/sources.list file, but instead I get the
following error:

```
# add-apt-repository -y "deb http://ppa.launchpad.net/nrbrtx/vte/ubuntu jammy
main"
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 78, in
__init__
self.lpppa
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'
```

On Debian 11 the above process works as expected.

I do not find my method as rarely used or wrong. So please adjust add-apt-
repository script or its underhoods to eliminate the above error.


-- System Information:
Debian Release: 12.0
APT prefers testing-security
APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-6-amd64 (SMP w/1 CPU thread; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US: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.74.0-3
ii gir1.2-packagekitglib-1.0 1.2.6-3
ii packagekit 1.2.6-3
ii python-apt-common 2.5.3
ii python3 3.11.2-1
ii python3-dbus 1.3.2-4+b1
ii python3-gi 3.42.2-3+b1
ii python3-software-properties 0.99.30-4

software-properties-common recommends no packages.

software-properties-common suggests no packages.

-- no debconf information

Norbert X

unread,
Apr 22, 2023, 1:30:04 PM4/22/23
to
user@debian:~$ apt-cache policy software-properties-common
software-properties-common:
  Installed: 0.99.30-4
  Candidate: 0.99.30-4
  Version table:
 *** 0.99.30-4 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
user@debian:~$ sudo add-apt-repository ppa:nrbrtx/xorg-hotkeys
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'
user@debian:~$

Norbert

unread,
Jun 1, 2023, 4:40:04 AM6/1/23
to
root@debian:~# add-apt-repository -y "deb http://ppa.launchpad.net/nrbrtx/vte/ubuntu jammy main"

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 78, in __init__
    self.lpppa
  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'
root@debian:~# apt-cache policy $(dpkg -S $(which add-apt-repository))

software-properties-common:
  Installed: 0.99.30-4
  Candidate: 0.99.30-4
  Version table:
 *** 0.99.30-4 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
N: Unable to locate package /usr/bin/add-apt-repository
root@debian:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
root@debian:~#

root@debian:~# add-apt-repository ppa:nrbrtx/xorg-hotkeys

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'
root@debian:~#



Do you plan to fix this bug before Debian 12 final release?

Norbert

unread,
Jun 1, 2023, 4:50:04 AM6/1/23
to

Julian Andres Klode

unread,
Jun 1, 2023, 5:00:05 AM6/1/23
to
Control: forcemerge 1029766 -1
No, this is a minor cosmetic issue for unsupported hacks,
it does not affect functionality.
--
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer i speak de, en
0 new messages