The Repository "***" does not have a Release file. unable to update

The repository 'http://raspbian.raspberrypi.org/raspbian stretch Release' does no longer have a Release file.

/etc/apt/sources.list

deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi

to

deb http://legacy.raspbian.org/raspbian/ stretch main contrib non-free rpi

not working options

/etc/apt/sources.list.d/raspi.list

deb http://archive.raspberrypi.org/debian/ stretch main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspberrypi.org/debian/ stretch main ui
  • apt autoremove
  • apt --fix-broken install

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).