3

The ubuntu repositories dists folder contains both Packages, Packages.gz and Packages.bz2 files. Out of these, apt-get uses one of them during an update. Where can I configure apt to choose a particular compression type file instead of others.

I am in a university using an internal mirror and for some reason one of the files is giving a Hash mismatch error. I think if I use bz2 instead of gzip, perhaps I can get past the erroneous file. My apt-get update always tries to fetch .gz files and fails on one of them.

girardengo
  • 5,005

1 Answers1

4

To answer your question, you can try this apt option:

sudo apt-get -o Acquire::CompressionTypes::Order::=bz2 update

See the man page for apt.conf.

But I'm pretty sure that your problem comes from the repository itself.