Unable to update package cache. Please try "sudo apt update"

I was trying to update pihole by using pihole -up but the first message shows:

[āœ—] Update local cache of available packages
  Error: Unable to update package cache. Please try "sudo apt update"

I tried to use "sudo apt-get update" & "sudo apt update" & "sudo apt upgrade" and nothing works. This is errors shown after i type sudo apt-get update :

Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
Ign:5 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu jammy InRelease
Ign:6 http://ppa.launchpad.net/webupd8team/java/ubuntu jammy InRelease
Err:7 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu jammy Release
  404  Not Found [IP: 91.189.95.85 80]
Err:8 http://ppa.launchpad.net/webupd8team/java/ubuntu jammy Release
  404  Not Found [IP: 91.189.95.85 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/mc3man/xerus-media/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.
E: The repository 'http://ppa.launchpad.net/webupd8team/java/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.

What's wrong with my Raspberry Pi ? Anyone can help ? Sorry I'm a newbie

This isn't a Pi-hole issue.

Your OS's package manager is telling you that some launchpad software package seems incompatible or unsupported with your OS release.

Once you have sorted that issue, PI-hole's update can commence cleanly.

Can you help me to remove those repositories ? I’m using raspberry pi 4 for my pi-hole

nano /etc/apt/sources.list

Remove or comment out the lines, then sudo apt update && sudo apt upgrade

It didn't work. There isn't any lines containing PPA launchpad shown above. But only these lines are shown

deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
# Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source'
# deb-src http://deb.debian.org/debian bullseye main contrib non-free
# deb-src http://security.debian.org/debian-security bullseye-security main contrib non>
# deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free

I tried to remove those lines and run sudo apt update && sudo apt upgrade. It shows the same error as before.

Finally i found the solution!
These commands work for me

sudo add-apt-repository --remove ppa:webupd8team/java
sudo add-apt-repository --remove ppa:mc3man/xerus-media