Failed to fetch https://packages.sury.org/php/dists/jessie/main/binary-amd64/Packages HttpError404
it because the "jessie" has been removed.
to change it, follow this step:
sudo nano /etc/apt/sources.list.d/php.list
change this line
deb https://packages.sury.org/php/ jessie main
to this
deb https://packages.sury.org/php/ stretch main
save