I am using Ubuntu 19.04 version. And when I want to install any software, I always use sudo apt-get update
.
But it is failing every time. I am new in this field. Because of that error I can not install GNU Emacs.
It is showing:
$ sudo apt-get update
Hit:1 http://ppa.launchpad.net/kelleyk/emacs/ubuntu disco InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Reading package lists... Done
E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 40min 7s). Updates for this repository will not be applied.
sudo timedatectl set-ntp off && sudo timedatectl set-ntp on
to force update of time. Had lots of issues with this when dual booting as windows kept updating time differently from ubuntu. :) – Smurfz87 Nov 18 '19 at 13:16