Join the Conversation

1 Comment

  1. Not working for me:
    root@ha:/home/pi# lsb_release -a
    No LSB modules are available.
    Distributor ID: Raspbian
    Description: Raspbian GNU/Linux 11 (bullseye)
    Release: 11
    Codename: bullseye

    root@ha:/home/pi# add-apt-repository ppa:deadsnakes/ppa
    Traceback (most recent call last):
    File “/usr/bin/add-apt-repository”, line 95, in
    sp = SoftwareProperties(options=options)
    File “/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py”, line 109, in __init__
    self.reload_sourceslist()
    File “/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py”, line 599, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)
    File “/usr/lib/python3/dist-packages/aptsources/distro.py”, line 91, in get_sources
    raise NoDistroTemplateException(
    aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/bullseye

    So it seems that apt expects a version for raspbian and deadsnakes only have for normal Debian.

Leave a comment

Your email address will not be published.