You are not logged in.

#1 2015-08-30 15:30:08

Swizarc
Member
Registered: 2015-08-30
Posts: 9

Key BD8984D2 was created x seconds in the future

Running into an issue trying to set up and import a key for a custom repo. This is on a fresh install.

If I try to issue a sudo pacman-key --init I get the following:

gpg: key BD8984D2 was created 27073 seconds in the future (time warp or clock problem)

My hardware clock is set to UTC and is correct and the date and time are set correctly as well. No matter what I do with pacman-key I receive the error. I've tried going though https://wiki.archlinux.org/index.php/Pacman-key but obviously I'm stuck at initialising the keyring.

How can I resolve this?

Offline

#2 2015-08-30 18:54:18

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,116

Re: Key BD8984D2 was created x seconds in the future

It sounds to me that the custom repo has the clock problem, not you. You may be able to force it by passing in gpg's --ignore-time-conflict option somehow through pacman-key (check the man page if that's a possibility).

Offline

#3 2015-08-31 01:46:28

Swizarc
Member
Registered: 2015-08-30
Posts: 9

Re: Key BD8984D2 was created x seconds in the future

twelveeighty wrote:

It sounds to me that the custom repo has the clock problem, not you. You may be able to force it by passing in gpg's --ignore-time-conflict option somehow through pacman-key (check the man page if that's a possibility).

The problem is the key is the Pacman Keyring Master Key so I think the problem is on my end. I receive this error even without having the custom repo configured and without the key if if just try to initialise it.

Offline

#4 2015-09-03 05:13:37

Swizarc
Member
Registered: 2015-08-30
Posts: 9

Re: Key BD8984D2 was created x seconds in the future

I figured this out kinda. I just simply rebooted then things worked just fine.

Offline

#5 2021-07-24 10:39:58

laggardkernel
Member
Registered: 2019-03-21
Posts: 3

Re: Key BD8984D2 was created x seconds in the future

The problem is caused by out-of-sync local time. To be specific, the pacman master key was created when a wrong time set in your OS. This may cause the timestamp of the pacman master key is in the future after you correct the time on your OS (possibly by ntp).

We need to recreate the pacman master key after correct time set on the OS.

# enable ntp and ensure the time correct
timedatectl set-ntp 1
timedatectl status

rm -fr /etc/pacman.d/gnupg
# create pacman master key
pacman-key --init
# reload keys from keyring resources
pacman-key --populate

Offline

#6 2021-07-24 10:46:30

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,352
Website

Re: Key BD8984D2 was created x seconds in the future

Mod note: closing this old thread.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB