-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 mirrors to speed-up ubuntu boxes #195
Comments
Sure, seems like a good idea. I would take a patch for that. If there's a way to do it via preseed.cfg that would be great. |
It should: https://help.ubuntu.com/lts/installation-guide/i386/preseed-contents.html#preseed-mirror However I have no idea about the syntax, since it accept a simple:
I can try later. |
I've tried, but it doesn't work, and it dosn't return me any error, so I suppose that preseed accept only plain hostname and nothing else. Alternatives? |
Has there been any progress on this? |
@mansona I am not a Ubuntu expert, so I don't know how to improve this. If you know, please feel free to send a patch! |
@juliandunn sure i wouldn't mind taking a punt at this, we've fixed it in our boxes by replacing the sources.list file with the "correct" version before running anything in chef. What does your build system look like for these boxes? i.e. where would i need to make the change so that it would get automatically built in in future? |
@mansona We don't currently have an autobuild system for these boxes, but I'm not sure that's relevant. Reading back in the thread, it looks like what we need to do here is to make sure the built box has a |
It's simple as putting in
where To clarify, this issue was created with the only objective to avoid using the hardcoded US mirrors. |
Cool, so a distro-version-independent script that could be applied to all current ubuntus (need to map the version to the string) would work. |
Maybe a dead-simple:
will do the trick. |
sed returns
|
ahhh, nevermind. |
btw, @gionn's response work like a charm! |
Please note that that mirrors.txt lists even the ugliests ubuntu mirrors and sometimes I get random errors. |
Doesn't seem like a great feature to implement then...? |
As far as I know mirrors.txt returns you the closest mirror(s) which sometimes are not the fastest. At the moment using the US mirrors for Europe really slows down the process a whole lot unfortunately. |
Looks like #323 solves this for Debian. |
Some |
Unfortunately Ubuntu doesn't offer a mirror redirector so our hands are kind of tied here - closing this issue as there isn't much that can be done here with the fact mirrors.txt seems inadequate and the mirror:// URI doesn't work across the board. Feel free to open a new one if someone finds a good holistic solution, otherwise we'll just have to deal until Canonical decides to set something up. |
Hi,
ubuntu boxes come with the us.archive.ubuntu.com mirror configured in sources.list, however ubuntu support this nice feature: http://askubuntu.com/a/37754/17602
Can't ubuntu boxes simply use that instead of the default us mirror?
The text was updated successfully, but these errors were encountered: