freight icon indicating copy to clipboard operation
freight copied to clipboard

"No Hash entry in Release file" failure on apt-1.1

Open mattock opened this issue 9 years ago • 15 comments

We're using freight to manage our apt repositories and have recently received reports that the repos don't work on Debian Jessie or Ubuntu Trusty if apt-1.1 is installed. Here's an example error:

# apt-get -qq update
W: Failed to fetch http://swupdate.openvpn.net/apt/dists/trusty/Release  No Hash entry in
 Release file /var/lib/apt/lists/swupdate.openvpn.net_apt_dists_trusty_Release, which is
 considered strong enough
 for security purposes
E: Some index files failed to download. They have been ignored, or old ones used instead.

This issue was originally reported to our forums. We're using the latest freight release available in the freight apt repos for Ubuntu 12.04 (=0.3.5-1) Let me know if you need more information to resolve this.

mattock avatar Dec 31 '15 10:12 mattock

like #65 this needs to get implemented into freight

mmoll avatar Dec 31 '15 16:12 mmoll

I setup a freight repo based on uwabami-freight and could not reproduce this problem on Ubuntu 16.04 alpha 1 updated to the most recent packages. The apt version on that platform is 1.1.10, which is the most recent stable release of apt, according to Git tags in https://github.com/Debian/apt.

I also tested the repo on Debian 7 which has apt 0.9.7.9 and it still worked, so there's probably no horrible regression there.

The uwabami-freight fork contains three commits of interest:

  • "Add Date:, Valid-Until"
  • "support debian.tar.xz"
  • "Add support {,.orig,.debian}.tar.xz"

This means that it fixes the issue discussed in pull request https://github.com/rcrowley/freight/pull/65.

With stock freight 0.3.5-1 freight + Ubuntu 16.04 alpha 1 I got the same failure as shown in the previous comment ("No hash entry...").

mattock avatar Jan 26 '16 15:01 mattock

I can confirm the same result as @mattock; the uwabami-freight fork fixes it for Debian sid and stretch.

Looks like the freight project may have been abandoned?

JulesAU avatar Feb 04 '16 06:02 JulesAU

If that should really be the case (@rcrowley?), a "canonical fork"[tm] would be very good to have.

mmoll avatar Feb 04 '16 17:02 mmoll

I sent email to @rcrowley suggesting asking if he'd be willing to grant other people permissions to the project.

mattock avatar Feb 08 '16 09:02 mattock

Moving to an own GH organization might also be an option.

mmoll avatar Feb 08 '16 10:02 mmoll

regarding the original problem: which version of freight are you using? this seems to have been fixed by #52, which came in after 0.3.5 was tagged and released.

mmoll avatar Feb 10 '16 21:02 mmoll

I was using the latest Ubuntu 12.04 package (0.3.5-1).

mattock avatar Feb 11 '16 08:02 mattock

@mattock then you definitely need the patch in #52 and uwabami/freight@08c87d9

mmoll avatar Feb 11 '16 09:02 mmoll

There has been no response to my email sent on 8th Feb from @rcrowley . I checked if an organization called "freight" could be created, but that user/organization name has already been taken.

mattock avatar Feb 11 '16 09:02 mattock

@mattock "apt-freight" or "freight-apt" maybe?

mmoll avatar Feb 11 '16 12:02 mmoll

I'd like to switch the RPMs in Fedora to point at a well-maintained fork too, rather than carrying the patches above (and also #69). I'd be happy to help with maintenance.

domcleal avatar Feb 11 '16 14:02 domcleal

@domcleal : I sent you an invite the GitHub organization called freight-team I forked the main freight repository there, and so now we need to start cherry-picking the useful patches.

@mmoll : shall I make you a team member also?

I will ask if our company could host the Debian packages for freight. Apparently the current ones have been generated with FPM.

mattock avatar Mar 03 '16 10:03 mattock

@mattock thanks, all received. It might be good to enable issues on that repo so we have somewhere to discuss things. I opened a PR for the date/valid-until fix discussed above, then we'll have to see about tidying up and cutting a release.

domcleal avatar Mar 03 '16 10:03 domcleal

@mattock I'd be delighted :)

mmoll avatar Mar 03 '16 11:03 mmoll