NVIDIA-SMI: No devices were found


When I try to run nvidia-smi, I get a no devices were found. My configuration is:
OS: Ubuntu 22.04
GPU: GTX 1060 6GB
RAM: 16 GB
Linux kernel: 5.15.0-39-generic

Output from my gpu-manager:

last_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
new_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
can't access /opt/amdgpu-pro/bin/amdgpu-pro-px
Looking for nvidia modules in /lib/modules/5.15.0-39-generic/kernel
Looking for nvidia modules in /lib/modules/5.15.0-39-generic/updates/dkms
Found nvidia.ko module in /lib/modules/5.15.0-39-generic/updates/dkms/nvidia.ko
Looking for amdgpu modules in /lib/modules/5.15.0-39-generic/kernel
Looking for amdgpu modules in /lib/modules/5.15.0-39-generic/updates/dkms
Is nvidia loaded? yes
Was nvidia unloaded? no
Is nvidia blacklisted? no
Is intel loaded? yes
Is radeon loaded? no
Is radeon blacklisted? no
Is amdgpu loaded? no
Is amdgpu blacklisted? no
Is amdgpu versioned? no
Is amdgpu pro stack? no
Is nouveau loaded? no
Is nouveau blacklisted? yes
Is nvidia kernel module available? yes
Is amdgpu kernel module available? no
Vendor/Device Id: 8086:3e9b
BusID "PCI:0@0:2:0"
Is boot vga? yes
Vendor/Device Id: 10de:1c20
BusID "PCI:1@0:0:0"
Is boot vga? no
Chassis type: "10"
Laptop detected
can't access /etc/u-d-c-nvidia-runtimepm-override file
Found json file: /usr/share/doc/nvidia-driver-470-server/supported-gpus.json
File /usr/share/doc/nvidia-driver-470-server/supported-gpus.json not found
Warning: access to PME Capabilities was denied
Is nvidia runtime pm supported for "0x1c20"? no
Checking power status in /proc/driver/nvidia/gpus/0000:01:00.0/power
Runtime D3 status:          ?
Is nvidia runtime pm enabled for "0x1c20"? no
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card0", driven by "i915"
Found "/dev/dri/card0", driven by "i915"
output 0:
Number of connected outputs for /dev/dri/card0: 1
Does it require offloading? yes
last cards number = 2
I couldn't open /var/lib/ubuntu-drivers-common/last_gfx_boot for writing.
Error: can't write to /var/lib/ubuntu-drivers-common/last_gfx_boot

Attaching my bug report

Processing: nvidia-bug-report.log.gz…