Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Archive repository for Debian Squeeze

I still use Debian Squeeze, and since this release has been archived (Feb 29, 2016) I use the archives repositories on archive.debian.org

deb http://archive.debian.org/debian-archive/debian/ squeeze main contrib non-free
deb http://archive.debian.org/debian-archive/debian/ squeeze-lts main contrib non-free

Since 2 days , I get this error message with aptitude update: (same with apt-get)

E: Release file expired, ignoring http://archive.debian.org/debian/dists/squeeze-lts/Release (invalid since 2d 17h 24                                                                                                                        min 57s)

With increasing time of course. I tried many other archives repositories but same error. I found this workaround:

aptitude -o Acquire::Check-Valid-Until=false update

It works, but I would find a solution without this option. I have no fast possibility to update aptitude parameters on all servers I'm running.

By the way the question is: what is the problem with repositories ? Am I doing something wrong ?

I found no update or news about repositories problem on Debian site/mailing list.

like image 924
Leahkim Avatar asked Mar 18 '16 09:03

Leahkim


People also ask

Where are old Debian packages?

If you need to access one of the old distributions of Debian, you can find them at the Debian Archives, http://archive.debian.org/debian/. Releases are stored by their codenames under the dists/ directory. As time goes on we will expire the binary packages for old releases.

Where are the repositories in Debian?

The package repository information is stored on the /etc/apt/sources. list file. You may edit the /etc/apt/sources.

What is a Debian archive mirror?

debian.org alias. This alias usually points to a mirror that syncs regularly and quickly and carries all of Debian's architectures. The Debian archive is always available via HTTP at the /debian location on the server. Other mirror sites may have restrictions on what they mirror (due to space restrictions).

What is the Debian repository?

A Debian repository is a set of Debian packages organized in a special directory tree which also contains a few additional files containing indexes and checksums of the packages. If a user adds a repository to his /etc/apt/sources.


1 Answers

Create a file with setting:

echo 'Acquire::Check-Valid-Until "false";' >/etc/apt/apt.conf.d/90ignore-release-date

The release-files of the repository have an expire date (Valid-until).

See the part in the documentation: https://wiki.debian.org/RepositoryFormat#Date.2CValid-Until

like image 67
Heisenberg Avatar answered Sep 21 '22 12:09

Heisenberg