Bug 290113 - CLI Gnupg works, Kgpg does not decrypt, gpg-agent does not work
Summary: CLI Gnupg works, Kgpg does not decrypt, gpg-agent does not work
Status: RESOLVED DUPLICATE of bug 291923
Alias: None
Product: kgpg
Classification: Applications
Component: general (show other bugs)
Version: 2.6.x
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Rolf Eike Beer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-29 18:59 UTC by Larry
Modified: 2015-01-08 21:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Kgpg startup error dialog (41.98 KB, image/png)
2012-01-19 03:51 UTC, Unknown
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Larry 2011-12-29 18:59:39 UTC
Version:           unspecified (using KDE 4.7.3) 
OS:                Linux

Since my upgrade from 11.04 to 11.10 Kgpg will not decrypt files.  Seemingly part of this is that gpg-agent won't run.  If I create a file 'tester1.doc' I can encrypt it with my public key and decrypt it with my private key like so:

$ gpg --encrypt --armor tester1.doc

$ gpg --output tester1.clear.doc --decrypt tester1.doc.asc

I get the new file, tester1.clear.doc, which is the decrypted version of the original.

With Kgpg I get an error message that gpg-agent won't run.  Then I'm prompted for my passphrase and I get an error that the file cannot be decrypted.   Given the CLI results and the fact that I can decrypt the same encrypted file in Windows PGP with the same public/private key pair that I'm using in Kubuntu, the problem sure looks like Kgpg.  I have very little experience with solving a problem of this type.  Searching these forums has shown that no one has gotten an answer to solving a Kgpg problem like this.  Searching the internet also yielded very little.  I got help with the CLI stuff from Linusquestions.org.  Does anyone have a solution?  Is there a special forum I should post this problem on?  Is this a bug I should report?  Everything worked OK in 11.04.

The Kgpg version is 2.6.2  I am not an experienced Linux user.  I am reporting this bug because;

The Kubuntu administrator replied:

Given that your researched has turned up no solutions, it does sound like a bug report is in order.

http://bugs.kde.org

Reproducible: Always

Steps to Reproduce:
Reported in "Details"

Actual Results:  
Reported in "Details"

Expected Results:  
I ought to be able to decrypt a gpg encrypted file with my key
Comment 1 Unknown 2012-01-19 03:51:22 UTC
Created attachment 67986 [details]
Kgpg startup error dialog
Comment 2 Unknown 2012-01-19 03:54:09 UTC
Good day. I suggested Larry submit this report, and would like to report similar behavior. I have a computer running Ubuntu Precise, built with the CLI, and manually installed KDE via the repos (this is not a Kubuntu build). gnupg, gnupg2, and gnupg-agent are installed. When I attempt to start Kgpg, a dialog appears (see attached PNG image) informing me that the gpg option file is missing. There is no "options" file in my ~/.gnupg directory. The directory contains:

steve@steve-aspire:~$ ll ~/.gnupg
total 32
drwx------  3 steve steve 4096 Jan 18 19:52 ./
drwxr-xr-x 22 steve steve 4096 Jan 18 19:40 ../
-rw-rw-r--  1 steve steve   50 Jan 18 18:30 gpg-agent-info-steve-aspire
-rw-------  1 steve steve 9398 Dec 29 18:17 gpg.conf
drwx------  2 steve steve 4096 Dec 29 16:45 private-keys-v1.d/
-rw-------  1 steve steve    0 Dec 29 16:42 pubring.gpg
-rw-------  1 steve steve    0 Dec 29 16:42 secring.gpg
-rw-------  1 steve steve   40 Dec 29 17:02 trustdb.gpg
Comment 3 Unknown 2012-01-19 03:56:33 UTC
Hit enter too soon, sorry. Package details:

steve@steve-aspire:~$ apt-cache policy gnupg
gnupg:
  Installed: 1.4.11-3ubuntu2
  Candidate: 1.4.11-3ubuntu2
  Version table:
 *** 1.4.11-3ubuntu2 0
        500 http://mirror.anl.gov/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

steve@steve-aspire:~$ apt-cache policy gnupg2
gnupg2:
  Installed: 2.0.17-2ubuntu2
  Candidate: 2.0.17-2ubuntu2
  Version table:
 *** 2.0.17-2ubuntu2 0
        500 http://mirror.anl.gov/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

steve@steve-aspire:~$ apt-cache policy gnupg-agent
gnupg-agent:
  Installed: 2.0.17-2ubuntu2
  Candidate: 2.0.17-2ubuntu2
  Version table:
 *** 2.0.17-2ubuntu2 0
        500 http://mirror.anl.gov/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

steve@steve-aspire:~$ apt-cache policy kgpg
kgpg:
  Installed: 4:4.7.97-0ubuntu1
  Candidate: 4:4.7.97-0ubuntu1
  Version table:
 *** 4:4.7.97-0ubuntu1 0
        500 http://mirror.anl.gov/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status
Comment 4 Unknown 2012-01-19 08:24:32 UTC
Related problem in bug 290221: https://bugs.kde.org/show_bug.cgi?id=290221

Workaround and potential solution in bug 291923: https://bugs.kde.org/show_bug.cgi?id=291923
Comment 5 Rolf Eike Beer 2012-01-21 09:53:54 UTC

*** This bug has been marked as a duplicate of bug 291923 ***