Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 3331  / 2 Years ago, sat, august 6, 2022, 5:27:08

I need the update manager to only download a single package at a time and not try to download multiple packages at once.



My slow internet cannot handle multiple connections; slows the download to a crawl and some packages will reset themselves halfway through when they time-out.



EDIT



When using apt-get update multiple repositories get checked:
Multiple repositories checked at once using apt-get update



When using apt-get upgrade multiple packages are downloaded:
Multiple Packages downloaded at once using apt-get update


More From » 11.04

 Answers
3

You have two options here.



The Queue-Mode configuration option



The default, "host", creates one outgoing connection for each host. If you set it to "access" it will create one connection per URI type (which I understand to mean, one for http, one for ftp, and so on - since most connections are http, this means it'll access each server sequentially).



One way to do this that will also apply to update-manager is to:



echo 'Acquire::Queue-Mode "access";' >/etc/apt/apt.conf.d/75download


if you want to try it with apt-get once to see if it helps:



apt-get -o Acquire::Queue-mode=access update


The Acquire::http::Dl-Limit option



This is similarly to reduce the bandwidth used to something your connection can handle (and as per the manpage, "this option implicit deactivates the download from multiple servers at the same time").



echo 'Acquire::http::Dl-Limit "70";' >/etc/apt/apt.conf.d/75download


or



apt-get -o Acquire::http::Dl-Limit=70 update

[#41396] Sunday, August 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rmiend

Total Points: 292
Total Questions: 101
Total Answers: 111

Location: Azerbaijan
Member since Tue, Aug 9, 2022
2 Years ago
;