D
D
dstdfx2015-12-30 00:33:58
linux
dstdfx, 2015-12-30 00:33:58

Problem with pacman (database is incorrect version: /var/lib/pacman/) how to solve?

I install a minimal system arch linux
when installing grub :
arch-chroot /mnt pacman -S grub-bios
swears by the following:

error:failed to initialize alpm library
(database is incorrect version: /var/lib/pacman/)
error: try running pacman-db-upgrade

tried
pacman-db-upgrade
pacman-key --init
pacman-key --populate msys2
pacman-key --refresh-keys

does not help, swears:
==>ERROR: The keying file /usr/share/pacman/keyrings/msys2.gpg does not exist

==>ERROR: A specified local key could not be upgrade from keyserver

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xotkot, 2015-12-30
@xotkot

you mixed warm with soft)
your problem is not with pacman, but with the keys
with pacman you did everything right, it was recently updated and the version on the installer did not match the current one
, this should be enough
, but with the keys you have done something
there should only be :

pacman-key --init
pacman-key --populate archlinux

M
mars natsuhiboshi, 2015-04-23
@mars_unique

pacman-db-upgrade
pacman-key --init
pacman-key --populate archlinux
pacman-key --refresh-keys

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question