Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #210101 > unrolled thread
| Started by | john doe <johndoe65534@mail.com> |
|---|---|
| First post | 2019-06-19 17:20 +0200 |
| Last post | 2019-06-20 15:40 +0200 |
| Articles | 10 — 4 participants |
Back to article view | Back to linux.debian.user
Error on Buster while signing rpms john doe <johndoe65534@mail.com> - 2019-06-19 17:20 +0200
Re: Error on Buster while signing rpms <tomas@tuxteam.de> - 2019-06-19 17:30 +0200
Re: Error on Buster while signing rpms <tomas@tuxteam.de> - 2019-06-19 17:40 +0200
Re: Error on Buster while signing rpms john doe <johndoe65534@mail.com> - 2019-06-19 18:00 +0200
Re: Error on Buster while signing rpms <tomas@tuxteam.de> - 2019-06-19 18:30 +0200
Re: Error on Buster while signing rpms john doe <johndoe65534@mail.com> - 2019-06-19 17:40 +0200
Re: Error on Buster while signing rpms Ulf Volmer <u.volmer@u-v.de> - 2019-06-19 20:20 +0200
Re: Error on Buster while signing rpms john doe <johndoe65534@mail.com> - 2019-06-19 20:30 +0200
Re: Error on Buster while signing rpms didier gaumet <didier.gaumet@gmail.com> - 2019-06-20 09:50 +0200
Re: Error on Buster while signing rpms john doe <johndoe65534@mail.com> - 2019-06-20 15:40 +0200
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Date | 2019-06-19 17:20 +0200 |
| Subject | Error on Buster while signing rpms |
| Message-ID | <yaKxs-3fP-3@gated-at.bofh.it> |
Hi, I'm trying to gpg sign rpms on Debian Buster but I'm getting the following: $ rpm --resign *.rpm *.rpm: error: Could not exec gpg: No such file or directory Where the '*' is the name of the rpm. Doing the same command on Stretch works but I get this error on a fresh install of Buster. Googling didn't turn up something useful. Is anyone facing the same issue? -- John Doe
[toc] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2019-06-19 17:30 +0200 |
| Message-ID | <yaKH7-3j4-3@gated-at.bofh.it> |
| In reply to | #210101 |
[Multipart message — attachments visible in raw view] — view raw
On Wed, Jun 19, 2019 at 05:03:20PM +0200, john doe wrote: > Hi, I'm trying to gpg sign rpms on Debian Buster but I'm getting the > following: > > $ rpm --resign *.rpm > *.rpm: > error: Could not exec gpg: No such file or directory > > Where the '*' is the name of the rpm. Apt-get install gnupg? Cheers -- t
[toc] | [prev] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2019-06-19 17:40 +0200 |
| Message-ID | <yaKQN-3m4-3@gated-at.bofh.it> |
| In reply to | #210102 |
[Multipart message — attachments visible in raw view] — view raw
On Wed, Jun 19, 2019 at 05:31:41PM +0200, john doe wrote: > On 6/19/2019 5:25 PM, tomas@tuxteam.de wrote: > > On Wed, Jun 19, 2019 at 05:03:20PM +0200, john doe wrote: > >> Hi, I'm trying to gpg sign rpms on Debian Buster but I'm getting the > >> following: > >> > >> $ rpm --resign *.rpm > >> *.rpm: > >> error: Could not exec gpg: No such file or directory > >> > >> Where the '*' is the name of the rpm. > > > > Apt-get install gnupg? > > > > $ apt-get -V install gnupg > gnupg is already the newest version (2.2.12-1). > gnupg set to manually installed. > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. What happens if you say "gpg --version"? Cheers -- t
[toc] | [prev] | [next] | [standalone]
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Date | 2019-06-19 18:00 +0200 |
| Message-ID | <yaLaa-3tp-3@gated-at.bofh.it> |
| In reply to | #210103 |
On 6/19/2019 5:34 PM, tomas@tuxteam.de wrote:
> On Wed, Jun 19, 2019 at 05:31:41PM +0200, john doe wrote:
>> On 6/19/2019 5:25 PM, tomas@tuxteam.de wrote:
>>> On Wed, Jun 19, 2019 at 05:03:20PM +0200, john doe wrote:
>>>> Hi, I'm trying to gpg sign rpms on Debian Buster but I'm getting the
>>>> following:
>>>>
>>>> $ rpm --resign *.rpm
>>>> *.rpm:
>>>> error: Could not exec gpg: No such file or directory
>>>>
>>>> Where the '*' is the name of the rpm.
>>>
>>> Apt-get install gnupg?
>>>
>>
>> $ apt-get -V install gnupg
>> gnupg is already the newest version (2.2.12-1).
>> gnupg set to manually installed.
>> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>
> What happens if you say "gpg --version"?
>
$ gpg --version
gpg (GnuPG) 2.2.12
libgcrypt 1.8.4
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
As far as I can tell, gpg and rpm are working but can't "talk" to eatch
other.
Tomas, is the following command 'rpm --resign *.rpm' working for you on
Buster?
P.S.
RSA key of '2048'.
--
John Doe
[toc] | [prev] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2019-06-19 18:30 +0200 |
| Message-ID | <yaLDc-3SM-3@gated-at.bofh.it> |
| In reply to | #210105 |
[Multipart message — attachments visible in raw view] — view raw
On Wed, Jun 19, 2019 at 05:55:30PM +0200, john doe wrote: > On 6/19/2019 5:34 PM, tomas@tuxteam.de wrote: > > On Wed, Jun 19, 2019 at 05:31:41PM +0200, john doe wrote: > >> On 6/19/2019 5:25 PM, tomas@tuxteam.de wrote: > >>> On Wed, Jun 19, 2019 at 05:03:20PM +0200, john doe wrote: > >>>> Hi, I'm trying to gpg sign rpms on Debian Buster but I'm getting the > >>>> following: > >>>> > >>>> $ rpm --resign *.rpm > >>>> *.rpm: > >>>> error: Could not exec gpg: No such file or directory > >>>> > >>>> Where the '*' is the name of the rpm. > >>> > >>> Apt-get install gnupg? > >>> > >> > >> $ apt-get -V install gnupg > >> gnupg is already the newest version (2.2.12-1). > >> gnupg set to manually installed. > >> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. > > > > What happens if you say "gpg --version"? > > > > $ gpg --version > gpg (GnuPG) 2.2.12 OK. So you do have a gpg installed. Good. It seems rpm is looking for it in the wrong place? (or perhaps the error message is bogus). > As far as I can tell, gpg and rpm are working but can't "talk" to eatch > other. Going by the error message, something within rpm wants to invoke gpg, but is not finding it. You could try to run rpm under strace to see more clearly what it is trying and how it fails. > Tomas, is the following command 'rpm --resign *.rpm' working for you on > Buster? Sorry, but (a) I'm on stretch and (b) I haven't rpm installed. Cheers -- t
[toc] | [prev] | [next] | [standalone]
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Date | 2019-06-19 17:40 +0200 |
| Message-ID | <yaKQN-3m4-5@gated-at.bofh.it> |
| In reply to | #210102 |
On 6/19/2019 5:25 PM, tomas@tuxteam.de wrote: > On Wed, Jun 19, 2019 at 05:03:20PM +0200, john doe wrote: >> Hi, I'm trying to gpg sign rpms on Debian Buster but I'm getting the >> following: >> >> $ rpm --resign *.rpm >> *.rpm: >> error: Could not exec gpg: No such file or directory >> >> Where the '*' is the name of the rpm. > > Apt-get install gnupg? > $ apt-get -V install gnupg gnupg is already the newest version (2.2.12-1). gnupg set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Thanks anyway. -- John Doe
[toc] | [prev] | [next] | [standalone]
| From | Ulf Volmer <u.volmer@u-v.de> |
|---|---|
| Date | 2019-06-19 20:20 +0200 |
| Message-ID | <yaNlD-4XW-3@gated-at.bofh.it> |
| In reply to | #210101 |
On 19.06.19 17:03, john doe wrote: > Hi, I'm trying to gpg sign rpms on Debian Buster but I'm getting the > following: > > $ rpm --resign *.rpm > *.rpm: > error: Could not exec gpg: No such file or directory Pass --define "__gpg /usr/bin/gpg" to you rpm command. Works for me on sid. Or add this (and you gpg key settings) to your ~/.rpmmacros. Best regards Ulf
[toc] | [prev] | [next] | [standalone]
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Date | 2019-06-19 20:30 +0200 |
| Message-ID | <yaNvj-51d-3@gated-at.bofh.it> |
| In reply to | #210109 |
On 6/19/2019 8:10 PM, Ulf Volmer wrote: > On 19.06.19 17:03, john doe wrote: >> Hi, I'm trying to gpg sign rpms on Debian Buster but I'm getting the >> following: >> >> $ rpm --resign *.rpm >> *.rpm: >> error: Could not exec gpg: No such file or directory > > Pass --define "__gpg /usr/bin/gpg" to you rpm command. Works for me on > sid. Or add this (and you gpg key settings) to your ~/.rpmmacros. > Thank you, it is also working on Buster. -- John Doe
[toc] | [prev] | [next] | [standalone]
| From | didier gaumet <didier.gaumet@gmail.com> |
|---|---|
| Date | 2019-06-20 09:50 +0200 |
| Message-ID | <yaZZv-49V-11@gated-at.bofh.it> |
| In reply to | #210113 |
Le 19/06/2019 à 20:29, john doe a écrit :
> On 6/19/2019 8:10 PM, Ulf Volmer wrote:
>> On 19.06.19 17:03, john doe wrote:
>>> Hi, I'm trying to gpg sign rpms on Debian Buster but I'm getting the
>>> following:
>>>
>>> $ rpm --resign *.rpm
>>> *.rpm:
>>> error: Could not exec gpg: No such file or directory
>>
>> Pass --define "__gpg /usr/bin/gpg" to you rpm command. Works for me on
>> sid. Or add this (and you gpg key settings) to your ~/.rpmmacros.
>>
>
> Thank you, it is also working on Buster.
>
> --
> John Doe
>
>
Hello,
there are more details on how to configure gpg for signing rpm in the
rpmsign(8) manpage. I quote:
"USING GPG TO SIGN PACKAGES
In order to sign packages using GPG, rpm must be configured to
run GPG and be able to find a key ring with the appropriate keys. By
default, rpm uses the same conventions as GPG to find key
rings, namely the $GNUPGHOME environment variable. If your key rings
are not
located where GPG expects them to be, you will need to configure
the macro %_gpg_path to be the location of the GPG key rings to use. If
you want to be able to sign packages you create yourself, you
also need to create your own public and secret key pair (see the GPG
manual).
You will also need to configure the rpm macros
%_gpg_name
The name of the "user" whose key you wish to use to sign
your packages.
For example, to be able to use GPG to sign packages as the user
"John Doe <jdoe@foo.com>" from the key rings located in /etc/rpm/.gpg using
the executable /usr/bin/gpg you would include
%_gpg_path /etc/rpm/.gpg
%_gpg_name John Doe <jdoe@foo.com>
%__gpg /usr/bin/gpg
in a macro configuration file. Use /etc/rpm/macros for per-system
configuration and ~/.rpmmacros for per-user configuration. Typically it's
sufficient to set just %_gpg_name.
"
[toc] | [prev] | [next] | [standalone]
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Date | 2019-06-20 15:40 +0200 |
| Message-ID | <yb5se-7xY-5@gated-at.bofh.it> |
| In reply to | #210133 |
On 6/20/2019 9:45 AM, didier gaumet wrote: > Le 19/06/2019 à 20:29, john doe a écrit : >> On 6/19/2019 8:10 PM, Ulf Volmer wrote: >>> On 19.06.19 17:03, john doe wrote: >>>> Hi, I'm trying to gpg sign rpms on Debian Buster but I'm getting the >>>> following: >>>> >>>> $ rpm --resign *.rpm >>>> *.rpm: >>>> error: Could not exec gpg: No such file or directory >>> >>> Pass --define "__gpg /usr/bin/gpg" to you rpm command. Works for me on >>> sid. Or add this (and you gpg key settings) to your ~/.rpmmacros. >>> >> >> Thank you, it is also working on Buster. >> >> -- >> John Doe >> >> > Hello, > > there are more details on how to configure gpg for signing rpm in the > rpmsign(8) manpage. I quote: > Thank you, What I didn't realize was that '%_gpgbin' (1) has been superseded by '%__gpg' (2). 1) Stretch: rpm_4.12.0.2 2) Buster: rpm_4.14.2.1 The '%__gpg' works on the above two versions. P.S. I also'd like to thanks Tomas (tomas@tuxteam.de) for his help. -- John Doe
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web