2

When I do an apt-get update, I get a hash sum mismatch error for one of my local repositories.

I have already read the solutions on here and in other places, but those solutions don't apply because I believe that this is a server-side error.

I did find several things which talk about setting an option available in 16.04 called Acquire-by-hash to yes. But it wasn't very clear to me how to use this option.

In which file exactly do you use this option, and what does the entry look like?

1 Answer 1

3

As root:

sudo -s
echo "Acquire::By-Hash \"yes\"; ">/etc/apt/apt.conf.d/01byhash
apt update

Regards

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.