There is a lspci failed message when I text the lspci command
lspci
lspci: Line too long at /usr/share/misc/pci.ids, line 1
so I try other command to show the line number
sed -n 1p /usr/share/misc/pci.ids | wc -c
1210291
cat /usr/share/misc/pci.ids | awk '{ print length }' | sort -n | tail -1
1210291
(In the normal machine only get 167)
The machine data is:
- lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
- uname -r
5.11.0-40-generic
lspci version:
lspci version 3.6.4
How do I fix this problem or there is a workaround?
There is samilary discussion in raspberry pi page
apt install --reinstall pci.ids
– Bravo Dec 01 '21 at 05:35same discussion in raspberry pi page
- that's on a different line though – Bravo Dec 01 '21 at 05:39pci.ids
file seems to be absolutely busted - have you inspected it? it should be plain text. Perhaps this is an indication of a failing sd card (I assume you're running this on a pi) – Bravo Dec 01 '21 at 07:16file /usr/share/misc/pci.ids
command get return data text. Maybe this file in this USB is broken I guess. – laudai Dec 02 '21 at 02:23apt install --reinstall pci.ids
– Bravo Dec 02 '21 at 02:26