I'm having trouble updating my os. It is a native arch install.
I'm having these errors:
error: GPGME error: No data
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))
wiki says to check the file types in /var/lib/pacman/sync, and they should be gzipped files. In my case, they are 'HTML document, ASCII text' instead. Is this causing my problem?
wiki also suggest checking that the first mirror is online. Mine was f4st.host and was indeed offline, so I commented it out of /etc/pacman.d/mirrorlist, though it did not fix my problem.
I've tried deleting /etc/pacman.d/gnupg and running 'sudo pacman-key --init' and 'sudo pacman-key --populate', but the latter gives me this error
==> ERROR: No keyring files exist in /usr/share/pacman/keyrings.
any help would be greatly appreciated!
#can't update my system anymore
109 messages · Page 1 of 1 (latest)
you are having issues with the wifi from the looks of it
did you install networkmanager before leaving arch install
if so do systemctl enable NetworkManager
i've had this install for a long time (2016), and i'm not using wifi (ethernet)
i did not touch my network configuration at all
Why wouldn’t you first check:
If they can ping
If they’re even using network manager
If their mirror list is out of date
Before assuming that it’s they need to enable a service they might not use or already is running?
Can you try installing archlinux-keyring?
my networking seems perfectly fine except for updating (i'm using discord on the very computer i'm having the problem on)
02:31:17 ~ sudo pacman -S archlinux-keyring
[sudo] password for ena:
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: database 'core' is not valid (invalid or corrupted database (PGP signature))
error: database 'extra' is not valid (invalid or corrupted database (PGP signature))
error: database 'community' is not valid (invalid or corrupted database (PGP signature))
error: database 'multilib' is not valid (invalid or corrupted database (PGP signature))
Oh fun
It looks like your database might be fucked, but just to make sure, can you update your mirrorlist?
sure thing! how does one go about doing that?
Do you have reflector installed?
I don't know what it is, so, I don't think so
Urgh, install that if you get this fixed, one min
That should generate one for you to copy paste
http, https and ipv4 and checked by default, ipv6 is not. is that ok, or should i change it?
https://bbs.archlinux.org/viewtopic.php?id=268087
Is that of any help?
It’s up to you to tick what you want
I've already found this link before posting here, unfortunately it didn't help
updating my mirrorlist, brb
also tried that, no success
Try them after updating mirror list of that doesn’t solve it
I've udated my mirrorlist, should I just run pacman -Syu now? or do I need to regenerate keyrings or something?
Try -Syu first
If not try regenerating keys
If not delete file and retry both
is 'sudo pacman-key --init' and 'sudo pacman-key --populate' the correct way to regenerate the keyring? I've found that randomly on the internet, I'd rather make sure I'm not making a mistake:)
Should be
.n isokeyring
#9309 📣 If you are struggling to run archinstall or pacstrap, the first set of things to do is:
rm -rf /etc/pacman.d/gnupg
pacman-key --init
pacman-key --populate
pacman -Sy archlinux-keyring```
And if that fails, do:
```pacman-key --refresh-keys
pacman -Sy archlinux-keyring```
If refresh keys takes more than a minute just hit ctrl + c and continue, it likely has still worked.
It is not recommended to do the following as you become at risk of installing malicious packages:
```edit pacman.conf
and change the SigLevel to Never in pacman.conf```
First two code boxes should be it, apart from you shouldn’t need to -Sy
alright, trying all that now!
still failing on the populate command :/
02:41:13 /etc/pacman.d sudo pacman-key --populate
==> ERROR: No keyring files exist in /usr/share/pacman/keyrings.
ah my bad, didn't try the second box
doesn't seem to work. here's what I've done:
02:41:01 /etc/pacman.d sudo pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/848FCEE8773F77E5ACB061F457029513FD2B6568.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
02:41:13 /etc/pacman.d sudo pacman-key --populate
==> ERROR: No keyring files exist in /usr/share/pacman/keyrings.
02:41:19 /etc/pacman.d sudo pacman-key --refresh-keys
02:42:03 /etc/pacman.d sudo pacman-key --init
02:42:24 /etc/pacman.d sudo pacman-key --populate
==> ERROR: No keyring files exist in /usr/share/pacman/keyrings.
02:42:29 /etc/pacman.d sudo pacman -Syu
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
error: failed to synchronize all databases (no servers configured for repository)
also there is a mirrorlist.pacnew file in /etc/pacman.d/, can it be a cause of the problem?
Error: No keyring files exist in /usr/share/pacman/keyrings
does this mean I did not install archlinux-keyring? I was pretty sure I did
Try installing it using your cache using the -U flag
no luck,
02:49:39 /etc/pacman.d sudo pacman -U archlinux-keyring
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: database 'core' is not valid (invalid or corrupted database (PGP signature))
error: database 'extra' is not valid (invalid or corrupted database (PGP signature))
error: database 'community' is not valid (invalid or corrupted database (PGP signature))
error: database 'multilib' is not valid (invalid or corrupted database (PGP signature))
loading packages...
error: 'archlinux-keyring': could not find or read package
Resetting all the keys
Remove or reset all the keys installed in your system by removing the /etc/pacman.d/gnupg directory (as root) and by rerunning pacman-key --init followed by pacman-key --populate to re-add the default keys.
Why this doesn’t work for you I don’t know
Don’t you need to give it a specific file from your cache rather than just package name?
I've never reinstalled a package from cache^^
let me look this up, see if I can find it
I have a bunch of files in /var/cache/pacman/pkg, though none of them have "archlinux" or "keyring" in their name
There’s no archlinux-keyring in your cache at all??
apparently no :x
This doesn’t make sense, you’ve either installed something dodgy, or you’ve run some weird commands
When did you last clear your pacman cache, and how often have you been doing updates
I think my last update was about a month and a half ago
I occasionally clean my cache if my system partition gets too full
Why use a rolling release if you’re not doing updates lol
though I'm always careful to reboot before doing so
It probably won’t work but try -Sy the keyring
Got a usb with an arch iso on it?
I mean I just don’t get the point of doing it monthly on a “bleeding edge” distro
well if it must come to that, because my mental health is not the best and I'm having trouble doing important things
Come to what?
I just don’t get it, but it’s your choice
**
not right away, though I could make one
although by doing that I would lose access to discord
Why would you love access?
don't you mean for me to reboot my computer and boot on the live usb?
I mean yes but then you can boot back up lol
ah yes, I meant lose access temporarily
My advice is, try pacstraping the archlinux-keyring
If that doesn’t work, try the commands for generating the keyring from chroot, probably won’t work but, let’s find out
is it not possible to download this package from my web browser? so I don't have to reboot? or is it a pain to do, or unadvised for security reasons
Try it
Wait
Probbaly not this but
Are your clock, date and timezone all correct?
in fact they are not!
how did you know?
but they've been wrong for a long time and it did not cause a problem before
Fix them, then try to remake the keyring, and then try a full system update
I've tried to fix them in the past, but for some reason the change won't stick
I changed the clock with the date command, but if I reboot the change gets reverted
Don’t reboot for now, that can be tomorrows problem, just see if you can with correct time and date regex the keyring
.n isokeyring
#9309 📣 If you are struggling to run archinstall or pacstrap, the first set of things to do is:
rm -rf /etc/pacman.d/gnupg
pacman-key --init
pacman-key --populate
pacman -Sy archlinux-keyring```
And if that fails, do:
```pacman-key --refresh-keys
pacman -Sy archlinux-keyring```
If refresh keys takes more than a minute just hit ctrl + c and continue, it likely has still worked.
It is not recommended to do the following as you become at risk of installing malicious packages:
```edit pacman.conf
and change the SigLevel to Never in pacman.conf```
Those commands again
how precise do I need to be for the date?
I mean I don't think I can be precise to the second
Just do to the minute
.aw installation_guide
Has some commands for setting the time and date
:(
03:08:36 ~ sudo date -s '2024-08-14 02:14:00'
[sudo] password for ena:
Wed 14 Aug 2024 02:14:00 CEST
02:14:08 ~ ps aux | grep gpg
root 10463 0.0 0.0 154900 3108 ? Ss 01:46 0:00 gpg-agent --homedir /etc/pacman.d/gnupg --use-standard-socket --daemon
ena 11558 0.0 0.0 6368 3892 pts/2 S+ 02:14 0:00 grep gpg
02:14:12 ~ sudo killall gpg-agent
02:14:16 ~ ps aux | grep gpg
ena 11569 0.0 0.0 6368 3856 pts/2 S+ 02:14 0:00 grep gpg
02:14:20 ~ cd /etc/pacman.d
02:14:34 /etc/pacman.d ll
total 60K
drwxr-xr-x 4 root root 4.0K Aug 14 02:14 gnupg
-rw-r--r-- 1 root root 2.8K Aug 14 2024 mirrorlist
-rw-r--r-- 1 root root 51K Oct 1 2023 mirrorlist.pacnew
02:14:35 /etc/pacman.d sudo rm -rf gnupg/
02:14:39 /etc/pacman.d sudo pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/E96106A373E6B0D9EACD83B99995E835BAF3F8E2.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
02:15:00 /etc/pacman.d sudo pacman-key --populate
==> ERROR: No keyring files exist in /usr/share/pacman/keyrings.
02:15:06 /etc/pacman.d sudo pacman-key --refresh-keys
02:15:13 /etc/pacman.d sudo pacman -Sy archlinux-keyring
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
error: failed to synchronize all databases (no servers configured for repository)
sorry for pasting all of that, I just wanted to make sure no info was missed
I still say try pacstraping it
I have a question before trying that,
my disks are encrypted, will this be a problem for the live usb?
I'm using lvm
Make sure you decrypt them with luks when mounting etc.
I don’t mess with encryption so I don’t know more than that
Can’t remember if you moint then decrypt, do it all as one command, or decrypt then mount, I’d guess the first though
ok then, I'll try that:)
I don't think I'll be able to do all of this tonight, so I may be back tomorrow or the day after with an update
thank you for all of your advice and for your time!
Your welcome, good luck, I hope it works, if it doesn’t apologies 🙂