bash: lspci: command not found

Written by Yujin Boby

Edit in WordPress

On Ubuntu server, when I run lspci command, I get the error

root@first-vm:~# lspci
-bash: lspci: command not found
root@first-vm:~# 

To fix this error, install the package pciutils

apt install -y pciutils

See lspci