Closed jeff-j-chen closed 2 years ago
Note that I am struggling with the solution presented in nvidia470#6.
I am running the script as an sh, however trying to use add <repo>
gives me the error gpg: can't open '/home/scripts/.iso.asc': No such file or directory
. I feel like I'm missing something pretty obvious for this solution but am still extremely confused as to how I'm supposed to use the script.
Lost about 12 hours to this with still no progress. I got the script working by commenting out the line which added a GPG key, and the repos seem to have been added. I used the script to add the relevant staging repositories, but none seemed to work. I've since tried switching to an older kernel (5.15xx), switching to a newer kernel (5.18.2), purging older kernels, and updating the repositories all the while, but nothing seems to work.
In the present state, the apt script has added two repos from staging, linux-5.18.2
and nvidia-515.48.07
. I am running kernel 5.18.2 and am trying to install the nvidia graphics of version 515 and 510, neither of which is yielding results. Here is the output:
jeff@pop-os:~$ sudo apt install nvidia-driver-515
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libnvidia-cfg1-515 libnvidia-common-515 libnvidia-compute-515 libnvidia-compute-515:i386 libnvidia-decode-515 libnvidia-decode-515:i386 libnvidia-egl-wayland1 libnvidia-encode-515
libnvidia-encode-515:i386 libnvidia-extra-515 libnvidia-fbc1-515 libnvidia-fbc1-515:i386 libnvidia-gl-515 libnvidia-gl-515:i386 nvidia-compute-utils-515 nvidia-dkms-515
nvidia-kernel-common-515 nvidia-kernel-source-515 nvidia-settings nvidia-utils-515 xserver-xorg-video-nvidia-515
The following NEW packages will be installed:
libnvidia-cfg1-515 libnvidia-common-515 libnvidia-compute-515 libnvidia-compute-515:i386 libnvidia-decode-515 libnvidia-decode-515:i386 libnvidia-egl-wayland1 libnvidia-encode-515
libnvidia-encode-515:i386 libnvidia-extra-515 libnvidia-fbc1-515 libnvidia-fbc1-515:i386 libnvidia-gl-515 libnvidia-gl-515:i386 nvidia-compute-utils-515 nvidia-dkms-515 nvidia-driver-515
nvidia-kernel-common-515 nvidia-kernel-source-515 nvidia-settings nvidia-utils-515 xserver-xorg-video-nvidia-515
0 upgraded, 22 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/353 MB of archives.
After this operation, 894 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package libnvidia-cfg1-515:amd64.
(Reading database ... 337907 files and directories currently installed.)
Preparing to unpack .../00-libnvidia-cfg1-515_515.48.07-1pop0~1654263250~22.04~dd969cd_amd64.deb ...
Unpacking libnvidia-cfg1-515:amd64 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package libnvidia-common-515.
Preparing to unpack .../01-libnvidia-common-515_515.48.07-1pop0~1654263250~22.04~dd969cd_all.deb ...
Unpacking libnvidia-common-515 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package libnvidia-compute-515:i386.
Preparing to unpack .../02-libnvidia-compute-515_515.48.07-1pop0~1654263250~22.04~dd969cd_i386.deb ...
Unpacking libnvidia-compute-515:i386 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package libnvidia-compute-515:amd64.
Preparing to unpack .../03-libnvidia-compute-515_515.48.07-1pop0~1654263250~22.04~dd969cd_amd64.deb ...
Unpacking libnvidia-compute-515:amd64 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package libnvidia-decode-515:i386.
Preparing to unpack .../04-libnvidia-decode-515_515.48.07-1pop0~1654263250~22.04~dd969cd_i386.deb ...
Unpacking libnvidia-decode-515:i386 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package libnvidia-decode-515:amd64.
Preparing to unpack .../05-libnvidia-decode-515_515.48.07-1pop0~1654263250~22.04~dd969cd_amd64.deb ...
Unpacking libnvidia-decode-515:amd64 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package libnvidia-egl-wayland1:amd64.
Preparing to unpack .../06-libnvidia-egl-wayland1_1%3a1.1.9-1.1_amd64.deb ...
Unpacking libnvidia-egl-wayland1:amd64 (1:1.1.9-1.1) ...
Selecting previously unselected package libnvidia-encode-515:amd64.
Preparing to unpack .../07-libnvidia-encode-515_515.48.07-1pop0~1654263250~22.04~dd969cd_amd64.deb ...
Unpacking libnvidia-encode-515:amd64 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package libnvidia-encode-515:i386.
Preparing to unpack .../08-libnvidia-encode-515_515.48.07-1pop0~1654263250~22.04~dd969cd_i386.deb ...
Unpacking libnvidia-encode-515:i386 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package libnvidia-extra-515:amd64.
Preparing to unpack .../09-libnvidia-extra-515_515.48.07-1pop0~1654263250~22.04~dd969cd_amd64.deb ...
Unpacking libnvidia-extra-515:amd64 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package libnvidia-fbc1-515:i386.
Preparing to unpack .../10-libnvidia-fbc1-515_515.48.07-1pop0~1654263250~22.04~dd969cd_i386.deb ...
Unpacking libnvidia-fbc1-515:i386 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package libnvidia-fbc1-515:amd64.
Preparing to unpack .../11-libnvidia-fbc1-515_515.48.07-1pop0~1654263250~22.04~dd969cd_amd64.deb ...
Unpacking libnvidia-fbc1-515:amd64 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package libnvidia-gl-515:i386.
Preparing to unpack .../12-libnvidia-gl-515_515.48.07-1pop0~1654263250~22.04~dd969cd_i386.deb ...
dpkg-query: no packages found matching libnvidia-gl-510
Unpacking libnvidia-gl-515:i386 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package libnvidia-gl-515:amd64.
Preparing to unpack .../13-libnvidia-gl-515_515.48.07-1pop0~1654263250~22.04~dd969cd_amd64.deb ...
dpkg-query: no packages found matching libnvidia-gl-510
Unpacking libnvidia-gl-515:amd64 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package nvidia-compute-utils-515.
Preparing to unpack .../14-nvidia-compute-utils-515_515.48.07-1pop0~1654263250~22.04~dd969cd_amd64.deb ...
Unpacking nvidia-compute-utils-515 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package nvidia-kernel-source-515.
Preparing to unpack .../15-nvidia-kernel-source-515_515.48.07-1pop0~1654263250~22.04~dd969cd_amd64.deb ...
Unpacking nvidia-kernel-source-515 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package nvidia-kernel-common-515.
Preparing to unpack .../16-nvidia-kernel-common-515_515.48.07-1pop0~1654263250~22.04~dd969cd_amd64.deb ...
Unpacking nvidia-kernel-common-515 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package nvidia-dkms-515.
Preparing to unpack .../17-nvidia-dkms-515_515.48.07-1pop0~1654263250~22.04~dd969cd_amd64.deb ...
Unpacking nvidia-dkms-515 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package nvidia-utils-515.
Preparing to unpack .../18-nvidia-utils-515_515.48.07-1pop0~1654263250~22.04~dd969cd_amd64.deb ...
Unpacking nvidia-utils-515 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package xserver-xorg-video-nvidia-515.
Preparing to unpack .../19-xserver-xorg-video-nvidia-515_515.48.07-1pop0~1654263250~22.04~dd969cd_amd64.deb ...
Unpacking xserver-xorg-video-nvidia-515 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package nvidia-driver-515.
Preparing to unpack .../20-nvidia-driver-515_515.48.07-1pop0~1654263250~22.04~dd969cd_amd64.deb ...
Unpacking nvidia-driver-515 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Selecting previously unselected package nvidia-settings.
Preparing to unpack .../21-nvidia-settings_510.47.03-0ubuntu1_amd64.deb ...
Unpacking nvidia-settings (510.47.03-0ubuntu1) ...
Setting up libnvidia-compute-515:amd64 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Setting up libnvidia-compute-515:i386 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Setting up libnvidia-extra-515:amd64 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Setting up nvidia-kernel-common-515 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Installing new version of config file /etc/modprobe.d/nvidia-graphics-drivers-kms.conf ...
update-initramfs: deferring update (trigger activated)
Setting up nvidia-kernel-source-515 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Setting up libnvidia-egl-wayland1:amd64 (1:1.1.9-1.1) ...
Setting up libnvidia-decode-515:amd64 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Setting up libnvidia-decode-515:i386 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Setting up nvidia-utils-515 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Setting up nvidia-settings (510.47.03-0ubuntu1) ...
Setting up libnvidia-common-515 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Setting up nvidia-dkms-515 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Loading new nvidia-515.48.07 DKMS files...
Building for 5.18.2-76051802-generic
Building for architecture x86_64
Building initial module for 5.18.2-76051802-generic
ERROR (dkms apport): kernel package linux-headers-5.18.2-76051802-generic is not supported
Error! Bad return status for module build on kernel: 5.18.2-76051802-generic (x86_64)
Consult /var/lib/dkms/nvidia/515.48.07/build/make.log for more information.
dpkg: error processing package nvidia-dkms-515 (--configure):
installed nvidia-dkms-515 package post-installation script subprocess returned error exit status 10
Setting up libnvidia-fbc1-515:amd64 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Setting up libnvidia-fbc1-515:i386 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Setting up nvidia-compute-utils-515 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
Adding system user `nvidia-persistenced' (UID 124) ...
Adding new group `nvidia-persistenced' (GID 132) ...
Adding new user `nvidia-persistenced' (UID 124) with group `nvidia-persistenced' ...
Not creating home directory `/nonexistent'.
Setting up libnvidia-cfg1-515:amd64 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Setting up xserver-xorg-video-nvidia-515 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Setting up libnvidia-encode-515:amd64 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Setting up libnvidia-encode-515:i386 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
dpkg: dependency problems prevent configuration of nvidia-driver-515:
nvidia-driver-515 depends on nvidia-dkms-515 (>= 515.48.07); however:
Package nvidia-dkms-515 is not configured yet.
dpkg: error processing package nvidia-driver-515 (--configure):
dependency problems - leaving unconfigured
Setting up libnvidia-gl-515:amd64 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libnvidia-gl-515:i386 (515.48.07-1pop0~1654263250~22.04~dd969cd) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libc-bin (2.35-0ubuntu3) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for initramfs-tools (0.140ubuntu13) ...
update-initramfs: Generating /boot/initrd.img-5.18.2-76051802-generic
cryptsetup: WARNING: Resume target cryptswap uses a key file
W: Possible missing firmware /lib/firmware/amdgpu/ip_discovery.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vega10_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_5_ta.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_5_toc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_5_asd.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_10_3_6_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_10_3_6_mec2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_10_3_6_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_10_3_6_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_10_3_6_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_10_3_6_ce.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sdma_5_2_6.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vcn_3_1_2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/dcn_3_1_5_dmcub.bin for module amdgpu
kernelstub.Config : INFO Looking for configuration...
kernelstub : INFO System information:
OS:..................Pop!_OS 22.04
Root partition:....../dev/nvme0n1p5
Root FS UUID:........d04db784-3139-4c32-8f72-f6ae9301fd4a
ESP Path:............/boot/efi
ESP Partition:......./dev/nvme0n1p6
ESP Partition #:.....6
NVRAM entry #:.......-1
Boot Variable #:.....0000
Kernel Boot Options:.quiet loglevel=0 systemd.show_status=false splash systemd.unified_cgroup_hierarchy=0
Kernel Image Path:.../boot/vmlinuz-5.18.2-76051802-generic
Initrd Image Path:.../boot/initrd.img-5.18.2-76051802-generic
Force-overwrite:.....False
kernelstub.Installer : INFO Copying Kernel into ESP
kernelstub.Installer : INFO Copying initrd.img into ESP
kernelstub.Installer : INFO Setting up loader.conf configuration
kernelstub.Installer : INFO Making entry file for Pop!_OS
kernelstub.Installer : INFO Backing up old kernel
kernelstub.Installer : INFO Making entry file for Pop!_OS
Errors were encountered while processing:
nvidia-dkms-515
nvidia-driver-515
E: Sub-process /usr/bin/dpkg returned an error code (1)
And here is the output from the makelog it is requesting me to take a look at:
DKMS make.log for nvidia-515.48.07 for kernel 5.18.2-76051802-generic (x86_64)
Tue Jun 14 12:05:24 AM PDT 2022
make[1]: Entering directory '/usr/src/linux-headers-5.18.2-76051802-generic'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
You are using: cc (Ubuntu 8.5.0-0ubuntu4) 8.5.0
make -f ./scripts/Makefile.build obj=/var/lib/dkms/nvidia/515.48.07/build \
single-build= \
need-builtin=1 need-modorder=1
ln -sf /var/lib/dkms/nvidia/515.48.07/build/nvidia/nv-kernel.o_binary /var/lib/dkms/nvidia/515.48.07/build/nvidia/nv-kernel.o
ln -sf /var/lib/dkms/nvidia/515.48.07/build/nvidia-modeset/nv-modeset-kernel.o_binary /var/lib/dkms/nvidia/515.48.07/build/nvidia-modeset/nv-modeset-kernel.o
CONFTEST: hash__remap_4k_pfn
CONFTEST: set_pages_uc
CONFTEST: list_is_first
CONFTEST: set_memory_uc
CONFTEST: set_memory_array_uc
CONFTEST: set_pages_array_uc
CONFTEST: ioremap_cache
CONFTEST: ioremap_wc
CONFTEST: sg_alloc_table
CONFTEST: pci_get_domain_bus_and_slot
CONFTEST: get_num_physpages
CONFTEST: efi_enabled
CONFTEST: pde_data
CONFTEST: proc_remove
CONFTEST: pm_vt_switch_required
CONFTEST: xen_ioemu_inject_msi
CONFTEST: phys_to_dma
CONFTEST: get_dma_ops
CONFTEST: dma_attr_macros
CONFTEST: dma_map_page_attrs
CONFTEST: write_cr4
CONFTEST: of_get_property
CONFTEST: of_find_node_by_phandle
CONFTEST: of_node_to_nid
CONFTEST: pnv_pci_get_npu_dev
CONFTEST: of_get_ibm_chip_id
CONFTEST: pci_bus_address
CONFTEST: pci_stop_and_remove_bus_device
CONFTEST: pci_remove_bus_device
CONFTEST: register_cpu_notifier
CONFTEST: cpuhp_setup_state
CONFTEST: dma_map_resource
CONFTEST: get_backlight_device_by_name
CONFTEST: timer_setup
CONFTEST: pci_enable_msix_range
CONFTEST: kernel_read_has_pointer_pos_arg
CONFTEST: kernel_write
CONFTEST: kthread_create_on_node
CONFTEST: of_find_matching_node
CONFTEST: dev_is_pci
CONFTEST: dma_direct_map_resource
CONFTEST: tegra_get_platform
CONFTEST: tegra_bpmp_send_receive
CONFTEST: flush_cache_all
CONFTEST: vmf_insert_pfn
CONFTEST: jiffies_to_timespec
CONFTEST: ktime_get_raw_ts64
CONFTEST: ktime_get_real_ts64
CONFTEST: full_name_hash
CONFTEST: hlist_for_each_entry
CONFTEST: pci_enable_atomic_ops_to_root
CONFTEST: vga_tryget
CONFTEST: pgprot_decrypted
CONFTEST: cc_mkdec
CONFTEST: iterate_fd
CONFTEST: seq_read_iter
CONFTEST: sg_page_iter_page
CONFTEST: unsafe_follow_pfn
CONFTEST: drm_gem_object_get
CONFTEST: drm_gem_object_put_unlocked
CONFTEST: set_close_on_exec
CONFTEST: add_memory_driver_managed
CONFTEST: device_property_read_u64
CONFTEST: devm_of_platform_populate
CONFTEST: of_dma_configure
CONFTEST: of_property_count_elems_of_size
CONFTEST: of_property_read_variable_u8_array
CONFTEST: i2c_new_client_device
CONFTEST: i2c_unregister_device
CONFTEST: of_get_named_gpio
CONFTEST: devm_gpio_request_one
CONFTEST: gpio_direction_input
CONFTEST: gpio_direction_output
CONFTEST: gpio_get_value
CONFTEST: gpio_set_value
CONFTEST: gpio_to_irq
CONFTEST: icc_get
CONFTEST: icc_put
CONFTEST: icc_set_bw
CONFTEST: dma_buf_export_args
CONFTEST: dma_buf_ops_has_kmap
CONFTEST: dma_buf_ops_has_kmap_atomic
CONFTEST: dma_buf_ops_has_map
CONFTEST: dma_buf_ops_has_map_atomic
CONFTEST: dma_buf_has_dynamic_attachment
CONFTEST: dma_buf_attachment_has_peer2peer
CONFTEST: dma_set_mask_and_coherent
CONFTEST: acpi_bus_get_device
CONFTEST: address_space_init_once
CONFTEST: vzalloc
CONFTEST: wait_on_bit_lock_argument_count
CONFTEST: bitmap_clear
CONFTEST: usleep_range
CONFTEST: radix_tree_empty
CONFTEST: radix_tree_replace_slot
CONFTEST: cpumask_of_node
CONFTEST: pnv_npu2_init_context
CONFTEST: ioasid_get
CONFTEST: migrate_vma_setup
CONFTEST: drm_dev_unref
CONFTEST: drm_reinit_primary_mode_group
CONFTEST: get_user_pages_remote
CONFTEST: get_user_pages
CONFTEST: drm_gem_object_lookup
CONFTEST: drm_atomic_state_ref_counting
CONFTEST: drm_driver_has_gem_prime_res_obj
CONFTEST: drm_atomic_helper_connector_dpms
CONFTEST: drm_connector_funcs_have_mode_in_name
CONFTEST: drm_framebuffer_get
CONFTEST: drm_dev_put
CONFTEST: drm_format_num_planes
CONFTEST: drm_connector_for_each_possible_encoder
CONFTEST: drm_rotation_available
CONFTEST: drm_vma_offset_exact_lookup_locked
CONFTEST: nvhost_dma_fence_unpack
CONFTEST: is_export_symbol_gpl_of_node_to_nid
CONFTEST: is_export_symbol_gpl_sme_active
CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs
CONFTEST: is_export_symbol_present_swiotlb_dma_ops
CONFTEST: is_export_symbol_present___close_fd
CONFTEST: is_export_symbol_present_close_fd
CONFTEST: is_export_symbol_present_get_unused_fd
CONFTEST: is_export_symbol_present_get_unused_fd_flags
CONFTEST: is_export_symbol_present_nvhost_syncpt_unit_interface_get_byte_offset
CONFTEST: is_export_symbol_present_nvhost_get_default_device
CONFTEST: is_export_symbol_present_nvhost_syncpt_unit_interface_get_aperture
CONFTEST: is_export_symbol_present_tegra_dce_register_ipc_client
CONFTEST: is_export_symbol_present_tegra_dce_unregister_ipc_client
CONFTEST: is_export_symbol_present_tegra_dce_client_ipc_send_recv
CONFTEST: is_export_symbol_present_dram_clk_to_mc_clk
CONFTEST: is_export_symbol_present_get_dram_num_channels
CONFTEST: is_export_symbol_present_tegra_dram_types
CONFTEST: is_export_symbol_present_pxm_to_node
CONFTEST: is_export_symbol_present_int_active_memcg
CONFTEST: is_export_symbol_present_kthread_create_on_node
CONFTEST: file_operations
CONFTEST: kuid_t
CONFTEST: dma_ops
CONFTEST: swiotlb_dma_ops
CONFTEST: noncoherent_swiotlb_dma_ops
CONFTEST: vm_fault_has_address
CONFTEST: vm_insert_pfn_prot
CONFTEST: vmf_insert_pfn_prot
CONFTEST: vm_ops_fault_removed_vma_arg
CONFTEST: vmbus_channel_has_ringbuffer_page
CONFTEST: device_driver_of_match_table
CONFTEST: device_of_node
CONFTEST: node_states_n_memory
CONFTEST: kmem_cache_has_kobj_remove_work
CONFTEST: sysfs_slab_unlink
CONFTEST: proc_ops
CONFTEST: timespec64
CONFTEST: vmalloc_has_pgprot_t_arg
CONFTEST: mm_has_mmap_lock
CONFTEST: pci_channel_state
CONFTEST: pci_dev_has_ats_enabled
CONFTEST: mt_device_gre
CONFTEST: remove_memory_has_nid_arg
CONFTEST: add_memory_driver_managed_has_mhp_flags_arg
CONFTEST: address_space
CONFTEST: backing_dev_info
CONFTEST: mm_context_t
CONFTEST: vm_fault_t
CONFTEST: mmu_notifier_ops_invalidate_range
CONFTEST: migrate_vma_added_flags
CONFTEST: make_device_exclusive_range
CONFTEST: drm_bus_present
CONFTEST: drm_bus_has_bus_type
CONFTEST: drm_bus_has_get_irq
CONFTEST: drm_bus_has_get_name
CONFTEST: drm_driver_has_device_list
CONFTEST: drm_driver_has_legacy_dev_list
CONFTEST: drm_driver_has_set_busid
CONFTEST: drm_crtc_state_has_connectors_changed
CONFTEST: drm_init_function_args
CONFTEST: drm_helper_mode_fill_fb_struct
CONFTEST: drm_master_drop_has_from_release_arg
CONFTEST: drm_driver_unload_has_int_return_type
CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg
CONFTEST: drm_atomic_helper_plane_destroy_state_has_plane_arg
CONFTEST: drm_mode_object_find_has_file_priv_arg
CONFTEST: dma_buf_owner
CONFTEST: drm_connector_list_iter
CONFTEST: drm_atomic_helper_swap_state_has_stall_arg
CONFTEST: drm_driver_prime_flag_present
CONFTEST: drm_gem_object_has_resv
CONFTEST: drm_crtc_state_has_async_flip
CONFTEST: drm_crtc_state_has_pageflip_flags
CONFTEST: drm_format_modifiers_present
CONFTEST: drm_vma_node_is_allowed_has_tag_arg
CONFTEST: drm_vma_offset_node_has_readonly
CONFTEST: drm_display_mode_has_vrefresh
CONFTEST: drm_driver_master_set_has_int_return_type
CONFTEST: drm_driver_has_gem_free_object
CONFTEST: drm_prime_pages_to_sg_has_drm_device_arg
CONFTEST: drm_driver_has_gem_prime_callbacks
CONFTEST: drm_crtc_atomic_check_has_atomic_state_arg
CONFTEST: drm_gem_object_vmap_has_map_arg
CONFTEST: drm_plane_atomic_check_has_atomic_state_arg
CONFTEST: drm_device_has_pdev
CONFTEST: drm_crtc_state_has_no_vblank
CONFTEST: drm_mode_config_has_allow_fb_modifiers
CONFTEST: dma_resv_add_fence
CONFTEST: dma_resv_reserve_fences
CONFTEST: reservation_object_reserve_shared_has_num_fences_arg
CONFTEST: dom0_kernel_present
CONFTEST: nvidia_vgpu_kvm_build
CONFTEST: nvidia_grid_build
CONFTEST: nvidia_grid_csp_build
CONFTEST: pm_runtime_available
CONFTEST: pci_class_multimedia_hd_audio
CONFTEST: drm_available
CONFTEST: drm_atomic_available
CONFTEST: is_export_symbol_gpl_refcount_inc
CONFTEST: is_export_symbol_gpl_refcount_dec_and_test
CONFTEST: drm_alpha_blending_available
CONFTEST: ib_peer_memory_symbols
cc -Wp,-MMD,/var/lib/dkms/nvidia/515.48.07/build/nvidia/.nv.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -O2 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -mrecord-mcount -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -g -gdwarf-5 -I/var/lib/dkms/nvidia/515.48.07/build/common/inc -I/var/lib/dkms/nvidia/515.48.07/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"515.48.07\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -ffreestanding -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/515.48.07/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds -fsanitize=shift -fsanitize=bool -fsanitize=enum -DMODULE -DKBUILD_BASENAME='"nv"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/515.48.07/build/nvidia/nv.o /var/lib/dkms/nvidia/515.48.07/build/nvidia/nv.c
cc -Wp,-MMD,/var/lib/dkms/nvidia/515.48.07/build/nvidia/.nv-pci.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -O2 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -mrecord-mcount -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -g -gdwarf-5 -I/var/lib/dkms/nvidia/515.48.07/build/common/inc -I/var/lib/dkms/nvidia/515.48.07/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"515.48.07\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -ffreestanding -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/515.48.07/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds -fsanitize=shift -fsanitize=bool -fsanitize=enum -DMODULE -DKBUILD_BASENAME='"nv_pci"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/515.48.07/build/nvidia/nv-pci.o /var/lib/dkms/nvidia/515.48.07/build/nvidia/nv-pci.c
cc -Wp,-MMD,/var/lib/dkms/nvidia/515.48.07/build/nvidia/.nv-dmabuf.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -O2 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -mrecord-mcount -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -g -gdwarf-5 -I/var/lib/dkms/nvidia/515.48.07/build/common/inc -I/var/lib/dkms/nvidia/515.48.07/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"515.48.07\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -ffreestanding -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/515.48.07/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds -fsanitize=shift -fsanitize=bool -fsanitize=enum -DMODULE -DKBUILD_BASENAME='"nv_dmabuf"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/515.48.07/build/nvidia/nv-dmabuf.o /var/lib/dkms/nvidia/515.48.07/build/nvidia/nv-dmabuf.c
cc: error: unrecognized command line option ‘-mharden-sls=all’; did you mean ‘-mhard-float’?
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/nvidia/515.48.07/build/nvidia/nv.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc -Wp,-MMD,/var/lib/dkms/nvidia/515.48.07/build/nvidia/.nv-acpi.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=branch -fno-jump-tables -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -O2 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -mrecord-mcount -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -g -gdwarf-5 -I/var/lib/dkms/nvidia/515.48.07/build/common/inc -I/var/lib/dkms/nvidia/515.48.07/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"515.48.07\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -ffreestanding -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/515.48.07/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds -fsanitize=shift -fsanitize=bool -fsanitize=enum -DMODULE -DKBUILD_BASENAME='"nv_acpi"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/515.48.07/build/nvidia/nv-acpi.o /var/lib/dkms/nvidia/515.48.07/build/nvidia/nv-acpi.c
cc: error: unrecognized command line option ‘-mharden-sls=all’; did you mean ‘-mhard-float’?
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/nvidia/515.48.07/build/nvidia/nv-pci.o] Error 1
cc: error: unrecognized command line option ‘-mharden-sls=all’; did you mean ‘-mhard-float’?
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/nvidia/515.48.07/build/nvidia/nv-dmabuf.o] Error 1
cc: error: unrecognized command line option ‘-mharden-sls=all’; did you mean ‘-mhard-float’?
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/nvidia/515.48.07/build/nvidia/nv-acpi.o] Error 1
make[1]: *** [Makefile:1840: /var/lib/dkms/nvidia/515.48.07/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.18.2-76051802-generic'
make: *** [Makefile:82: modules] Error 2
Definitely going crazy, will get back to this tomorrow morning. Am considering doing a clean reinstall of Pop (like I did when the last update failed), but I don't want to go through the hassle of setting up my entire workspace again. Please help. Thanks.
Couldn't sleep, so I stayed up to find a solution. This is the only working configuration that I found.
5.17.5-76051705-generic
, and that there are no other kernels installed.sudo add-apt-repository ppa:ubuntu-toolchain-r/test
to enable GCC version 11.2 (what the Nvidia installer requires) to be installed.sudo apt update
, then install gcc-11 via sudo apt install gcc-11
.sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 90
; otherwise it will not show up when trying to assign alternatives.sudo update-alternatives --config gcc
, and select gcc11 (manual). sudo apt install system76-driver-nvidia
, since just the downloaded one alone doesn't work for all programs.jeff@pop-os:~$ nvidia-smi
Tue Jun 14 01:05:58 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.48.07 Driver Version: 515.48.07 CUDA Version: 11.7 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:01:00.0 Off | N/A |
| N/A 43C P5 15W / N/A | 526MiB / 6144MiB | 14% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 2967 G /usr/lib/xorg/Xorg 131MiB |
| 0 N/A N/A 3509 G /usr/bin/gnome-shell 64MiB |
| 0 N/A N/A 4139 G ...631682527630443452,131072 118MiB |
| 0 N/A N/A 4683 G ...r-3.0.1-linux-x64/blender 205MiB |
+-----------------------------------------------------------------------------+
Although I solved the problem, I'm going to leave this issue open because this was an absolute chore to complete and I think that it could definitely be streamlined and the errors could be made more clear to the user. Unfortunately, I don't have anywhere near the expertise required to do so, and thus I'll leave this here and hopefully a pull request solves this sometime in the future.
I've not heard other reports of this, so it may have been a one-off. It may have helped to purge and reinstall Nvidia drivers with these commands:
sudo apt purge ~nnvidia
sudo apt autoremove
sudo apt clean
sudo apt install nvidia-driver-510
and then rebooting.
Since this sounds like a one-off (apt
can get itself into trouble like this from time to time, since it's non-deterministic), I'm going to close this issue. If others encounter the same thing, we can reopen it.
I definitely tried purging every nvidia driver off my system + cleaning and autoremoving at least a dozen times with no luck, hopefully anyone else that encounters this is able to follow my steps and fix it.
I've encountered this issue twice now, with two separate new installations of Pop!_OS 22.04, upgrading to EITHER nvidia-driver-510 or nvidia-driver-515. My main workstation has been completely out of commission for the past month because of this issue. My AMD Ryzen 5 3600X has no integrated graphics to fall back to.
I love Pop, and I don't want to switch to another distro for a very long time, just because of one little bug with Nvidia and the kernel version that isn't getting solved.
I'm assuming that you tried the solution that worked for me, in a comment above. Unfortunately if that didn't work, you're just going to have to follow the rabbithole of error messages and hopefully its solvable. In my case, it directed me to disable Nvidia drivers first, then switch cpp versions, then download from the proper distribution site, and only then did it work.
I couldn't complete your solution entirely, as the links to the 515 staging repository and the latest tarxz are both broken. (404)
Not sure why they did that, @leviport why have the 515 drivers been taken off the staging page?
Regardless @klaribot luckily I kept the download around and just uploaded it to Google Drive, hopefully this works for you.
Because 515 was released.
....Actually, I think I might've found my problem.
I've been installing the 21.10 ISO (since that's what was on my ventoy usb at the time), and then upgrading to 22.04, and then updated Nvidia, and it breaks.
However, installing the 22.04 ISO directly, seems to have the issue solved. In that case, the problem must lie in between the in-place upgrade from 21.10 to 22.04.
Regardless, nvidia-driver-515 seems to be installed (and is already working) by default on the 22.04 ISO. I will try to spin this problem up in a QEMU VM and see if this solution still works, regardless.
Got similar error when upgrading.
already removed all nvidia packages but can't fix system76-dkms and system76-dkms.
Loading new system76-io-1.0.2~1655490480~22.04~0217576 DKMS files...
Building for 5.18.10-76051810-generic
Building initial module for 5.18.10-76051810-generic
ERROR (dkms apport): kernel package linux-headers-5.18.10-76051810-generic is not supported
Error! Bad return status for module build on kernel: 5.18.10-76051810-generic (x86_64)
Consult /var/lib/dkms/system76-io/1.0.2~1655490480~22.04~0217576/build/make.log for more information.
dpkg: error processing package system76-io-dkms (--configure):
installed system76-io-dkms package post-installation script subprocess returned error exit status 10
Processing triggers for initramfs-tools (0.140ubuntu6.1) ...
update-initramfs: Generating /boot/initrd.img-5.18.10-76051810-generic
kernelstub.Config : INFO Looking for configuration...
kernelstub : INFO System information:
OS:..................Pop!_OS 22.04
Root partition:....../dev/nvme0n1p3
Root FS UUID:........abd645c9-8556-4933-b76b-8e8eb7fa818a
ESP Path:............/boot/efi
ESP Partition:......./dev/nvme0n1p2
ESP Partition #:.....2
NVRAM entry #:.......-1
Boot Variable #:.....0000
Kernel Boot Options:.quiet loglevel=0 systemd.show_status=false splash
Kernel Image Path:.../boot/vmlinuz-5.18.10-76051810-generic
Initrd Image Path:.../boot/initrd.img-5.18.10-76051810-generic
Force-overwrite:.....False
kernelstub.Installer : INFO Copying Kernel into ESP
kernelstub.Installer : INFO Copying initrd.img into ESP
kernelstub.Installer : INFO Setting up loader.conf configuration
kernelstub.Installer : INFO Making entry file for Pop!_OS
kernelstub.Installer : INFO Backing up old kernel
kernelstub.Installer : INFO No old kernel found, skipping
Errors were encountered while processing:
system76-dkms
system76-io-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
GNU nano 5.6.1 /var/lib/dkms/system76-io/1.0.2~1655490480~22.04~0217576/build/make.log
DKMS make.log for system76-io-1.0.2~1655490480~22.04~0217576 for kernel 5.18.10-76051810-generic (x86_64)
Fri 05 Aug 2022 21:50:15 AEST
make: Entering directory '/usr/src/linux-headers-5.18.10-76051810-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
You are using: gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0
CC [M] /var/lib/dkms/system76-io/1.0.2~1655490480~22.04~0217576/build/system76-io.o
gcc: error: unrecognized command-line option '-mharden-sls=all'
make[1]: *** [scripts/Makefile.build:288: /var/lib/dkms/system76-io/1.0.2~1655490480~22.04~0217576/build/system76-io.o] Error 1
make: *** [Makefile:1844: /var/lib/dkms/system76-io/1.0.2~1655490480~22.04~0217576/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.18.10-76051810-generic'
I recently upgraded to 22.04 from 21.10 and the nvidia drivers have been completely bricked. I am unable to switch to NVIDIA graphics, and most importantly the package manager is locked up by the broken packages.
Upon trying to install anything, the following message pops up:
This happens no matter the package, no matter the situation, and only disappears upon removing the faulty packages. I have tried reinstalling the driver, running the usual
installing a lower driver level (470 seemed to work for this user here, but not for me), however none of this helped.
I, having experienced issues with upgrading in the past, backed up all my apt installs from the previous version via
apt list --installed
and tried installing the previous version's packages back on, but no luck.Notably, the current kernel (
5.17.5-76051705-generic
) did not change with the upgrade; it stayed constant between 21.10 and 22.04, which adds to my confusion, since the error message is stating that the 5.17.5xx kernel is not supported—yet I had been using 5.17.5xx with 21.10 for over half a year without too much issue. I tried booting into an older kernel, 5.16.xx, however this brings me to a TTY terminal and prompts me to runjourncalctl -xb
, which brings up hundreds of cryptic lines, I can retrieve them if needed.Some additional info: longtime Pop user, currently running a Lenovo Legion with Ryzen 5800h and NVIDIA RTX 3060. Have had issues when upgrading before, I hoped that it would be better now and wanted to stick to an LTS (22.04) but unfortunately things didn't go as planned.
I can provide any additional information if requested.