wiki:apt_get_troubleshooting
Table of Contents
apt-get troubleshooting
Failed to update apt cache: E:Release file for http://security.debian.org/debian-security/dists/bullseye-security/InRelease is not valid yet (invalid for another 7h 31min 19s).
Full error:
msg: 'Failed to update apt cache: E:Release file for http://security.debian.org/debian-security/dists/bullseye-security/InRelease is not valid yet (invalid for another 7h 31min 19s). Updates for this repository will not be applied., E:Release file for http://deb.debian.org/debian/dists/bullseye-updates/InRelease is not valid yet (invalid for another 1d 5h 44min 11s). Updates for this repository will not be applied., E:Release file for http://deb.debian.org/debian/dists/bullseye-backports/InRelease is not valid yet (invalid for another 1d 5h 44min 11s). Updates for this repository will not be applied.'
Check the date and time on the server.
date
It's probably wrong. Reboot server.
reboot
Tested on
- vagrant debian 11
See also
References
wiki/apt_get_troubleshooting.txt · Last modified: 2022/03/18 11:13 by antisa