Ubuntu – apt-get commands pausing at ‘Waiting for headers’

aptUbuntu

I have a VM running Ubuntu Server 9.10 running a basic web server setup. Whenever I run an apt function it will pause for around 1 minute at 'Waiting for headers…'. It will eventually clear through and continue as normal but it is a bit of an annoyance.

Everything else on the server seems to run fine. Any ideas?

Best Answer

Some repos have issues with http/1.1 pipelining.

Try adding the following to /etc/apt/apt.conf.d/piplining-off.conf:

Acquire::http::Pipeline-Depth "0";