Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I am downloading a very large package and my internet connection isn't the fastest, so browsing the web at the same time is a pain. How can I limit the bandwidth apt-get uses?

share|improve this question

marked as duplicate by Eliah Kagan, Sylvain Pineau, Eric Carvalho, zwets, Kaz Wolfe Sep 16 '14 at 1:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 36 down vote accepted

A trick I picked up when adjusting someone else's computer:

  • For temporary limits, add the -o flag to your apt-get command:

    sudo apt-get -o Acquire::http::Dl-Limit=25 install <package>
  • For permanent throttling, create the file /etc/apt/apt.conf.d/75lowerspeed and save the following in it:

       Queue-mode "access";
          Dl-Limit "25";

Both methods limits apt-get to 25 kBps (kilobytes per second).

share|improve this answer
I was writing about wondershaper, but your answer is better. – enzotib Jun 24 '11 at 17:55
so finally I beat YOU for once :-D – Rinzwind Jun 24 '11 at 17:58
@Rinzwind - I don't know how you keep coming up with these answers, but please keep doing so! – boehj Jun 24 '11 at 18:00
@boehj just well homed searching skillz if I may say so myself ;) – Rinzwind Jun 24 '11 at 19:10
Well, I'm digging ur skillz my man. Keep it up! – boehj Jun 24 '11 at 19:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.