-
Notifications
You must be signed in to change notification settings - Fork 13
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
Use mirror list files for apt #475
base: main
Are you sure you want to change the base?
Conversation
This is in draft until I have a chance to test it. |
a678196
to
1dc82e8
Compare
Validated on Ubuntu 20.04 ARM64 |
I think the apt ignore failures was put in to handle when the CS mirror is down/unavailable. I tried putting mirror.cs.jmu.edu in /etc/hosts to simulate a failure, and Ansible refuses to proceed, even though the upstream mirror is a very viable choice. |
So to be clear, the apt cache is still being properly updated for the upstream Mint/Ubuntu repos? If |
Confirmed, an installation will complete as long as there's a viable mirror. I'd prefer we maintain this behavior. |
50d52cc
to
2b3eb58
Compare
|
When using a scheme for a mirror that is not HTTP, such as ftp:, mirror:, or file:, mintupdate reports a message that the mirror cannot be reached. In actuality, the mirror very well may be reachable but it cannot check that using an HTTP request. Rather than trying to implement support for all the protocols in sources.list(5), this skips the check for any mirror_url that doesn't start with `http`. ref: jmunixusers/cs-vm-build#475
2b3eb58
to
35611e1
Compare
Alright and I think this one is actually ready for review too. Tested by just blocking 134.126.0.0/16. It took a second to timeout but it eventually figured itself out, ignored the "down" mirror, and proceeded. No complaints from mintupdate on config format or anything like that. |
This uses the apt lock workaround to replace an ignore_errors on update.
Closes: #446