[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#595801: snapshot.debian.org: apt (by default) complains about expired Release files

tags 595801 patch

On Tue, Sep 07, 2010 at 04:18:33PM +0200, Peter Palfrader wrote:
> On Mon, 06 Sep 2010, Chris Butler wrote:
> > Since the snapshot.debian.org source is obviously temporary, I just
> > worked around this with:
> >
> > 	sudo aptitude -o 'Acquire::Check-Valid-Until=false' update
> >
> > (not sure if there's a better workaround, but this works)
> >
> > I guess something along these lines should be mentioned in the paragraph
> > about adding apt sources?
> Maybe.  Can you provide a patch?

Provided below is a patch adding Chris' suggestion to the usage section.

 web/app/snapshot/templates/description.mako |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/web/app/snapshot/templates/description.mako b/web/app/snapshot/templates/description.mako
index 7affc5c..ebe55eb 100644
--- a/web/app/snapshot/templates/description.mako
+++ b/web/app/snapshot/templates/description.mako
@@ -61,6 +61,12 @@ browse the list as mentioned above.  Valid date formats are
 is no import at the exact time you specified you will get the latest
 available timestamp which is before the time you specified.
+It may be necessary to ignore the Valid-Until header within Release files, in order
+to prevent apt from disregarding snapshot entries ("Release file expired").  Use
+<code>aptitude -o Acquire::Check-Valid-Until=false update</code> or
+<code>apt-get -o Acquire::Check-Valid-Until=false update</code> for this purpose.
 <p style="margin-top:2em;">
 If you want anything related to a specific package simply enter the

Reply to: