Cannot do first update for a straight from raspberrypi.org download of 2017-09-07-raspian-stretch image due to errors:
pi@RWPi:~ $ sudo apt-get update Ign:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease Ign:2 http://archive.raspberrypi.org/debian stretch InRelease Err:3 http://mirrordirector.raspbian.org/raspbian stretch Release 404 Not Found Err:4 http://archive.raspberrypi.org/debian stretch Release 404 Not Found [IP: 18.104.22.168 80] Reading package lists... Done E: The repository 'http://mirrordirector.raspbian.org/raspbian stretch Release' does no longer 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://archive.raspberrypi.org/debian stretch Release' does no longer 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.
(Have been chasing this on raspberrypi.org forum but no answers there. Latest post with config info: https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=196666&e=1&view=unread#p1230124
Edit: $ curl -4 http://mirrordirector.raspbian.org/raspbian/dists/stretch/Release
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>404 - Not Found</title> </head> <body> <h1>404 - Not Found</h1> </body> </html>
curl http://mirrordirector.raspbian.org/raspbian/dists/stretch/Release, do you also get a 404 or the actual file? Digging further up the stack, you can run
sudo apt-get update --print-uristo see if it's somehow using the wrong URL which leads to that 404.
sourcepackages you can use
deb-srcon it. There are also other posts here on Pi Exchange dealing with mirrordirector problems.