"add-apt-repository" 명령으로 역추적 오류 발생

"add-apt-repository" 명령으로 역추적 오류 발생

NVIDIA 그래픽 드라이버를 설치하고 싶습니다. 내 Python 버전은 3.11.2입니다.

$ sudo add-apt-repository ppa:graphics-drivers/ppa

이 명령은 다음 오류를 생성합니다.

    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'

"software-properties-common"을 다시 설치해 보았 $ sudo apt-get install software-properties-common으나 성공하지 못했습니다.

(저는 Ubuntu 23.04를 새로 설치했습니다)

답변1

나는 같은 문제가 있었고 python3-launchpadlib 설치 문제를 해결할 수 있었습니다:

apt install python3-launchpadlib

관련 정보