Do you share your ADSL connection to your neighbors? Your broadband connection is shared by several computers on a small network or LAN?
If so, it is likely that everyone will complain that the internet is very slow when doing a system update in broad daylight as apt-get will occupy the entire bandwidth of your Internet connection.
To avoid this problem and have to do updates during the night, with a few lines in a text file you can limit the bandwidth consumed by apt-get and not saturate the Internet connection.
For Kubuntu, Ubuntu and company
Just as root, you must create a text file in the folder:
$ vi /etc/apt/apt.conf.d/limitlevel
The text file can have any name. This example ‘limitlevel’.
This file should contain the following lines of text:
Acquire
{
http {
Dl-Limit “100”;
}
}
The number 100 can be changed to your liking and represents the speed limit of apt-get expressed in KB / s (kilobytes per second).
For Debian Linux
For Debian you must edit the file
$ vi /etc/apt/apt.conf
and add the lines above and modify the value of discharge limits to your liking.