this post was submitted on 28 May 2024
22 points (100.0% liked)

Arch Linux

7759 readers
2 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
top 8 comments
sorted by: hot top controversial new old
[–] ccryx@discuss.tchncs.de 26 points 5 months ago (1 children)

Update only archlinux-keyring and try again.

# pacman -S archlinux-keyring
# pacman -Syu

In some cases you may need to re-populate the keyring.

# pacman-key --init
# pacman-key --populate
[–] Binette@lemmy.ml 3 points 5 months ago (1 children)

I tried both options in order and neither worked.

[–] ccryx@discuss.tchncs.de 2 points 5 months ago

Then maybe the downloaded packages are actually corrupted. You could check if they have plausible file sizes. IIRC pacman will ask you if you want to delete the non-matching files but I'm not entirely sure. They should end up in /var/cache/pacman/pkg.

[–] cyberfae@lemmy.world 3 points 5 months ago (1 children)
[–] Binette@lemmy.ml 2 points 5 months ago (1 children)

I tried syncing my times using hwclock. It didn't work. Unless maybe you can't sync your clock with hwclock. I'm pretty bad at this. I also tried the other things but it didn't work either.

[–] cyberfae@lemmy.world 2 points 5 months ago (1 children)

You also need to sync NTP. That's the service that checks the internet to ensure the time is correct. On top of that you might want to ensure the timezone is set correctly. Also, consider reading the section on cleaning cached packages and changing your key server.

[–] Binette@lemmy.ml 4 points 5 months ago (1 children)

I synced NTP and repopulated the keys and it worked! I think last time I tried to fix this, I just forgot to repopulate the keys afterwards. Thanks!

[–] cyberfae@lemmy.world 6 points 5 months ago

Your welcome. And if you get stuck reading the arch wiki, it's worth reading it again just to make sure you didn't miss anything.