[Bug 608449] Re: lspci returns error on devices that don't have pci adapters (arm)

ffa 608449 at bugs.launchpad.net
Mon May 11 20:17:25 UTC 2020


Same issue here in 2020.

=======================
➜  fa sudo lspci
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
➜  fa uname -a
Linux retropie 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux
➜  fa whoami
root
➜  fa lspci
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
➜  fa


=======================

On :

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/608449

Title:
  lspci returns error on devices that don't have pci adapters (arm)

Status in Apport:
  Fix Released
Status in apport package in Ubuntu:
  Fix Released

Bug description:
  When reporting a system bug on BeagleBoard (ARM based) with Ubuntu,
  Apport shows an error while trying to list the pci devices of the
  system.

  As BeagleBoard doesn't have any pci adapter, the command lspci will
  return an error and this error will be inside apport bug report
  (besides giving a traceback at the console).

  ubuntu at beagle-maverick:~$ ubuntu-bug linux
  ** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)
  ** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)
  ** Message: pygobject_register_sinkfunc is deprecated (GtkObject)
  hook /usr/share/apport/package-hooks//source_linux.py crashed:
  Traceback (most recent call last):
    File "/usr/lib/python2.6/dist-packages/apport/report.py", line 636, in add_hooks_info
      symb['add_info'](self, ui)
    File "/usr/share/apport/package-hooks//source_linux.py", line 123, in add_info
      attach_alsa(report)
    File "/usr/lib/python2.6/dist-packages/apport/hookutils.py", line 202, in attach_alsa
      report['PciMultimedia'] = pci_devices(PCI_MULTIMEDIA)
    File "/usr/lib/python2.6/dist-packages/apport/hookutils.py", line 354, in pci_devices
      key, value = line.split(':',1)
  ValueError: need more than 1 value to unpack

  On the report screen:
  Lspci:
    Error: command ['lspci', '-vvnn'] failed with exit code 1: pcilib: Cannot open /proc/bus/pci
     lspci: Cannot find any working access method

To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/608449/+subscriptions



More information about the foundations-bugs mailing list