1

I'm trying to discover the USB VID for a keyboard that I intend to use as a second keyboard for macros. I have found a tutorial that tells me to use the command lsusb to discover this, but when I try to type lsusb in the terminal it does not work, stating that the command was not found.

How can I use this command? I use Xubuntu 16.04.

7
  • What release or flavor of Ubuntu are you using?
    – guiverc
    May 8, 2019 at 3:20
  • I am using Xubuntu Xenial. I have added the appropriate flags. May 8, 2019 at 3:23
  • Have you tried running it with sudo?
    – Gerowen
    May 8, 2019 at 3:26
  • Yes, I have, and it gives the same error of command not found. May 8, 2019 at 3:28
  • 1
    @dessert flavors are not supported for 5 years, that's 'main' repo only, here it was Xubuntu desktop that had reached EOL (Ubuntu 16.04 LTS will be supported for 5 years for Ubuntu Desktop, Ubuntu Server, Ubuntu Core, and Ubuntu Kylin. All other flavours will be supported for 3 years. wiki.ubuntu.com/XenialXerus/ReleaseNotes)
    – guiverc
    May 8, 2019 at 8:30

1 Answer 1

1

On my system lsusb runs, so I look for the file

guiverc@d960-ubu2:~$   whereis lsusb
lsusb: /usr/bin/lsusb /usr/share/man/man8/lsusb.8.gz

I look for what package the command is found

guiverc@d960-ubu2:~$   dpkg -S /usr/bin/lsusb
usbutils: /usr/bin/lsusb

At this point I'd probably have the answer you want, ie. ensure that package is installed, on my box I can use

guiverc@d960-ubu2:~$   apt-cache policy usbutils
usbutils:
  Installed: 1:010-3
  Candidate: 1:010-3
  Version table:
 *** 1:010-3 500
        500 http://ftp.iinet.net.au/pub/ubuntu eoan/main amd64 Packages
        100 /var/lib/dpkg/status

or in summary; check you have usbutils installed, and sudo apt install usbutils if you don't.

1
  • this worked because I have it installed; the whereis of course would fail on a box which didn't have it installed, so I'd have to apt search or different commands if it wasn't installed on this box.
    – guiverc
    May 8, 2019 at 3:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .