Packaging:Clersign failed secret key not available

Asked by Des Barrett

Hi

I'm using 8.04.1 hardy . I'm trying to follow this packaging guide https://wiki.ubuntu.com/PackagingGuide/Recipes/PackageUpdate. I keep getting an error when trying to build the package

gpg: [stdin]: clearsign failed: secret key not available
debsign: gpg error occurred! Aborting....
debuild: fatal error at line 1174:

gpg --list-secret-keys lists my key and user name as same as the error

found a forum with the suggestion to use

debuild -S -rfakeroot -k<your_gpg_key_id>

then i get this error

Building the build Environment
 -> extracting base tarball [/var/cache/pbuilder/base.tgz]
E: failed to find /var/cache/pbuilder/base.tgz, have you done <pbuilder create> to create your base tarball yet?
des@LinuxPC:~/ed$

when i do sudo pbuilder create
i brings up this error at the end

Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy/Release Unable to find expected entry multiuniverse/binary-i386/Packages in Meta-index file (malformed Release file?)

E: Some index files failed to download, they have been ignored, or old ones used instead.
 -> Aborting with an error
 -> unmounting dev/pts filesystem
 -> unmounting proc filesystem
 -> cleaning the build env
    -> removing directory /var/cache/pbuilder/build//21207 and its subdirectories

Anybody any ideas?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bhavani Shankar (bhavi) said :
#1

Okay!

delete your gpg key from launchpad and create a new one and upload it to launchpad and also make sure that you have DEBFULLNAME and DEBMAIL fields in your bashrc and you have updated your bashrc

Regards

Revision history for this message
Nandan Vaidya (gotunandan) said :
#2

I just had the same error.

The solution is here:
https://help.launchpad.net/Packaging/UploadErrors

You need to pass a -k<keyid> option to debuild

That has made it work for me !

Can you help with this problem?

Provide an answer of your own, or ask Des Barrett for more information if necessary.

To post a message you must log in.