Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

unable to update via terminal

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
froda
Posts: 49
Joined: 2019-09-10 16:24
Has thanked: 1 time
Been thanked: 2 times

unable to update via terminal

#1 Post by froda »

Hi guys,

Every time I run the command "sudo apt-get update" I get the following message:

N: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Version' value from '10.2' to '10.3'
E: Release file for http://deb.debian.org/debian/dists/bust ... /InRelease is not valid yet (invalid for another 6h 29min 42s). Updates for this repository will not be applied.

E: Release file for http://security.debian.org/debian-secur ... /InRelease is not valid yet (invalid for another 7h 59min 11s). Updates for this repository will not be applied

I have tried this for several months now and it's always the same. Does anyone know why? Do you need to change anything in sources.list?

Thanks | froda

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: unable to update via terminal

#2 Post by arochester »

What does your sources list say?

As Root

Code: Select all

cat /etc/apt/sources.list
Copy and Paste the result here.

If you click on the blue links above they lead to GPG keys.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: unable to update via terminal

#3 Post by Head_on_a_Stick »

froda wrote:

Code: Select all

(invalid for another 6h 29min 42s)
Try

Code: Select all

timedatectl set-ntp on
deadbang

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: unable to update via terminal

#4 Post by sunrat »

arochester wrote:What does your sources list say?

As Root

Code: Select all

cat /etc/apt/sources.list
Shouldn't need to be root for that. But yes, we need to see sources.list.

(invalid for another 6h 29min 42s)
10.3 was only released yesterday, maybe waiting would help. Although it doesn't explain why it hasn't been working for several months. :?: :|

That said, I did dist-upgrade last night which pulled in 50 packages including a new kernel, which is the 10.3 upgrade. That was about 10 hours ago.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: unable to update via terminal

#5 Post by stevepusser »

Somehow I think that HOAS has the right idea, and the OP's machine's time is incorrect.
MX Linux packager and developer

froda
Posts: 49
Joined: 2019-09-10 16:24
Has thanked: 1 time
Been thanked: 2 times

Re: unable to update via terminal

#6 Post by froda »

my sources.list looks like this:

#

# deb cdrom:[Debian GNU/Linux 10.1.0 _Buster_ - Official amd64 DVD Binary-1 20190908-01:09]/ buster contrib main

# deb cdrom:[Debian GNU/Linux 10.1.0 _Buster_ - Official amd64 DVD Binary-1 20190908-01:09]/ buster contrib main

deb http://deb.debian.org/debian/ buster main
deb-src http://deb.debian.org/debian/ buster main

deb http://security.debian.org/debian-security buster/updates main
deb-src http://security.debian.org/debian-security buster/updates main

# buster-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ buster-updates main
deb-src http://deb.debian.org/debian/ buster-updates main

froda
Posts: 49
Joined: 2019-09-10 16:24
Has thanked: 1 time
Been thanked: 2 times

Re: unable to update via terminal

#7 Post by froda »

today my attempt to update looks like this:

Hit:1 http://deb.debian.org/debian buster InRelease
Ign:2 http://linux.dropbox.com/debian buster InRelease
Ign:3 http://dl.google.com/linux/earth/deb stable InRelease
Get:4 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:5 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
Get:6 http://linux.dropbox.com/debian buster Release [6,600 B]
Get:7 http://dl.google.com/linux/earth/deb stable Release [933 B]
Get:8 http://dl.google.com/linux/earth/deb stable Release.gpg [819 B]
Err:8 http://dl.google.com/linux/earth/deb stable Release.gpg
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
Reading package lists... Done
E: Release file for http://security.debian.org/debian-secur ... /InRelease is not valid yet (invalid for another 6h 32min 1s). Updates for this repository will not be applied.
E: Release file for http://deb.debian.org/debian/dists/bust ... /InRelease is not valid yet (invalid for another 7h 22min 52s). Updates for this repository will not be applied.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com/linux/earth/deb stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: unable to update via terminal

#8 Post by Head_on_a_Stick »

Head_on_a_Stick wrote:Try

Code: Select all

timedatectl set-ntp on
deadbang

froda
Posts: 49
Joined: 2019-09-10 16:24
Has thanked: 1 time
Been thanked: 2 times

Re: unable to update via terminal

#9 Post by froda »

Hi Head_on_Stick

I'm not sure what you mean by that, but I think I got it right because I only get error messages for signatures could not be verified because the public key is not available for google earth. Do I need to enter that command before updating every time?

Thanks

froda

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: unable to update via terminal

#10 Post by Head_on_a_Stick »

You have two errors now and yes, the second error is because of Google's key. The first error is because your system clock is wrong; read

Code: Select all

man timedatectl
to find out what my command does. You should always do that before running commands you do not understand.

And no, you shouldn't have to run it more than once.
deadbang

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1389
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 66 times

Re: unable to update via terminal

#11 Post by None1975 »

OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

froda
Posts: 49
Joined: 2019-09-10 16:24
Has thanked: 1 time
Been thanked: 2 times

Re: unable to update via terminal

#12 Post by froda »

thank you guys. my clock changed time zone but i was able to set it back.

froda

Post Reply