You are not logged in.

#1 2015-08-15 17:13:57

j2lapoin
Banned
Registered: 2013-06-28
Posts: 102

problem with public key (PKGBUILD) [SOLVED]

Ok I'm doing a package from the bash with only help, a PKGBUILD. So far have been collected pieces of files required by the program. I got problem when it's time to makepkg -S.  The system send me as error message:

==> Making package: vim 7.4.410-1 (Sat Aug 15 13:12:31 EDT 2015)
==> Retrieving sources...
  -> Found vim-7.4.410.tar.xz
  -> Found vim-7.4.410.tar.xz.sig
  -> Found vimrc
  -> Found archlinux.vim
  -> Found gvim.desktop
==> Validating source files with md5sums...
    vim-7.4.410.tar.xz ... Passed
    vim-7.4.410.tar.xz.sig ... Skipped
    vimrc ... Skipped
    archlinux.vim ... Skipped
    gvim.desktop ... Skipped
==> Verifying source file signatures with gpg...
    vim-7.4.410.tar.xz ... FAILED (the public key 34C5D94FE7E7913E86DC427E7FB1A3800C84C0A5 is not trusted)
==> ERROR: One or more PGP signatures could not be verified!

Should someone can explain me how to make this process working without commenting it.

Last edited by j2lapoin (2015-08-15 19:37:59)

Offline

#2 2015-08-15 17:17:12

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

Re: problem with public key (PKGBUILD) [SOLVED]

Please use a more informative title and read https://wiki.archlinux.org/index.php/Pacman-key

Offline

#3 2015-08-15 17:25:40

j2lapoin
Banned
Registered: 2013-06-28
Posts: 102

Re: problem with public key (PKGBUILD) [SOLVED]

My bad, I didn't think about that. But for the link, I doubt that what I need. I seem to think that I need to give to PKGBUILD a number or somesort.  I already  gpg --recv-key 34C5D94FE7E7913E86DC427E7FB1A3800C84C0A5 the previous key. Feel free to give me more advice or to cover which section in pacman howto.

Offline

#4 2015-08-15 17:48:53

j2lapoin
Banned
Registered: 2013-06-28
Posts: 102

Re: problem with public key (PKGBUILD) [SOLVED]

the key number has been added, as by ...

==> Verifying source file signatures with gpg...
    vim-7.4.410.tar.xz ... FAILED (the public key 34C5D94FE7E7913E86DC427E7FB1A3800C84C0A5 is not trusted)
==> ERROR: One or more PGP signatures could not be verified!
[j2lapoin@localhost gvim-pythonsix]$  gpg --recv-key 34C5D94FE7E7913E86DC427E7FB1A3800C84C0A5
gpg: key 0C84C0A5: "Thomas Dziedzic <gostrc@gmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

But eventough, I add this key, it keep telling me that the key is not trustable.  I doubt that my solution is a pacman one. I presume I could get some help.

Offline

#5 2015-08-15 17:56:26

ayekat
Member
Registered: 2011-01-17
Posts: 1,591

Re: problem with public key (PKGBUILD) [SOLVED]

What about

pacman-key --recv-keys

?

[EDIT]
or even less hack'ish:

pacman-key --refresh-keys

Last edited by ayekat (2015-08-15 17:58:38)


pkgshackscfgblag

Offline

#6 2015-08-15 18:00:49

j2lapoin
Banned
Registered: 2013-06-28
Posts: 102

Re: problem with public key (PKGBUILD) [SOLVED]

i did but for some reason that did nothing to my situation. I finally opted to comment this section (the one about md5sum verification of pkgbuild), that work but it's not what I wanted.  I wanted to know how to fix the problem otherwise.

I get an error by doing refresh key...

==> ERROR: pacman-key needs to be run as root for this operation.
[j2lapoin@localhost gvim-pythonsix]$ sudo pacman-key --refresh-keys
gpg: refreshing 82 keys from hkp://pool.sks-keyservers.net

gpg: connecting dirmngr at '/root/.gnupg/S.dirmngr' failed: IPC connect call failed
gpg: keyserver refresh failed: No dirmngr
==> ERROR: A specified local key could not be updated from a keyserver

Last edited by j2lapoin (2015-08-15 18:06:19)

Offline

#7 2015-08-15 18:10:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,568
Website

Re: problem with public key (PKGBUILD) [SOLVED]

karol wrote:

Please use a more informative title

Seconded.

j2lapoin wrote:

My bad, I didn't think about that.

Now you have.  Please click the edit button on your first post - this will allow you to change the title.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#8 2015-08-15 18:11:10

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: problem with public key (PKGBUILD) [SOLVED]

karol wrote:

Please use a more informative title and read https://wiki.archlinux.org/index.php/Pacman-key

You still haven't acted on the first part. As for the second part, I think karol may have misled you with that link (surely not intentionally). I would suggest https://wiki.archlinux.org/index.php/Ma … e_checking

Be sure to also check out Allan's blog post -- there's a link in the "Note". And then if it's still not clear enough what the difference is between adding and trusting/signing keys, you can read about gnupg in general (both wiki pages provide you with relevant links).

Last edited by Raynman (2015-08-15 18:13:36)

Offline

#9 2015-08-15 18:13:50

progandy
Member
Registered: 2012-05-17
Posts: 5,203

Re: problem with public key (PKGBUILD) [SOLVED]

Why do you want to compile an old vim version? If you do that, then you have to react to a few changes in the behaviour of makepkg in relation to gpg signatures.

Tip: Adding a key is not the same as trusting the owner.
Edit: A pointed example: I'll send you a bogous invoice per mail and sign it with pgp. Now you can fetch my public key and verify that I have written it, but do you trust me that the bill is valid and has to be paid?

Last edited by progandy (2015-08-15 19:26:30)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#10 2015-08-15 18:18:54

j2lapoin
Banned
Registered: 2013-06-28
Posts: 102

Re: problem with public key (PKGBUILD) [SOLVED]

https://bbs.archlinux.org/viewtopic.php?id=186059 gvim-pythonsix: Vim with simultaneous python2 and python3 support

should i put a md5sum of the file in PKGBUILD. Eventough i try.

Last edited by j2lapoin (2015-08-15 18:22:33)

Offline

#11 2015-08-15 18:28:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: problem with public key (PKGBUILD) [SOLVED]

J2lapoin,

If you are wondering what happened to your first post, I think you hit the report link, not the reply link tongue  It happens more than you might imagine.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#12 2015-08-15 18:33:09

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

Re: problem with public key (PKGBUILD) [SOLVED]

If you're wondering where your original post went, j2lapoin, you accidentally clicked report rather than quote/reply.

I'm not sure what relevance that topic has to your current problem, but like progandy hinted, try trusting the key. Alternatively, add they key to the validpgpkeys array in the PKGBUILD (see 'man PKGBUILD').

EDIT: hah, beaten by ewaller by five minutes. I'm too easily distracted.

Last edited by WorMzy (2015-08-15 18:34:18)


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

#13 2015-08-15 18:36:15

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

Re: problem with public key (PKGBUILD) [SOLVED]

Raynman wrote:
karol wrote:

Please use a more informative title and read https://wiki.archlinux.org/index.php/Pacman-key

You still haven't acted on the first part. As for the second part, I think karol may have misled you with that link (surely not intentionally). I would suggest https://wiki.archlinux.org/index.php/Ma … e_checking

Be sure to also check out Allan's blog post -- there's a link in the "Note". And then if it's still not clear enough what the difference is between adding and trusting/signing keys, you can read about gnupg in general (both wiki pages provide you with relevant links).

My bad.
I was adding links to my notes and posted the wrong one here.

Offline

#14 2015-08-15 18:37:03

j2lapoin
Banned
Registered: 2013-06-28
Posts: 102

Re: problem with public key (PKGBUILD) [SOLVED]

WorMzy wrote:

If you're wondering where your original post went, j2lapoin, you accidentally clicked report rather than quote/reply.

I'm not sure what relevance that topic has to your current problem, but like progandy hinted, try trusting the key. Alternatively, add they key to the validpgpkeys array in the PKGBUILD (see 'man PKGBUILD').

EDIT: hah, beaten by ewaller by five minutes. I'm too easily distracted.

Ok great, now i seem to know a little better where im going.

Offline

#15 2015-08-15 18:48:13

j2lapoin
Banned
Registered: 2013-06-28
Posts: 102

Re: problem with public key (PKGBUILD) [SOLVED]

i added this line in my pkgbuild and fix definitely part of my problem.

validpgpkeys=('34C5D94FE7E7913E86DC427E7FB1A3800C84C0A5')

* the other part of the problem it's a compilation thing. Thank your for helping.

Offline

Board footer

Powered by FluxBB