我的新 ubuntu 22.04 操作系统出现问题;启动时,我看到这些错误,并且屏幕变黑:
[ 4.817217] usbhid 1-11:1.1: couldn't find an input interrupt endpoint
[ 7.498381] mtd device must be supplied (device name is empty)
[ 8.677918] nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
[ 8.677921] ucsi_ccg 3-0008: i2c_transfer failed -110
[ 8.677927] ucsi_ccg 3-0008: ucsi_ccg_init failed - -110
[ 9.705924] snd_hda_intel 0000:00:1f.3: No response from codec, disabling MSI: last cmd=0x000f0000
[ 10.710003] snd_hda_intel 0000:00:1f.3: Codec #0 probe error; disabling it...
[ 10.715417] snd_hda_codec_hdmi hdaudioC0D2: No i915 binding for Intel HDMI/DP codec
[ 10.718884] snd_hda_intel 0000:00:1f.3: Cannot probe codecs, giving up
[ 31.022834] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 31.022873] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 31.022889] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 31.022903] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 31.355003] audit: type=1107 audit(1660548081.503:130): pid=796 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.login1.Manager" member="SessionRemoved" name=":1.26" mask="receive" pid=2013 label="snap.skype.skype" peer_pid=812 peer_label="unconfined"
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
[ 31.355007] audit: type=1420 audit(1660548081.503:131): subj_apparmor=unconfined
[ 31.452304] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 31.452479] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 31.452580] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 31.452668] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 31.490017] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 31.490076] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 31.490098] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 31.490118] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 31.552243] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 31.552418] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 31.552519] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 31.552606] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
我的显卡是:Nvidia Geforce RTX 2060
Ubuntu 内核版本为:5.15.0-46-generic
ubuntu版本是:22.04
Nvidia 驱动程序是?:nvidia-driver-515, (kernel modules provided by linux-modules-nvidia-515-generic-hwe-22.04)
我该如何解决这个问题?
答案1
我使用 apt安装 Ubuntu 22.04 + Nvidia GeForce RTX 2060 后也出现了这种情况。nvidia-cuda-toolkit
我最终通过在黑屏时使用Ctrl+ Alt+打开终端来修复驱动程序F2,然后
sudo apt purge nvidia*
sudo apt update
sudo apt full-upgrade
sudo apt install --fix-missing
sudo apt install --fix-broken
sudo apt install linux-headers-$(uname -r)
sudo ubuntu-drivers autoinstall
然后重新启动,然后单击登录屏幕上的齿轮图标并选择Ubuntu
(Xorg)、NOTUbuntu Wayland
或任何涉及的内容Wayland
,最后登录。
如果不起作用,你可以尝试
sudo apt purge nvidia*
sudo apt install xserver-xorg-video-nouveau
感谢这些来源帮助我解决问题。