You are not logged in.

#1 2016-02-29 01:02:08

JasonX
Member
Registered: 2016-02-28
Posts: 7

Pacman error: GPGME error: No data on connection lost

Hello everyone,

Everytime I try to install something I get

    error: GPGME error: No data
    error: database 'core' is not valid (invalid or corrupted database (PGP signature))

I can easily fix this by running pacman -Sy, the thing is that, after I lose my wifi connection, the error returns, and I have to resync pacman again. It's getting pretty annoying.

I obviously have no clue about what is going on, and what to do.

Thank you in advance : )

Last edited by JasonX (2016-02-29 01:04:13)

Offline

#2 2016-02-29 01:30:30

Nagy Balna
Member
From: Boston
Registered: 2011-12-06
Posts: 46

Re: Pacman error: GPGME error: No data on connection lost

Have you tried the things in this thread?


Edit:  Specifically, have you tried another mirror?

Last edited by Nagy Balna (2016-02-29 01:31:41)

Offline

#3 2016-02-29 01:34:44

Nagy Balna
Member
From: Boston
Registered: 2011-12-06
Posts: 46

Re: Pacman error: GPGME error: No data on connection lost

Also, you should post your full pacman output, pacman configuration, and mirrors.

Offline

#4 2016-03-02 20:58:20

JasonX
Member
Registered: 2016-02-28
Posts: 7

Re: Pacman error: GPGME error: No data on connection lost

Yesterday I tried

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

Everything ok.

Today I tried to install something and got

error: GPGME error: No data
error: database 'core' is not valid (invalid or corrupted database (PGP signature))

thats the full pacman output.

my pacman.conf is

[options]
HoldPkg     = pacman glibc
Architecture = auto
CheckSpace
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional

[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

[multilib]
Include = /etc/pacman.d/mirrorlist

[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch

and my mirrorlist is the default when you install arch, but if its important i'll post it

Last edited by JasonX (2016-03-02 20:59:14)

Offline

#5 2016-03-07 08:25:16

kayaman
Member
Registered: 2012-09-03
Posts: 11

Re: Pacman error: GPGME error: No data on connection lost

Same here,
I tried:

sudo pacman-key --init

sudo pacman-key --populate archlinux manjaro

sudo pacman-key --refresh-keys 

With proper output, still the error when i try to update with pacman -Syu. Btw i have to switch my keyserver in /etc/pacman.d/gnupg/gpg.conf to http://p80.pool.sks-keyservers.net:80 because i can only use this port.

Offline

#6 2016-03-07 20:49:41

raddecen
Member
Registered: 2015-12-19
Posts: 26

Re: Pacman error: GPGME error: No data on connection lost

Remove everything in /var/lib/pacman/sync and try using a different mirror. After that, do a $ sudo pacman -Syu and see whether that fixes the problem.

Offline

#7 2016-03-13 00:13:16

Nagy Balna
Member
From: Boston
Registered: 2011-12-06
Posts: 46

Re: Pacman error: GPGME error: No data on connection lost

Is there a good reason that you needed to add the archlinuxfr repo (and also ignore its package signatures?).

Can you post the result of

uname -r

Also, it would be good to see what mirror you are using if the problem persists after raddecen's suggestion.

Offline

#8 2016-03-14 08:34:23

kayaman
Member
Registered: 2012-09-03
Posts: 11

Re: Pacman error: GPGME error: No data on connection lost

uname -r output:

4.4.1-2-ARCH

I deleted the files everytime i changed to different Mirrors (at least 5 mirrors), didn't help. Btw: the .db.sig and .db files are totaly empty.

Found the solution for me: I had a malicious curl command in my pacman.conf. I now use the global http_proxy with username:pw@proxyip:port.

thx anyway


*Edit:

Yesterday i was able to update (uname -r output:

4.4.5-1-ARCH

), but today i get the error again. It seems the problem is connected to my proxy because the content of my .db and .db.sig files are always: 

<html>
        <script language="javascript">
                location.href = "PortalMain";
        </script>
        <body>
                <noscript>
                        This portal requires browser which support JavaScript.<br>
                Please make sure that you are using an updated browser and that JavaScript is enabled.
            </noscript>
        </body>
</html>

**Edit

Well i manually downloaded wget and installed the tar.xz file with pacman -U, set the pacman.conf  xfer command to:

XferCommand = /usr/bin/wget -e use_proxy=yes -e http_proxy=proxyURL:8080 --proxy-user="username" --proxy-password="password" --passive-ftp -c -O %o %u

and for now it works again

Last edited by kayaman (2016-03-15 11:04:38)

Offline

#9 2016-05-01 17:19:35

JasonX
Member
Registered: 2016-02-28
Posts: 7

Re: Pacman error: GPGME error: No data on connection lost

Sorry, I forgot to post: 

It solved just by 'switching' to another mirror. It seems I 'accidentally' was using an outdated one -I mean I had # commented the first line so it was using another server-.

Anyway, thank you!!

Offline

#10 2016-05-01 18:15:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Pacman error: GPGME error: No data on connection lost

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB