You are not logged in.

#1 2013-09-10 15:23:45

ujack
Member
Registered: 2013-09-10
Posts: 4

error: database 'core' is not valid (invalid or corrupted database...

Trying to install a new system, and when running pacstrap, I keep getting the following error:

root@archiso ~ # pacstrap -i /mnt base
==> Creating install root at /mnt
==> Installing packages to /mnt
error: GPGME error: No data
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
error: database 'core' is not valid (invalid or corrupted database (PGP signature))
==> ERROR: failed to install packaged to new root

I've dug around the forums and have tried just about everything I've found. I'm at a loss, any ideas?

It's really odd as well, as I was able to install reflector to sort my mirrorlist with no problems.

Offline

#2 2013-09-10 15:26:23

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Re: error: database 'core' is not valid (invalid or corrupted database...

https://wiki.archlinux.org/index.php/Beginners'_Guide#Install_the_base_system

Check your system's time and date: if it is not correct then you will get errors.

Notice:

# pacman-key --init && pacman-key --populate archlinux

Offline

#3 2013-09-10 15:50:53

ujack
Member
Registered: 2013-09-10
Posts: 4

Re: error: database 'core' is not valid (invalid or corrupted database...

I wish that worked smile

Date and time are correct. Here is the output from pacman-key:

root@archiso ~ # pacman-key --init && pacman-key --populate archlinux
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: Generating pacman keyring master key...
gpg: key C5C4FBD0 marked as ultimately trusted
gpg: Done
==> Updating trust database...
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   0   trust: 0-, 0q, 0n, 0m, 0f, 1u
==> Appending keys from archlinux.gpg...
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   0   trust: 0-, 0q, 0n, 0m, 0f, 1u
==> Locally signing trusted keys in keyring...
  -> Locally signing key 0E8B644079F599DFC1DDC3973348882F6AC6A4C2...
  -> Locally signing key 684148BB25B49E986A4944C55184252D824B18E8...
  -> Locally signing key 44D4A033AC140143927397D47EFD567D4C7EA887...
  -> Locally signing key 27FFC4769E19F096D41D9265A04F9397CDFD6BB0...
  -> Locally signing key AB19265E5D7D20687D303246BA1DFB64FFF979E7...
==> Importing owner trust values...
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
==> Disabling revoked keys in keyring...
  -> Disabling key BC1FBE4D2826A0B51E47ED62E2539214C6C11350...
==> Updating trust database...
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   5   trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   5  signed:  65   trust: 0-, 0q, 0n, 5m, 0f, 0u
gpg: depth: 2  valid:  65  signed:   3   trust: 65-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2014-04-22

Unfortunately, even after running the pacman-key commands, my output from pacstrap is the exact same.

Offline

#4 2013-09-10 16:09:43

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: error: database 'core' is not valid (invalid or corrupted database...

Try switching to a different mirror and run 'pacman -Syyu' to resync the databases.

Last edited by WorMzy (2014-01-10 19:54:16)


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

#5 2013-09-10 16:49:58

ujack
Member
Registered: 2013-09-10
Posts: 4

Re: error: database 'core' is not valid (invalid or corrupted database...

I've switched mirrors 5 or 6 times now, and get the same error every time:

root@archiso ~ # pacman -Syy
:: Synchronizing package databases...
 core                           ...100%
 extra                          ...100%
 community                      ...100%
root@archiso ~ # pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
 there is nothing to do
root@archiso ~ # pacstrap -i /mnt base
==> Creating install root at /mnt
==> Installing packages to /mnt
error: GPGME error: No data
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
error: database 'core' is not valid (invalid or corrupted database (PGP signature))
==> ERROR: Failed to install packages to new root

Offline

#6 2013-09-10 17:54:35

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: error: database 'core' is not valid (invalid or corrupted database...

# pacman-key --refresh-keys

???

Offline

#7 2013-09-10 17:56:23

ujack
Member
Registered: 2013-09-10
Posts: 4

Re: error: database 'core' is not valid (invalid or corrupted database...

I'm working around the issue right now by changing the SigLevel to Never, and continuing with the base install. We'll see what happens once I've gotten Arch installed and rebooted the machine.

I'm not happy about this, but it gets me moving.

Offline

#8 2013-09-14 17:46:12

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: error: database 'core' is not valid (invalid or corrupted database...

Why did you do pacman -Syu for the install media?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2014-01-10 18:40:28

DJ9
Member
From: Wisconsin
Registered: 2013-11-30
Posts: 7

Re: error: database 'core' is not valid (invalid or corrupted database...

He's not the only one having these issues today.  Same thing here, on a fully installed system.

I updated my mirrorlist, did the pacman -Syy and  pacman-key --init && pacman-key --populate archlinux.

Offline

#10 2014-01-10 18:49:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: error: database 'core' is not valid (invalid or corrupted database...

DJ9 wrote:

He's not the only one having these issues today.

This thread is a couple months old.

Is it working for you now?

Offline

#11 2014-01-10 20:55:08

DJ9
Member
From: Wisconsin
Registered: 2013-11-30
Posts: 7

Re: error: database 'core' is not valid (invalid or corrupted database...

karol wrote:
DJ9 wrote:

He's not the only one having these issues today.

This thread is a couple months old.

Is it working for you now?

This just started today for me.  Prior everything was fine.

Oh ya, last night I had the laptop just shut off.  Maybe something got corrupted?

Last edited by DJ9 (2014-01-10 20:59:12)

Offline

#12 2014-01-10 20:59:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: error: database 'core' is not valid (invalid or corrupted database...

Is it working now?
OP had a problem while installing Arch, you seem to have installed Arch some time ago and had it running OK until today.

Offline

#13 2014-01-10 21:03:08

DJ9
Member
From: Wisconsin
Registered: 2013-11-30
Posts: 7

Re: error: database 'core' is not valid (invalid or corrupted database...

karol wrote:

Is it working now?
OP had a problem while installing Arch, you seem to have installed Arch some time ago and had it running OK until today.

Here's the error:

pacman -Syy
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
 core                     106.4 KiB   719K/s 00:00 [######################] 100%
error: GPGME error: No data
error: failed to update core (invalid or corrupted database (PGP signature))
 extra                   1442.3 KiB  2.27M/s 00:01 [######################] 100%
error: GPGME error: No data
error: failed to update extra (invalid or corrupted database (PGP signature))
 community                  2.0 MiB  2.26M/s 00:01 [######################] 100%
error: GPGME error: No data
error: failed to update community (invalid or corrupted database (PGP signature))
error: failed to synchronize any databases
error: failed to init transaction (invalid or corrupted database (PGP signature))

And..

pacman-key --init && pacman-key --populate archlinux
==> Appending keys from archlinux.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signing key 0E8B644079F599DFC1DDC3973348882F6AC6A4C2...
  -> Locally signing key 684148BB25B49E986A4944C55184252D824B18E8...
  -> Locally signing key 44D4A033AC140143927397D47EFD567D4C7EA887...
  -> Locally signing key 27FFC4769E19F096D41D9265A04F9397CDFD6BB0...
  -> Locally signing key AB19265E5D7D20687D303246BA1DFB64FFF979E7...
==> Importing owner trust values...
==> Disabling revoked keys in keyring...
  -> Disabling key 7FA647CD89891DEDC060287BB9113D1ED21E1A55...
  -> Disabling key BC1FBE4D2826A0B51E47ED62E2539214C6C11350...
  -> Disabling key 4A8B17E20B88ACA61860009B5CED81B7C2E5C0D2...
  -> Disabling key 63F395DE2D6398BBE458F281F2DBB4931985A992...
  -> Disabling key 0B20CA1931F5DA3A70D0F8D2EA6836E1AB441196...
  -> Disabling key 8F76BEEA0289F9E1D3E229C05F946DED983D4366...
  -> Disabling key 66BD74A036D522F51DD70A3C7F2A16726521E06D...
  -> Disabling key 81D7F8241DB38BC759C80FCE3A726C6170E80477...
  -> Disabling key E7210A59715F6940CF9A4E36A001876699AD6E84...
==> Updating trust database...
gpg: next trustdb check due at 2014-01-22

Offline

#14 2014-01-10 21:08:53

DJ9
Member
From: Wisconsin
Registered: 2013-11-30
Posts: 7

Re: error: database 'core' is not valid (invalid or corrupted database...

In case you missed my edit above, I did lose complete power last night, as in the laptop just shut off. So I'm thinking the database might have got corrupted?

And if so, how would one go about fixing it?

Also, yes.. this system has been running for a week or two with no issues prior.

Offline

#15 2014-01-10 21:18:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: error: database 'core' is not valid (invalid or corrupted database...

Remove the databases and any *.part files and try again.

Offline

#16 2014-01-10 21:32:00

DJ9
Member
From: Wisconsin
Registered: 2013-11-30
Posts: 7

Re: error: database 'core' is not valid (invalid or corrupted database...

karol wrote:

Remove the databases and any *.part files and try again.

Well, good thing is that no *.part files are around and that the pacman.log file is fine.

As for the database files to delete, could you explain exactly which files I would need to get rid of?  I really don't want to reinstall if at all possible.

Appreciate it. smile

Offline

#17 2014-01-10 21:42:20

DJ9
Member
From: Wisconsin
Registered: 2013-11-30
Posts: 7

Re: error: database 'core' is not valid (invalid or corrupted database...

Would the files be in /var/lib/pacman/sync?  As in the *.db files or also the *.sig files also?

Offline

#18 2014-01-10 21:46:18

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: error: database 'core' is not valid (invalid or corrupted database...

DJ9 wrote:

Would the files be in /var/lib/pacman/sync?  As in the *.db files or also the *.sig files also?

Yup: https://bbs.archlinux.org/viewtopic.php … 9#p1121329

Offline

#19 2014-01-10 22:00:47

DJ9
Member
From: Wisconsin
Registered: 2013-11-30
Posts: 7

Re: error: database 'core' is not valid (invalid or corrupted database...

karol wrote:
DJ9 wrote:

Would the files be in /var/lib/pacman/sync?  As in the *.db files or also the *.sig files also?

Yup: https://bbs.archlinux.org/viewtopic.php … 9#p1121329

Thank you!

I was still getting errors after zapping the files via "rm -R /var/lib/pacman/sync" so I ended up editing the mirrorlist again
and picking another mirror (again) and all worked fine. smile

Backing up .db files. heh

Offline

#20 2014-01-10 23:10:37

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: error: database 'core' is not valid (invalid or corrupted database...

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
nwm

Last edited by karol (2014-01-10 23:10:52)

Offline

Board footer

Powered by FluxBB