Ubuntu – Can the update manager download only a single package at a time

11.04downloadspackage-managementupdate-manager

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

Best Answer

  • 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