microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.25k stars 811 forks source link

Ubuntu terminal hangs when starting pcscd service (20.04) #7880

Closed kikaragyozov closed 7 months ago

kikaragyozov commented 2 years ago

Version

Microsoft Windows [Version 10.0.19043.1415]

WSL Version

Kernel Version

2

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

Install Ubuntu 20.04 sub-system on Windows 10 as ordinary. Go through the installation for the required software as outlined in https://github.com/drduh/YubiKey-Guide#required-software which is:

$ sudo apt update

$ sudo apt -y upgrade

$ sudo apt -y install wget gnupg2 gnupg-agent dirmngr cryptsetup scdaemon pcscd secure-delete hopenpgp-tools yubikey-personalization

$ sudo apt -y install libssl-dev swig libpcsclite-dev

$ sudo apt -y install python3-pip python3-pyscard

$ pip3 install PyOpenSSL

$ pip3 install yubikey-manager

$ sudo service pcscd start

$ ~/.local/bin/ykman openpgp info

By the time you've executed sudo service pcscd start, the service will never successfully start. Using ctr+c will return back control to you, and writing sudo service pcscd status will show it as running, but I feel like that's fake, as when you do ~/.local/bin/ykman openpgp info, you'll get a similar hanging experience, and it won't just end with a ctr+c this time, or at all - perhaps it will if you wait for a long period of time.

Expected Behavior

I expected that the system will not hang on either of these commands.

Actual Behavior

The Ubuntu system just hangs when you reach and execute the command sudo service pcscd start, as explained in more detail in the "Repro Steps" section of this bug report. Similarly, ~/.local/bin/ykman openpgp info hangs the terminal as well, in a more aggressive fashion. Other commands of the ykman tool are working and providing user feedback.

Diagnostic Logs

No response

microsoft-github-policy-service[bot] commented 7 months ago

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!