I just found the new version of raspberrypi-sys-mods trying to auto-adjust the Raspbian mirrors from archive.raspbian.org and mirrordirector.raspbian.org to raspbian.raspberrypi.org on APT upgrade.
All 3 repos are (still) active providing the same set of packages, so I am not sure if this means that the first two will be shut down by times or something, moving everything into raspberrypi.org domain, but this needs to be observed at least I think.
raspbian.raspberrypi.org is not reachable via https and would be interesting to know if mirror direction is included. I didn't find any news/hint/info about this repo anywhere, not on raspbian.org nor raspberrypi.org nor anywhere via search machines.
Notes:
raspberrypi-sys-mods patch breaks /etc/apt/sources.listroot@DietPi:~# cat /etc/apt/sources.list
deb https://www.mirrorservice.org/sites/archive.raspbian.org/raspbian stretch main contrib non-free rpi
###
root@DietPi:~# apt-get dist-upgrade
raspberrypi-sys-mods
Updating apt sources from {mirrordirector,archive}.raspbian.org to raspbian.raspberrypi.org...
###
root@DietPi:~# cat /etc/apt/sources.list
deb https://www.mirrorservice.org/sites/raspbian.raspberrypi.org/raspbian stretch main contrib non-free rpi
E: Failed to fetch https://www.mirrorservice.org/sites/raspbian.raspberrypi.org/raspbian/dists/stretch/main/binary-armhf/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
apt-get dist-upgrade, and, are unable to update APT:cat << _EOF_ > /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian stretch main contrib non-free rpi
_EOF_
G_AGUP
why don't they know about this bug at theirs repo?
@SuBLiNeR
why don't they know about this bug at theirs repo?
Feel free to tell them ๐
Its a terrible patch (which is rare for RPi) and does not accommodate any changes to /etc/apt/sources.list. I can only assume it works with Raspbian untouched (untested).
@Fourdee that's why it wasn't working:
it was this in mine: https://www.mirrorservce.org/...... ?
Now as i edited it to only go directly to via http://rasbian.raspberry.org it is working...
@SuBLiNeR @Fourdee
Yeah it is not exactly a bug at their repo, it is just an absolutely negligent way of adjusting a config file ๐!!
Just sed {mirrordirector,archive}.raspbian.org sting within sources.list without assuring that it is not part of another URL like in our case... This even breaks sources.list if https://archive.raspbian.org was used.
As I use another mirror, I didn't face this bug ๐ .
โฌ: I just sent comment on their commit: https://github.com/RPi-Distro/raspberrypi-sys-mods/commit/f2db61056a1b8abfc8ace68c39a56d584938bff1
Ok: https://github.com/Fourdee/DietPi/commit/786e4d48395a4cf9ee595b888e7ef7bafb04fd18
G_AGDUG, which is the only way to install the updated raspberrypi-sys-mods package currently.G_AGDUG to force the update, then reset /etc/apt/sources.list with the new default http://raspbian.raspberrypi.org/raspbian@MichaIng
I think there will be no fast fix for this, thus if we want to prevent users from running into this issue, we need to switch the mirror ourself correctly.
Yep, so i went for forced upgrade to cause the issue, then reset to new default http://raspbian.raspberrypi.org/raspbian (cover all) https://github.com/Fourdee/DietPi/issues/1659#issuecomment-377561175
@Fourdee
Jep, I thought wrong, this is the only way, great job ๐! (removed above, to avoid confusion ๐)
Ok, great work on this @MichaIng ๐
Tested RPi with patch, running fine. I'll mark this as completed. We'll need to keep an eye out for when/if http://raspbian.raspberrypi.org/raspbian goes https, then update accordingly.
Most helpful comment
@SuBLiNeR @Fourdee
Yeah it is not exactly a bug at their repo, it is just an absolutely negligent way of adjusting a config file ๐!!
Just sed
{mirrordirector,archive}.raspbian.orgsting within sources.list without assuring that it is not part of another URL like in our case... This even breaks sources.list ifhttps://archive.raspbian.orgwas used.As I use another mirror, I didn't face this bug ๐ .
โฌ: I just sent comment on their commit: https://github.com/RPi-Distro/raspberrypi-sys-mods/commit/f2db61056a1b8abfc8ace68c39a56d584938bff1