Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] I can't install any package because of this error. (Read 1332 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

[SOLVED] I can't install any package because of this error.

Installing Artix was a weird experience, getting wifi to work was tougher compare to other GNU + Linux distributions thankfully documention is good. It also threw me an error at the end of installation (something python releated) even tho OS appears to be perfectly fine. Now I'm trying to install i3 and this happens:

Code: [Select]
: Do you approve the installation? [E/h] e
(14/14) the keys on the keychain are checked... [###########] 100%
downloading the necessary keys...
:: Do you want to import this PGP switch? 1247D995F165BBAC, "Artix Build Bot <[email protected]>" [E / h] e
bug: cannot remotely look at key "1247D995F165BBAC"

Also everytime I go online it tells me about how "the server's certificate is not yet valid" and I have to mash yes button to do any online browsing.
I don't mean to be hostile guys I know a lot of work went into making this distribution but I never encountered to something on any other distribution. But I don't wanna leave Artix as it boots REALLY fast and it's more modular which makes it more secure. How can I fix these issues?

Edit: It seems like it's because of time (it's set on 2012 for some reason) however NTP doesn't seem to work, it's still on 2012
Another Edit: Nevermind it works now, which is weird.
Yet another edit: Correcting time fixed web browsing but I still can't get the pgp keys. And it doesn't even throw an error anymore it's just doesn't install them. What should I do?
You guessed it, another edit: I typed pacman-key --populate archlinux and now it works, maybe that's why I should RTM.

Re: I can't install any package because of this error.

Reply #1
Your system clock is wrong You must fix it either within your BIOS or from the command line with date(1):
Code: [Select]
$ sudo date -s "Sun 07 Jun 2020 10:07:35 PM EET"
$ sudo hwclock —systohc
Substitute the exact time, date and "EET" with your own data.

Re: I can't install any package because of this error.

Reply #2
The ntp daemon by default will adjust by sliding slowly, you need to invoke it with '-s' to make it set the time immediately. Or you can use ntpdate from the AUR.