Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apt-get update failing when mirrors are being updated #313

Closed
antonio opened this issue Oct 14, 2015 · 6 comments
Closed

apt-get update failing when mirrors are being updated #313

antonio opened this issue Oct 14, 2015 · 6 comments
Labels

Comments

@antonio
Copy link
Contributor

antonio commented Oct 14, 2015

We have a server that is mirroring every single apt repo our infrastructure depends on. Those mirrors are imported to local repositories, which are then published. There is a cron job running several times a day that updates the mirrors, re-imports the contents to the local repositories and runs aptly publish update.

When another host is running apt-get update and the sync job is being run (which by the way takes around 20 minutes), we are sometimes experiencing the following error in the client:

Ign https://mirrors precise/multiverse Translation-en
Ign https://mirrors precise/restricted Translation-en
Ign https://mirrors precise/universe Translation-en
Ign https://mirrors precise-security/main Translation-en
Ign https://mirrors precise-security/multiverse Translation-en
Ign https://mirrors precise-security/restricted Translation-en
Ign https://mirrors precise-security/universe Translation-en
Ign https://mirrors precise-updates/main Translation-en
Ign https://mirrors precise-updates/multiverse Translation-en
Ign https://mirrors precise-updates/restricted Translation-en
Ign https://mirrors precise-updates/universe Translation-en
Fetched 6251 kB in 16s (380 kB/s)
W: Failed to fetch https://mirrors/precise/dists/precise/main/binary-i386/Packages  Hash Sum mismatch

W: Failed to fetch https://mirrors/precise/dists/precise/restricted/binary-i386/Packages  Hash Sum mismatch

W: Failed to fetch https://mirrors/precise/dists/precise/universe/binary-i386/Packages  Hash Sum mismatch

W: Failed to fetch https://mirrors/precise/dists/precise/multiverse/binary-i386/Packages  Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.

According to this comment and also this one, this could be an issue in the design of apt, but I'd like to get a second opinion if possible.

Thanks!

@smira smira added the bug label Dec 3, 2015
@smira smira added this to the v0.9.6 milestone Dec 3, 2015
@smira smira modified the milestones: v0.9.6, v0.9.7 Jan 24, 2016
@smira
Copy link
Contributor

smira commented Feb 14, 2016

@smira
Copy link
Contributor

smira commented Feb 18, 2016

PR #354 is first step towards fixing hash sum mismatch problem

@smira smira modified the milestones: v0.9.7, v0.9.8 Apr 18, 2016
@smira smira removed this from the v0.9.8 milestone Mar 27, 2017
@sliverc
Copy link
Contributor

sliverc commented Jun 18, 2018

I think this has been solved by introducing Acquire-By-Hash support. See #664

Closing this issue. If there is still anything concerning this issue not covered by acquire by hash please comment.

@sliverc sliverc closed this as completed Jun 18, 2018
@antonio
Copy link
Contributor Author

antonio commented Jun 18, 2018

I think this has been solved by introducing Acquire-By-Hash support. See #664

Certainly! Thanks for cleaning up after me 😄

@divyaan23
Copy link

Hi,
When I am using "aptly task run" using file like below. I am unable to update the mirrors with command mentioned in repos.txt
aptly task run -filename="repos.txt"

repos.txt content
mirror create -architectures=amd64 bionic-test4 http://archive.ubuntu.com/ubuntu bionic main
mirror update bionic-test4

Kindly help.
Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants