PDA

View Full Version : apt Errorr "Invalid 'Date' entry in Release file" when using Local Repo



tk83
January 15th, 2017, 06:11 AM
Just for info: If you're using your own local repository it looks like the latest version of apt has decided that the 'Date' field in the InRelease file must be in UTC, and not any other timezone (even if the offset is specified). The error you might start getting is similar to:

W: Invalid 'Date' entry in Release file /var/lib/apt/lists/_srv_packages_local-xenial_._InRelease

Ensure the date is in UTC in your generated (or manually created InRelease), e,g:
Date: Sun, 15 Jan 2017 04:59:43 +0000

(I use a Bash script to manually generate the Release file for my repo, I changed the relevant line to: echo -e "Date: `LANG=C date --utc -R`" >> Release)

QIII
January 15th, 2017, 06:19 AM
Moved to the Cafe.

Not a support request.