Adding ppa in debian fails

When trying to add the ppa in debian trixie whe following error is returned:

$ sudo add-apt-repository ppa:fenics-packages/fenics
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'

That error message doesn’t make sense. Make sure your system is up to date

sudo apt update
sudo apt upgrade
sudo apt dist-upgrade

ok, I did that and there was some packages to remove and update with the dist-upgrade but the error message when adding the ppa is still there

(thank you any way for the help)

It’s a strange error. Perhaps you need to install python3-launchpadlib

dist-upgrading didn’t solve the problem, but what “did” solve the problem was installing python3-launchpadlib .

The problem now is on the ppa itself, as I get the error:

Repository: 'deb https://ppa.launchpadcontent.net/fenics-packages/fenics/ubuntu/ trixie main'
Description:
This PPA provides packages for the FEniCS project (http://fenicsproject.org).
More info: https://launchpad.net/~fenics-packages/+archive/ubuntu/fenics
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Adding deb entry to /etc/apt/sources.list.d/fenics-packages-ubuntu-fenics-trixie.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/fenics-packages-ubuntu-fenics-trixie.list
Adding key to /etc/apt/trusted.gpg.d/fenics-packages-ubuntu-fenics.gpg with fingerprint 6C1DA1C0EC4B649179C1C7437C3297BD11D01687
Obj:1 http://deb.debian.org/debian testing InRelease
Obj:2 https://deb.nodesource.com/node_20.x nodistro InRelease                                             
Obj:3 https://packages.microsoft.com/repos/ms-teams stable InRelease                                      
Obj:4 https://packages.microsoft.com/repos/code stable InRelease                                                       
Ign:5 https://ppa.launchpadcontent.net/fenics-packages/fenics/ubuntu trixie InRelease                                  
Err:6 https://ppa.launchpadcontent.net/fenics-packages/fenics/ubuntu trixie Release
  404  Not Found [IP: 185.125.190.80 443]
Des:7 https://zotero.retorque.re/file/apt-package-archive ./ InRelease [2.153 B]
Leyendo lista de paquetes... Hecho   
E: El repositorio «https://ppa.launchpadcontent.net/fenics-packages/fenics/ubuntu trixie Release» no tiene un fichero de Publicación.
N: No se puede actualizar de un repositorio como este de forma segura y por tanto está deshabilitado por omisión.
N: Vea la página de manual apt-secure(8) para los detalles sobre la creación de repositorios y la configuración de usuarios.

(sorry for the end in spanish)

Sorry, I was writing you a message while you answered.

Maybe the server is down, try it later.
Or perhaps you have a firewall blocking you.

Oh, ok, I’ll try later, and tomorrow from a different network. I’m sorry I though it was a problem with the “ubuntu trixie” which I thought was wrong.

Thank you very much

I know this is not exacly the place but. Say I am not able to fix it. Say I try to use the conda installation.

How would I enable complex number support with the conda installation?

Because in https://fenicsproject.org/download/ it looks as the instructions for complex support are only for the installation with apt

Technically ubuntu trixie is wrong. If your system is debian, not ubuntu, then use the debian packages not the ppa. The ppa is for ubuntu only.

Ok, I was following the instructions from https://fenicsproject.org/download/ where it says that for debian you should first add the ppa.

The installation should be then:

sudo apt install fenicx
sudo apt install python3-dolfinx-complex

and then exporting both enviroment variables if I want to use it, right?

The instructions are for ubuntu really. We had assumed you know not to use the ppa if you’re on Debian instead, but you’re right, the instructions are not strictly correct.

python3-dolfinx-complex will get you the complex build. Remember to activate it via PETSC_DIR/SLEPC_DIR

I’m sorry for not knowing it xD