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

Update locate_mirror #2678

Merged
merged 5 commits into from
Sep 19, 2024
Merged

Update locate_mirror #2678

merged 5 commits into from
Sep 19, 2024

Conversation

enoch85
Copy link
Member

@enoch85 enoch85 commented Sep 19, 2024

Replace with a more modern take on it https://github.com/vegardit/fast-apt-mirror.sh

Not a perfect solution, but worth trying. apt-select is deprecated it seems.

Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
@enoch85
Copy link
Member Author

enoch85 commented Sep 19, 2024

cc @aaaskew Please test.

Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
@enoch85
Copy link
Member Author

enoch85 commented Sep 19, 2024

This is now tested and works, will merge to sort the bug and improve later.

@enoch85 enoch85 merged commit 5e7d183 into main Sep 19, 2024
7 checks passed
@enoch85 enoch85 deleted the locate-mirror branch September 19, 2024 16:32
@aaaskew
Copy link
Contributor

aaaskew commented Sep 20, 2024

This has worked for me in Ubuntu 24 but my old upgraded to Ubuntu 22 system did something weird.

I am not sure if this is due to network issues or what it downloaded but it appears it tried and failed to upgrade the sources.list (fortunately)

This is what I saw:

Screenshot 2024-09-20 at 16 41 59

@enoch85
Copy link
Member Author

enoch85 commented Sep 20, 2024

Hmm, maybe we should limit it to Ubuntu 24 then... Can you please try again?

Also, you have backups in etc/apt/ ;)

@aaaskew
Copy link
Contributor

aaaskew commented Sep 21, 2024

Tried again with Ubuntu 24 and 22 and it works for me with the re-test. I am assuming the error was due to a DNS or download failure that disappeared on retry. The sources.list did not actually get changed when that screenshot occured. The script just went a little mad. I assume it is due to some output being taken as what should be displayed in the dialog but that text is actually the script itself.

So consider the re-test ok for me.

@enoch85
Copy link
Member Author

enoch85 commented Sep 21, 2024

Nice! Thanks for confirming. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants