Score:0

How to setup an usbip server on ubuntu 22.04 LTS?

gw flag

I am trying to setup an usbip server on ubuntu 22.04.1 LTS x64. I firstly installed the the following packages via the commands:

sudo apt install linux-tools-generic

Then I load the modules via the command:

sudo modprobe usbip_core
sudo modprobe usbip_host
sudo modprobe vhci_hcd

Then I checked the running modules via command lsmod and grep, and I am sure all the three modules loaded successfully. Finally, I got the error bellow when I was trying to list the local usb devices:

boliang@boliang-AO756:~$ sudo usbip list -l
[sudo] password for boliang: 
WARNING: usbip not found for kernel 5.15.0-43

  You may need to install the following packages for this specific kernel:
    linux-tools-5.15.0-43-generic
    linux-cloud-tools-5.15.0-43-generic

  You may also want to install one of the following packages to keep up to date:
    linux-tools-generic
    linux-cloud-tools-generic

I don't know if there are any errors in the above installation and configuration process, and if there are, what is the correct way. Thank you!

ar flag
Please edit your question when providing additional information. The comments are our channel to ask for clarifications and give you transient information. The comments can be deleted when they are no longer needed.
user535733 avatar
cn flag
Your question above says that you installed `linux-tools-generics`, which is the wrong name. Either install `linux-tools-generic` or fix your typo.
Score:0
gw flag

After several days of exploration, I finally discovered the cause of the problem. There were two sets of usbip executable files in my system, one located under /usr/bin/ and the other under /usr/lib/linux-tools-x.x.x-xxx/. The former was installed by the linux-tools-common package, while the latter was installed by the linux-tools-x.x.x-xxx-generic package. As for why this happened, I am still not sure, but I feel that it may be a bug.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.