archinstall icon indicating copy to clipboard operation
archinstall copied to clipboard

pcilib: Cannot open /sys/bus/PCI/devices

Open alinuxfan opened this issue 1 year ago • 3 comments

Which ISO version are you using?

2025-07-01

The installation log

[2025-07-17 14:10:10] - DEBUG - Hardware model detected: ASUSTeK COMPUTER INC. ROG Strix G16 G615LR_G615LR; UEFI mode: True
[2025-07-17 14:10:10] - DEBUG - Processor model detected: Intel(R) Core(TM) Ultra 9 275HX
[2025-07-17 14:10:10] - DEBUG - Memory statistics: 30259980 available out of 32190632 total installed
[2025-07-17 14:10:10] - DEBUG - Could not detect virtual system: ['/usr/bin/systemd-detect-virt'] exited with abnormal exit code [1]: none

[2025-07-17 14:10:10] - DEBUG - System is not running in a VM: ['/usr/bin/systemd-detect-virt'] exited with abnormal exit code [1]: none

[2025-07-17 14:10:10] - DEBUG - Virtualization detected: None; is VM: False
[2025-07-17 14:10:13] - ERROR - Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/archinstall/__init__.py", line 104, in run_as_a_module
    rc = main()
  File "/usr/lib/python3.13/site-packages/archinstall/__init__.py", line 82, in main
    _log_sys_info()
    ~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/archinstall/__init__.py", line 33, in _log_sys_info
    debug(f'Graphics devices detected: {SysInfo._graphics_devices().keys()}')
                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/hardware.py", line 213, in _graphics_devices
    for line in SysCommand('lspci'):
                ~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/general.py", line 326, in __init__
    self.create_session()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/general.py", line 366, in create_session
    with SysCommandWorker(
         ~~~~~~~~~~~~~~~~^
    	self.cmd,
     ^^^^^^^^^
    ...<3 lines>...
    	working_directory=self.working_directory,
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ) as session:
    ^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/general.py", line 194, in __exit__
    raise SysCallError(
    ...<3 lines>...
    )
archinstall.lib.exceptions.SysCallError: ['/usr/bin/lspci'] exited with abnormal exit code [1]: pcilib: Cannot open /sys/bus/pci/devices/0000:04:02.0/config
lspci: Cannot open /sys/bus/pci/devices/0000:04:02.0/vendor: No such file or directory


[2025-07-17 14:10:13] - WARNING - Archinstall experienced the above error. If you think this is a bug, please report it to
https://github.com/archlinux/archinstall and include the log file "/var/log/archinstall/install.log".

Hint: To extract the log from a live ISO 
curl -F'file=@/var/log/archinstall/install.log' https://0x0.st

describe the problem

Description of the issue

I was installing on Asus ROG Strix G16 hardware, used iwctl to connect to the network then ran the command archinstall with the above error happening immediately

alinuxfan avatar Jul 17 '25 14:07 alinuxfan

What the heck 😅 can you run lspci manually?

Torxed avatar Jul 17 '25 15:07 Torxed

You are right. When I run lspci, I get errors but when I try to pipe it to a file to share results, it actually works.

Errors are "pcieport Unable to change power state from D3cold to D0"

If I run lspci twice in a row, the first time it fails and the second time it succeeds.

alinuxfan avatar Jul 17 '25 17:07 alinuxfan

Closing. Still happening but obviously not an archinstall issue

alinuxfan avatar Jul 17 '25 20:07 alinuxfan