I added:
packages.sury.org/php
through the script, I got on deb.sury.org
===========================================
#!/bin/sh
# To add this repository please do:
if [ "$(whoami)" != "root" ]; then
SUDO=sudo
fi
${SUDO} apt-get update
${SUDO} apt-get -y install apt-transport-https lsb-release ca-certificates curl
${SUDO} curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
${SUDO} sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
${SUDO} apt-get update
===========================================
I am getting this error when I run the script:
Ign:5 https://packages.sury.org/php kali-rolling InRelease
Err:6 https://packages.sury.org/php kali-rolling Release
404 Not Found [IP: 102.129.144.44 443]
Can someone help me fix this issue?