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 repo] Invalid 'Date' entry in Release file w/ apt-1.1 #5174

Closed
himdel opened this issue Dec 4, 2015 · 22 comments
Closed

[apt repo] Invalid 'Date' entry in Release file w/ apt-1.1 #5174

himdel opened this issue Dec 4, 2015 · 22 comments
Assignees
Milestone

Comments

@himdel
Copy link

himdel commented Dec 4, 2015

With the new release of apt-1.1, the apt repositories at http://download.rethinkdb.com/apt/ are failing to update..

$ apt update
...
W: Failed to fetch http://download.rethinkdb.com/apt/dists/stretch/Release  Invalid 'Date' entry in Release file /var/lib/apt/lists/partial/download.rethinkdb.com_apt_dists_stretch_Release
E: Some index files failed to download. They have been ignored, or old ones used instead.

The invalid 'Date' entry specifically means no Date entry at all actually :).

This repo is probably not the right place for this issue, sorry, but there was no other; all other debian repo Release files do contain a Date entry, so assuming not an apt bug..

@danielmewes
Copy link
Member

Thanks for reporting this, this is definitely the right place for the issue.

@AtnNn could you look into this please?

@danielmewes danielmewes added this to the 2.2.x milestone Dec 4, 2015
@AtnNn
Copy link
Member

AtnNn commented Dec 4, 2015

We use freight to manage the apt repo. It does not seem to know about the Date field: https://github.com/rcrowley/freight/blob/master/lib/freight/apt.sh#L155-L160

It shouldn't be too hard to add.

@AtnNn
Copy link
Member

AtnNn commented Dec 4, 2015

This patch seems to fix the issue AtnNn/freight@6da26b6

@mmoll
Copy link

mmoll commented Dec 7, 2015

@AtnNn could you open a PR to the the freight repo? I'm also running into this.

@AtnNn
Copy link
Member

AtnNn commented Dec 7, 2015

@mmoll rcrowley/freight#65

@mmoll
Copy link

mmoll commented Dec 7, 2015

thanks 🙇

@DenJohX
Copy link

DenJohX commented Dec 12, 2015

So, until freight merges the patch and you install the updated version, there is no way to install rethink from the repos.

Could you apply the patch to your freight so we can install it?

@danielmewes
Copy link
Member

@DenJohX We will build the repo with the fix for the next update (RethinkDB 2.2.2), independently of whether the patch gets merged upstream or not.

My understanding is that this only applies if you're running an unstable distribution or manually install the new apt version. Is that correct? Or does this affect any supported distributions?
We could rebuild the repositories before the next release if necessary.

In the meantime you can of course work around this by downloading the package directly from https://download.rethinkdb.com/apt/pool/ .

@DenJohX
Copy link

DenJohX commented Dec 14, 2015

@danielmewes I'm on Debian testing, which is not a uncommon situation if you use your computer for developing.

But, yes, testing qualifies as an unstable distribution.

I will try to install the packages manually, though.

@himdel
Copy link
Author

himdel commented Dec 15, 2015

Agreed, when I reported it, apt-1.1 was in experimental so needed to be manually installed. It has since moved to sid (unstable) and stretch (testing). While stretch is not a release, I actually don't know anyone using Debian for daily work (as opposed to servers) and not using testing..

So.. 2.2.2 is probably fine, assuming it goes out after new years and not after easter.

@danielmewes
Copy link
Member

Yeah, 2.2.2 should be out shortly (this week probably).

@danielmewes danielmewes modified the milestones: 2.2.x, 2.2.2 Dec 15, 2015
@DenJohX
Copy link

DenJohX commented Dec 15, 2015

As a side note, currently the package doesn't work in Debian testing due to an unsatisfied dependency on libprotobuf9 which got renamed to libprotobuf9v5.

IMHO there should be support for Debian testing as it is more suited for developing/daily-use.

@AtnNn
Copy link
Member

AtnNn commented Dec 15, 2015

@DenJohX There are packages for stretch available on http://download.rehtinkdb.com/apt built against libprotobuf8v5.

@DenJohX
Copy link

DenJohX commented Dec 15, 2015

@AtnNn yo are right!, sorry I didnt noticed the stretch pool.

@danielmewes
Copy link
Member

@DenJohX @himdel Would you mind retrying? This should be fixed now.

@himdel
Copy link
Author

himdel commented Dec 22, 2015

@danielmewes Looks good, thanks!

@karmux
Copy link

karmux commented Aug 6, 2016

This started to happen again.

# apt-get update
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://download.rethinkdb.com/apt stretch InRelease
Hit:3 http://download.rethinkdb.com/apt stretch Release 
Get:4 http://download.rethinkdb.com/apt stretch Release.gpg [490 B]
Hit:5 http://ftp.acc.umu.se/debian stretch InRelease
Hit:6 http://ftp.vectranet.pl/debian stretch-updates InRelease
Fetched 490 B in 1s (265 B/s)                      
Reading package lists... Done
W: Invalid 'Date' entry in Release file /var/lib/apt/lists/download.rethinkdb.com_apt_dists_stretch_Release
W: The repository 'http://download.rethinkdb.com/apt stretch Release' provides only weak security information.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Using https://www.rethinkdb.com/docs/install/debian/

@danielmewes
Copy link
Member

Thanks for the report @karmux .

This might be a different problem from the original. Originally the Date entry was missing, but it's definitely there now: http://download.rethinkdb.com/apt/dists/stretch/Release

I also wonder why it's complaining about the weak security...

Will see if I can reproduce.

@danielmewes danielmewes reopened this Aug 8, 2016
@danielmewes
Copy link
Member

I can reproduce this after updating the version of apt in Debian Stretch. It works fine with the version that originally came with Stretch. We'll look into it.

@danielmewes danielmewes modified the milestones: 2.3.5, 2.2.2 Aug 8, 2016
@danielmewes
Copy link
Member

Looks like the data is supposed to be in UTC ( https://wiki.debian.org/RepositoryFormat#Date.2CValid-Until ), while our repositories specify it in PDT local time. Will need to try if that's actually the issue...

@danielmewes
Copy link
Member

Ok should be fixed now. @karmux Can you check again please?

@karmux
Copy link

karmux commented Aug 8, 2016

@danielmewes these warnings are gone now. Thanks!

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

No branches or pull requests

6 participants