5

I was wondering why some of my USB devices where not recognized by lsusb and stumbled upon /usr/share/hwdata/usb.ids.

When I read the contents of the file I could see that the hardware database was dated from mid-2015 (roughly two years before the distribution, Debian 9 "Stretch", was released in June 2017).

I ran the following to update the database:

update-usbids

And was surprised to find that it was dated from last March.

How comes that it is not updated automatically?

Paradox
  • 1,369
  • 3
  • 13
  • 27

1 Answers1

3

Running update-usbids by default isn’t an option because users don’t necessarily want their systems to “phone home” in any way (which update-usbids does, even if the download URL is currently trustworthy), and Debian avoids configuring them to do so.

I imagine the package maintainer didn’t think of uploading a package with an updated list of ids before the Debian 9 freeze in early 2017. The package which was released in Debian 9 was uploaded in 2015, so the age of the database makes sense. You might think that the package could update its own database during the build, which would allow an automated rebuild to update the database for everyone, but package builds aren’t allowed to access remote hosts.

Later releases of usbutils switched to the systemd database. The switch to systemd in general meant reduced support for sysvinit-based systems; supporting those is still a requirement for Debian, so the newer packages were only uploaded to experimental until recently. Debian 10 will feature a newer release, using the systemd database.

If system administrators wants to update the USB identifiers, they can add a monthly cron job...

Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164