GPG PKCS#11 error: "OpenPGP card not available: End of file"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnupg-pkcs11-scd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Running Ubuntu 18.04. Smart card is working in Evolution, Firefox, Chrome. GPG crashes with an end of file error when trying to read the card. Details below:
```
$ gpg --card-status
gpg: WARNING: server 'scdaemon' is older than us (0.9.1 < 2.2.4)
gpg: Note: Outdated servers may lack important security fixes.
gpg: Note: Use the command "gpgconf --kill all" to restart them.
gpg: OpenPGP card not available: End of file
```
```
$ cat ~/.gnupg/
log-file /home/ward/
# verbose
# debug-all
providers p1
# provider-p1-library /usr/lib/
# provider-p1-library /usr/lib/
provider-p1-library /usr/lib/
# provider-p1-library /usr/lib/
# provider-
```
```
$ tail -n 20 /home/ward/
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
gnupg-pkcs11-
```
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnupg-pkcs11-scd 0.9.1-1build1
ProcVersionSign
Uname: Linux 4.15.0-96-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.14
Architecture: amd64
CurrentDesktop: GNOME
Date: Fri Apr 24 08:58:29 2020
DistributionCha
# This is a distribution channel descriptor
# For more information see http://
canonical-
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-09-04 (2423 days ago)
InstallationMedia: Ubuntu 12.04 "Precise" - Build amd64 LIVE Binary 20120703-15:08
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gnupg-pkcs11-scd
UpgradeStatus: Upgraded to bionic on 2019-01-28 (451 days ago)
Version 0.10.0 from upstream fixes numerous issues. /github. com/alonbl/ gnupg-pkcs11- scd/blob/ master/ ChangeLog
https:/
I had to compile from upstream source to get this working on 20.04 and 22.04.