Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspbian mirror changed to "raspbian.raspberrypi.org" #1659

Closed
MichaIng opened this issue Mar 29, 2018 · 11 comments

Comments

@MichaIng
Copy link
Owner

commented Mar 29, 2018

Workaround: #1659 (comment)


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.

@Fourdee

This comment has been minimized.

Copy link
Collaborator

commented Mar 29, 2018

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

This comment has been minimized.

Copy link
Collaborator

commented Mar 29, 2018

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
@ghost

This comment has been minimized.

Copy link

commented Mar 29, 2018

why don't they know about this bug at theirs repo?

@Fourdee

This comment has been minimized.

Copy link
Collaborator

commented Mar 29, 2018

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

@ghost

This comment has been minimized.

Copy link

commented Mar 29, 2018

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

@MichaIng

This comment has been minimized.

Copy link
Owner Author

commented Mar 29, 2018

@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: RPi-Distro/raspberrypi-sys-mods@f2db610

Fourdee added a commit that referenced this issue Mar 30, 2018
v6.6
+ General | RPi: Resolved issue with updating 'raspberrypi-sys-mods',
where the patch would incorrectly apply a new apt mirror, breaking the
ability to update:
#1659 (comment)
@Fourdee

This comment has been minimized.

Copy link
Collaborator

commented Mar 30, 2018

Ok: 786e4d4

  • 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
@Fourdee

This comment has been minimized.

Copy link
Collaborator

commented Mar 30, 2018

@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) #1659 (comment)

@MichaIng

This comment has been minimized.

Copy link
Owner Author

commented Mar 30, 2018

@Fourdee
Jep, I thought wrong, this is the only way, great job 😃! (removed above, to avoid confusion 😆)

@Fourdee

This comment has been minimized.

Copy link
Collaborator

commented Mar 30, 2018

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.

@Fourdee

This comment has been minimized.

Copy link
Collaborator

commented Mar 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.