<p>*아래와 같은 에러 발생시,</p>
<p>C:\Users\bk940&gt;usbipd wsl attach -b 7-4 --auto-attach</p>
<p>usbipd: error: WSL 'usbip' client not correctly installed. See https://github.com/dorssel/usbipd-win/wiki/WSL-support for the latest instructions.</p>
<p>&nbsp;</p>
<p><span style="color: #ececec; font-size: 18px; letter-spacing: -0.072px; background-color: #121212;">WSL2 게스트 리눅스에서 아래 명령어를 입력하여 linux-tools-generic과 hwdata를 설치해준다.</span></p>
<p>&nbsp;</p>
<pre class=" language-bash" style="box-sizing: inherit; font-family: &quot;Fira Mono&quot;, source-code-pro, Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 0.875rem; padding: 1em; border-radius: 4px; line-height: 1.5; overflow: auto; letter-spacing: 0px; background-image: ; background-position-x: ; background-position-y: ; background-size: ; background-repeat: ; background-attachment: ; background-origin: ; background-clip: ; color: var(--prism-default-text); word-break: normal; overflow-wrap: normal; tab-size: 4; hyphens: none; margin-top: 0.5em; margin-bottom: 0.5em;">
   <code class=" language-bash" style="box-sizing: inherit; font-family: &quot;Fira Mono&quot;, source-code-pro, Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; color: var(--prism-default-text); background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; word-spacing: normal; word-break: normal; overflow-wrap: normal; tab-size: 4; hyphens: none;"><span class="token function" style="box-sizing: inherit; color: var(--prism-code-8);">sudo</span><span class="token function" style="box-sizing: inherit; color: var(--prism-code-8);">apt</span> update
<span class="token function" style="box-sizing: inherit; color: var(--prism-code-8);">sudo</span><span class="token function" style="box-sizing: inherit; color: var(--prism-code-8);">apt</span><span class="token function" style="box-sizing: inherit; color: var(--prism-code-8);">install</span> -y linux-tools-5.4.0-77-generic hwdata
<span class="token function" style="box-sizing: inherit; color: var(--prism-code-8);">sudo</span> update-alternatives --install /usr/local/bin/usbip usbip <span class="token variable" style="box-sizing: inherit; color: var(--prism-code-9);"><span class="token variable" style="box-sizing: inherit; color: var(--prism-code-9);">$(</span><span class="token function" style="box-sizing: inherit; color: var(--prism-code-8);">ls</span> /usr/lib/linux-tools/*/usbip<span class="token variable" style="box-sizing: inherit; color: var(--prism-code-9);">)</span></span><span class="token number" style="box-sizing: inherit; color: var(--prism-code-4);">20</span></code>
   </pre>
<p><span style="letter-spacing: -0.072px; background-color: #121212; font-size: 16px; color: #313131;">&nbsp;</span><span style="letter-spacing: -0.072px; font-size: 16px; color: #313131;">geoworld@geoworldLaptop:~$ cat usbipd.sh</span></p>
<p><span style="letter-spacing: -0.072px; font-size: 16px; color: #313131;">#!/bin/bash</span></p>
<p><font color="#ececec"><span style="letter-spacing: -0.072px; font-size: 16px; color: #313131;">sudo update-alternatives --install /usr/local/bin/usbip usbip $(ls /usr/lib/linux-tools/*/usbip) 20</span></font></p>