Ubuntu – Can’t get `pcscd` to start in Ubuntu 12.10

12.10pcscd

I'm trying to get a smart card reader (SCR3310) to work under Ubuntu 12.10. I have used this same card reader with Linux Mint and Previous versions of Ubuntu. I have installed pcsc-tools,pcscd libccid, libnss3-tools, and coolkey. The driver for the card reader is included in libccid.

When I run pcsc_scan the terminal returns the error, SCardEstablishContext: Service not available. If I understand this correctly, the error is indicating that it can't contact the pcscddaemon/service.
When I check service pcscd status it returns * pcscd is not running. If I try sudo service pcscd start, I get no error but the service doesn't start. I also tried the force-reload option, it returns * Restarting PCSC Lite resource manager pcscd [failed]

For what it's worth, the card reader and supporting software currently work under my Mint partition. So far I haven't seen where I'm missing anything under the Ubuntu install that is present under Mint. Also, I have tried un-installing/re-installing pcscd.

Is it likely that there is another service that pcscd depends on that may not be present?

Operating System: Ubuntu 12.10 32-bit
System: Dell Latitude E6500
Card Reader: SCR 3310

Best Answer

Finally got back to tinkering with the card reader again today. The good news is I got it working. The bad news is, I'm not sure which step fixed it...

  1. Removed Coolkey
  2. Installed CacKey (available at SourceForge.mil). Tested but still couldn't restart pcscd
  3. Looked through the README.gz file and found a reference to libusb. I didn't have libusb in my /lib directory on Ubuntu but I did on Mint. So I sym-linked to the /lib/libusb on my Mint partition. (Yes, I realize that would not be an option for everyone, but it's what I did.) Still couldn't get pcscd to restart.
  4. Removed and Re-installed pcscd. I was then able to contact the reader with pcsc_scan. Keep in mind I had already un-installed/re-installed pcscd before.
  5. Added Security device in Firefox and pointed to /usr/lib/libcackey.so. Worked as expected

I'm going to continue to tinker and see if I can Isolate the step that worked. (Have a second laptop running 12.10 with the same problem.)

Related Question