Automatizing apt-mirrors selection












0















I have ubuntu 15.04 on my PC and I have issues everytime I make an update or I install packets mirrors are so slow and it's almost impossible to download with an average speed of 20 KB/s.



I've tried to switch to other mirrors and test them until I find one that boosts up the download speed (all the servers have the same speed most of the time) but this method is a real time wasting one.



How can I automatize the selection of the fastest mirror for apt ? is there a script to ping mirrors and select the best one temporary ?



Thanks.










share|improve this question


















  • 1





    possible duplicate of How do you select the fastest mirror from the command line?

    – mikewhatever
    Sep 20 '15 at 14:42











  • I've tried the netselect based solution, it's not what I'm looking for as it's selects a mirror by latency ( the closest one ) not the one with better bandwidth

    – storm
    Sep 20 '15 at 15:01
















0















I have ubuntu 15.04 on my PC and I have issues everytime I make an update or I install packets mirrors are so slow and it's almost impossible to download with an average speed of 20 KB/s.



I've tried to switch to other mirrors and test them until I find one that boosts up the download speed (all the servers have the same speed most of the time) but this method is a real time wasting one.



How can I automatize the selection of the fastest mirror for apt ? is there a script to ping mirrors and select the best one temporary ?



Thanks.










share|improve this question


















  • 1





    possible duplicate of How do you select the fastest mirror from the command line?

    – mikewhatever
    Sep 20 '15 at 14:42











  • I've tried the netselect based solution, it's not what I'm looking for as it's selects a mirror by latency ( the closest one ) not the one with better bandwidth

    – storm
    Sep 20 '15 at 15:01














0












0








0








I have ubuntu 15.04 on my PC and I have issues everytime I make an update or I install packets mirrors are so slow and it's almost impossible to download with an average speed of 20 KB/s.



I've tried to switch to other mirrors and test them until I find one that boosts up the download speed (all the servers have the same speed most of the time) but this method is a real time wasting one.



How can I automatize the selection of the fastest mirror for apt ? is there a script to ping mirrors and select the best one temporary ?



Thanks.










share|improve this question














I have ubuntu 15.04 on my PC and I have issues everytime I make an update or I install packets mirrors are so slow and it's almost impossible to download with an average speed of 20 KB/s.



I've tried to switch to other mirrors and test them until I find one that boosts up the download speed (all the servers have the same speed most of the time) but this method is a real time wasting one.



How can I automatize the selection of the fastest mirror for apt ? is there a script to ping mirrors and select the best one temporary ?



Thanks.







networking updates downloads apt-mirror






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 20 '15 at 14:35









stormstorm

4,02032335




4,02032335








  • 1





    possible duplicate of How do you select the fastest mirror from the command line?

    – mikewhatever
    Sep 20 '15 at 14:42











  • I've tried the netselect based solution, it's not what I'm looking for as it's selects a mirror by latency ( the closest one ) not the one with better bandwidth

    – storm
    Sep 20 '15 at 15:01














  • 1





    possible duplicate of How do you select the fastest mirror from the command line?

    – mikewhatever
    Sep 20 '15 at 14:42











  • I've tried the netselect based solution, it's not what I'm looking for as it's selects a mirror by latency ( the closest one ) not the one with better bandwidth

    – storm
    Sep 20 '15 at 15:01








1




1





possible duplicate of How do you select the fastest mirror from the command line?

– mikewhatever
Sep 20 '15 at 14:42





possible duplicate of How do you select the fastest mirror from the command line?

– mikewhatever
Sep 20 '15 at 14:42













I've tried the netselect based solution, it's not what I'm looking for as it's selects a mirror by latency ( the closest one ) not the one with better bandwidth

– storm
Sep 20 '15 at 15:01





I've tried the netselect based solution, it's not what I'm looking for as it's selects a mirror by latency ( the closest one ) not the one with better bandwidth

– storm
Sep 20 '15 at 15:01










1 Answer
1






active

oldest

votes


















0














Check out the answer here: https://askubuntu.com/a/141536/38557. It's a bit long but should do exactly what you're trying to achieve.






share|improve this answer


























  • I saw this but netselect will rank mirrors by to latency not according to their download speed.

    – storm
    Sep 20 '15 at 14:55











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f676310%2fautomatizing-apt-mirrors-selection%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Check out the answer here: https://askubuntu.com/a/141536/38557. It's a bit long but should do exactly what you're trying to achieve.






share|improve this answer


























  • I saw this but netselect will rank mirrors by to latency not according to their download speed.

    – storm
    Sep 20 '15 at 14:55
















0














Check out the answer here: https://askubuntu.com/a/141536/38557. It's a bit long but should do exactly what you're trying to achieve.






share|improve this answer


























  • I saw this but netselect will rank mirrors by to latency not according to their download speed.

    – storm
    Sep 20 '15 at 14:55














0












0








0







Check out the answer here: https://askubuntu.com/a/141536/38557. It's a bit long but should do exactly what you're trying to achieve.






share|improve this answer















Check out the answer here: https://askubuntu.com/a/141536/38557. It's a bit long but should do exactly what you're trying to achieve.







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 13 '17 at 12:25









Community

1




1










answered Sep 20 '15 at 14:50









labarnalabarna

1,70211325




1,70211325













  • I saw this but netselect will rank mirrors by to latency not according to their download speed.

    – storm
    Sep 20 '15 at 14:55



















  • I saw this but netselect will rank mirrors by to latency not according to their download speed.

    – storm
    Sep 20 '15 at 14:55

















I saw this but netselect will rank mirrors by to latency not according to their download speed.

– storm
Sep 20 '15 at 14:55





I saw this but netselect will rank mirrors by to latency not according to their download speed.

– storm
Sep 20 '15 at 14:55


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f676310%2fautomatizing-apt-mirrors-selection%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局