I created a local Ubuntu repository and redirected archive.ubuntu.com, us.archive.ubuntu.com, archive.canonical.com, and packages.medibuntu.org to it so that we can do updates locally and not keep bothering the real mirrors for every desktop in our office (not to mention building thumb drives). I had a machine that kept giving me the following error after doing this, but none of the others did:
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/jaunty/Release Unable to find expected entry main/binary-i386/Packages in Meta-index file (malformed Release file?)
E: Some index files failed to download, they have been ignored, or old ones used instead.
Since it was only one machine, I figured I had some inconsistencies with my apt database so the fix was simply to remove /var/lib/apt/list directory and then rebuild it and do a new apt-get update. So if you have the same isssue here’s the steps to fix it:
# sudo rm -rf /var/lib/apt/lists
# sudo mkdir -p /var/lib/apt/lists/partial
# sudo apt-get update