Dietpi: Raspbian mirror changed to "raspbian.raspberrypi.org"

Created on 29 Mar 2018  ยท  11Comments  ยท  Source: MichaIng/DietPi

Workaround: https://github.com/Fourdee/DietPi/issues/1659#issuecomment-377301370


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.

External Bug Information RPi Solution available

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.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

All 11 comments

Notes:

  • raspberrypi-sys-mods patch breaks /etc/apt/sources.list
root@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.

Temp workaround/fix for those who have run 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

  • Existing images should be fine, we do not run G_AGDUG, which is the only way to install the updated raspberrypi-sys-mods package currently.
  • Patch will run 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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aesirteam picture aesirteam  ยท  3Comments

Invictaz picture Invictaz  ยท  3Comments

Fourdee picture Fourdee  ยท  3Comments

k-plan picture k-plan  ยท  3Comments

mok-liee picture mok-liee  ยท  3Comments