usbip: error: failed to open /usr/share/hwdata//usb.ids

Bug #2039439 reported by Juerg Haefliger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Status tracked in Mantic
Jammy
In Progress
Medium
Unassigned
Lunar
In Progress
Medium
Unassigned
Mantic
In Progress
Medium
Unassigned

Bug Description

[Impact]

usbip from linux-tools tries to access /usr/share/hwdata/usb.ids which is provided by the hwdata package which is not installed by default.

$ usbip list -l
usbip: error: failed to open /usr/share/hwdata//usb.ids
 - busid 1-1.1.1 (0424:7800)
   unknown vendor : unknown product (0424:7800)

[Test Case]

$ apt install linux-tools-<flavor>
$ usbip list -l
 - busid 1-1.1.1 (0424:7800)
   Microchip Technology, Inc. (formerly SMSC) : unknown product (0424:7800)

[Fix]

Make hwdata a dependency of linux-tools-common.

[Regression Potential]

A trivial package (hwdata) is installed as a dependency. Can't think of any problems this could cause other than a theoretical package installation failure.

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 2039439

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Juerg Haefliger (juergh) wrote : Re: linux-tools-common should depend on hwdata

diff --git a/debian.master/control.stub.in b/debian.master/control.stub.in
index 83d5900b5d96..e2a0b55538d4 100644
--- a/debian.master/control.stub.in
+++ b/debian.master/control.stub.in
@@ -111,7 +111,7 @@ Multi-Arch: foreign
 Section: kernel
 Priority: optional
 Provides: bpftool
-Depends: ${misc:Depends}, lsb-release
+Depends: ${misc:Depends}, lsb-release, hwdata
 Description: Linux kernel version specific tools for version PKGVER
  This package provides the architecture independent parts for kernel
  version locked tools (such as perf and x86_energy_perf_policy) for

Juerg Haefliger (juergh)
description: updated
description: updated
summary: - linux-tools-common should depend on hwdata
+ usbip: error: failed to open /usr/share/hwdata//usb.ids
description: updated
description: updated
Stefan Bader (smb)
Changed in linux (Ubuntu Mantic):
status: Incomplete → In Progress
importance: Undecided → Medium
Changed in linux (Ubuntu Lunar):
status: New → In Progress
importance: Undecided → Medium
Changed in linux (Ubuntu Jammy):
status: New → In Progress
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.