How to limit the download speed of APT?

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?

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

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).

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply