Tuesday, April 19, 2011

Ubuntu Linux: apt-get upgrade invalid content-range header

"The HTTP server sent an invalid Content-Range header (IP: IP Address)"

Sometime you encounter this error, when update your system using sudo apt-get update && sudo apt-get upgrade. This could be caused by some incomplete packages downloaded that still cached in /var/cache/apt/archives/partial.

Open your terminal, go to the particular folder by typing cd /var/cache/apt/archives/partial and remove all the incomplete download packages using sudo rm *, and try again.