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 jammy InRelease
Hit:2 stable InRelease                                             
Err:3 jammy Release                                              
  404  Not Found [IP: 80]
Hit:4 kali-rolling InRelease                                               
Hit:5 any InRelease
Reading package lists... Done
E: The repository ' 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: 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.

>Solution :

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

Leave a Reply