You are not logged in.
Hi,
First of all I'm fairly new to Arch so sorry if I have missed the obvious but I did look on the forum for this error and couldn't find anything that solved my issue.
When I try to run an upgrade with -Syu or simply update the DB with -Syy I have got the error
error: GPGME error: No data
error: failed to update core (invalid or corrupted database (PGP signature))
for all the repos (core,extra,community and multilib)
What I have done:
Run
pacman-key --init
and then
pacman-key --populate archlinux
no error.
I have then tried to comment the first server (and second one) in
/etc/pacman.d/mirrorlist
but still no joy after running
pacman -Syy
Please find below my pacman.conf if it helps:
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
#GPGDir = /etc/pacman.d/gnupg/
#HookDir = /etc/pacman.d/hooks/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta = 0.7
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options
#UseSyslog
#Color
#TotalDownload
CheckSpace
#VerbosePkgLists
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required
# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.
#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#
# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
#[testing]
#Include = /etc/pacman.d/mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
#[community-testing]
#Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.
#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist
[multilib]
Include = /etc/pacman.d/mirrorlist
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
Is there anything else I should try?
Thanks!
Last edited by r0r (2018-05-27 10:13:03)
Offline
Please post the pull output of
pacman -Syu
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
Hi WorMzy,
Thanks for the help.
So I'm confused, I have just done it and I have got few
error: GPGME error: No data
but it did synchronize the repository databases and update the system
So I ran it again and no error at all.
I have noticed the packet pacman-mirrorlist-20180524-1-any
Could it be why I didn't get any error the second time?
Thanks.
Offline
Updating pacman-mirrorlist by itself doesn't really "do" anything, it's up to you to merge or update your actual /etc/pacman,d/mirrorlist, which is why pacman informs you with "warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew". For us to be able to help, please, as requested earlier, post the full invocation and output of "pacman -Syu".
Offline
@twelveeighty you want the invocation and output without the error?
Offline
I suspect you used to have invalid pacman databases, but running pacman -Syu first showed an error for the current databases, then tried, successfully, to download newer ones -- which worked.
You can easily get this if you try syncing from behind some wifi network's captive portal.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Thanks everyone for all the replies and clarifications.
@twelveeighty As loqs stated, the issue is now resolved so sorry no output to post, but it was happening with either pacman -Syu or pacman -Syy
@Eschwartz I did many pacman -Syu and pacman -Syy after the steps I have exposed in my first post it wasn't working, so to me it's looks more like something network related indeed. Not sure my Wifi is to blame here tho, it's my home network and there is really nothing special about it and my internet was for sure working at that time.
I will mark the post as resolved. Thanks everyone for the help!
Offline