#can't update my system anymore

109 messages · Page 1 of 1 (latest)

zenith hollow
#

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!

regal lava
#

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

zenith hollow
#

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

torn tide
# regal lava if so do `systemctl enable NetworkManager`

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?

torn tide
zenith hollow
#

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))

torn tide
#

It looks like your database might be fucked, but just to make sure, can you update your mirrorlist?

zenith hollow
#

sure thing! how does one go about doing that?

torn tide
#

Do you have reflector installed?

zenith hollow
#

I don't know what it is, so, I don't think so

torn tide
#

Urgh, install that if you get this fixed, one min

#

That should generate one for you to copy paste

zenith hollow
#

http, https and ipv4 and checked by default, ipv6 is not. is that ok, or should i change it?

torn tide
torn tide
zenith hollow
#

updating my mirrorlist, brb

torn tide
zenith hollow
torn tide
#

Try them after updating mirror list of that doesn’t solve it

zenith hollow
#

I've udated my mirrorlist, should I just run pacman -Syu now? or do I need to regenerate keyrings or something?

torn tide
#

If not try regenerating keys

#

If not delete file and retry both

zenith hollow
#

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:)

marble stirrupBOT
#

#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```
torn tide
#

First two code boxes should be it, apart from you shouldn’t need to -Sy

zenith hollow
#

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?

torn tide
#

Error: No keyring files exist in /usr/share/pacman/keyrings

zenith hollow
#

does this mean I did not install archlinux-keyring? I was pretty sure I did

torn tide
#

Try installing it using your cache using the -U flag

zenith hollow
#

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

torn tide
#

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

torn tide
zenith hollow
#

I've never reinstalled a package from cache^^

#

let me look this up, see if I can find it

zenith hollow
#

I have a bunch of files in /var/cache/pacman/pkg, though none of them have "archlinux" or "keyring" in their name

torn tide
zenith hollow
#

apparently no :x

torn tide
#

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

zenith hollow
#

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

torn tide
zenith hollow
#

though I'm always careful to reboot before doing so

torn tide
zenith hollow
#

already tried, did not work

#

is a month and a half really that long? I had no idea

torn tide
#

Got a usb with an arch iso on it?

torn tide
zenith hollow
#

well if it must come to that, because my mental health is not the best and I'm having trouble doing important things

zenith hollow
#

(it's ok, you couldn't know :) )

#

if it must come to me explaining myself

torn tide
torn tide
zenith hollow
#

not right away, though I could make one
although by doing that I would lose access to discord

zenith hollow
#

don't you mean for me to reboot my computer and boot on the live usb?

torn tide
zenith hollow
#

ah yes, I meant lose access temporarily

torn tide
#

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

zenith hollow
#

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

torn tide
#

Wait

#

Probbaly not this but

#

Are your clock, date and timezone all correct?

zenith hollow
#

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

torn tide
torn tide
zenith hollow
#

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

torn tide
#

.n isokeyring

marble stirrupBOT
#

#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```
torn tide
#

Those commands again

zenith hollow
#

how precise do I need to be for the date?

#

I mean I don't think I can be precise to the second

torn tide
#

.aw installation_guide

marble stirrupBOT
torn tide
#

Has some commands for setting the time and date

zenith hollow
#

:(

#

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

torn tide
#

I still say try pacstraping it

zenith hollow
#

I have a question before trying that,
my disks are encrypted, will this be a problem for the live usb?

#

I'm using lvm

torn tide
#

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

zenith hollow
#

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!

torn tide
#

Your welcome, good luck, I hope it works, if it doesn’t apologies 🙂