sudo add-apt-repository –remove does not work

I am trying to remove a repository from my Linux-Distribution (Kali):

sudo add-apt-repository --remove ppa:yann1ck/onedrive

Unfortunately that does not work. I execute the command above (no errors). After that I am updating:

sudo apt update

The following message is displayed:

Ign:1 http://ppa.launchpad.net/yann1ck/onedrive/ubuntu jammy InRelease
Hit:2 https://brave-browser-apt-release.s3.brave.com stable InRelease                                             
Err:3 http://ppa.launchpad.net/yann1ck/onedrive/ubuntu jammy Release                                              
  404  Not Found [IP: 185.125.190.52 80]
Hit:4 http://ftp.halifax.rwth-aachen.de/kali kali-rolling InRelease                                               
Hit:5 https://packagecloud.io/AtomEditor/atom/any any InRelease
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/yann1ck/onedrive/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: https://packagecloud.io/AtomEditor/atom/any/dists/any/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

Can someone tell me what I am doing wrong?

Thanks in advance.
Frank

>Solution :

i was previously unable to delete repository and this steps help me
you can
try this link

Leave a Reply