我需要帮助。我有一台戴尔 Alienware X15:
sudo dmesg | grep -i DMI:
[ 0.000000] DMI: Alienware Alienware x15 R1/Alienware x15 R1, BIOS 1.18.0 03/10/2023
它有一个 Gefore RTX 3070:
ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd000024DDsv00001028sd00000A8Ebc03sc00i00
vendor : NVIDIA Corporation
model : GA104M [GeForce RTX 3070 Mobile / Max-Q]
driver : nvidia-driver-535-server-open - distro non-free
driver : nvidia-driver-535 - distro non-free recommended
driver : nvidia-driver-525-open - distro non-free
driver : nvidia-driver-470-server - distro non-free
driver : nvidia-driver-535-server - distro non-free
driver : nvidia-driver-470 - distro non-free
driver : nvidia-driver-535-open - distro non-free
driver : nvidia-driver-525-server - distro non-free
driver : nvidia-driver-525 - distro non-free
driver : xserver-xorg-video-nouveau - distro free builtin
自上周以来,我遇到了几个问题。首先,当我选择上面推荐的驱动程序时,Ubuntu 无法检测到我的外接显示器。我可以通过切换到 nouveau 驱动程序来解决这个问题。以前我可以毫无问题地使用 535 驱动程序。其次,任何使用 chrome 的软件都无法打开。例如,Google Chrome 浏览器和 Brave 浏览器。我点击它们,在左上角“活动”旁边看到应用程序名称,然后它们就默默地关闭了。无论我选择哪种视频驱动程序,都会发生这种情况,但开始发生的时间相似,所以我怀疑它们是相关的。
我试图准确指出这件事发生的时间,但我认为这是由于 引起的sudo apt dist-upgrade
,现在我很后悔这样做!
所以现在我需要帮助来解决这个问题,而不必重新安装我的整个操作系统。我使用 Windows 双启动,并且在过去几天一直在使用 Windows,但我不得不停止,因为我一直遇到很多崩溃和内存不足的问题。尝试编译代码会导致问题,因为它经常由于环境问题而失败,所以我需要我的 Ubuntu 环境尽快恢复正常。
dist-upgrade 中的较新内核是否可能导致与驱动程序发生冲突?这会对 Chrome 产生什么影响?我已经清除了 Chrome 并重新安装,但出现相同的错误,无论我是从 Ubuntu“应用商店”安装还是从直接从 Google 下载的 .deb 文件安装。
sudo dpkg -i google-chrome-stable_current_amd64.deb
Selecting previously unselected package google-chrome-stable.
(Reading database ... 293740 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (114.0.5735.198-1) ...
Setting up google-chrome-stable (114.0.5735.198-1) ...
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/google-chrome (google-chrome) in auto mode
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for man-db (2.10.2-1) ...
$ google-chrome
[12201:12201:0707/105632.005685:FATAL:credentials.cc(127)] Check failed: . : Permission denied (13)
Trace/breakpoint trap (core dumped)
sudo google-chrome
[12293:12293:0707/105750.549790:ERROR:zygote_host_impl_linux.cc(100)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
$ sudo google-chrome --no-sandbox
[12321:12343:0707/105828.609145:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[12321:12343:0707/105828.609175:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[12321:12343:0707/105828.609180:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[12321:12343:0707/105828.609185:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
[12321:12343:0707/105828.617503:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[12321:12343:0707/105828.617524:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[12321:12343:0707/105828.627064:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[12321:12343:0707/105828.627074:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
[12358:12358:0707/105828.648422:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[12358:12358:0707/105828.648474:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[12358:12358:0707/105828.648492:ERROR:gl_display.cc(790)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
Authorization required, but no authorization protocol specified
[12358:12358:0707/105828.648548:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[12358:12358:0707/105828.648563:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[12358:12358:0707/105828.648577:ERROR:gl_display.cc(790)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[12358:12358:0707/105828.648591:ERROR:gl_display.cc(824)] Initialization of all EGL display types failed.
[12358:12358:0707/105828.648606:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
Authorization required, but no authorization protocol specified
[12358:12358:0707/105828.658661:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[12358:12358:0707/105828.658699:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[12358:12358:0707/105828.658713:ERROR:gl_display.cc(790)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
Authorization required, but no authorization protocol specified
[12358:12358:0707/105828.658762:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[12358:12358:0707/105828.658778:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[12358:12358:0707/105828.658792:ERROR:gl_display.cc(790)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[12358:12358:0707/105828.658805:ERROR:gl_display.cc(824)] Initialization of all EGL display types failed.
[12358:12358:0707/105828.658820:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[12358:12358:0707/105828.659541:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[12321:12321:0707/105828.664358:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: unknown error type:
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
[12428:12428:0707/105828.701622:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[12428:12428:0707/105828.701702:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[12428:12428:0707/105828.701721:ERROR:gl_display.cc(790)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
Authorization required, but no authorization protocol specified
[12428:12428:0707/105828.701784:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[12428:12428:0707/105828.701799:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[12428:12428:0707/105828.701813:ERROR:gl_display.cc(790)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[12428:12428:0707/105828.701826:ERROR:gl_display.cc(824)] Initialization of all EGL display types failed.
[12428:12428:0707/105828.701840:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
Authorization required, but no authorization protocol specified
[12428:12428:0707/105828.711937:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[12428:12428:0707/105828.711991:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[12428:12428:0707/105828.712006:ERROR:gl_display.cc(790)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
Authorization required, but no authorization protocol specified
[12428:12428:0707/105828.712056:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[12428:12428:0707/105828.712072:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[12428:12428:0707/105828.712086:ERROR:gl_display.cc(790)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[12428:12428:0707/105828.712100:ERROR:gl_display.cc(824)] Initialization of all EGL display types failed.
[12428:12428:0707/105828.712114:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[12428:12428:0707/105828.712954:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
[12508:12508:0707/105828.742523:ERROR:angle_platform_impl.cc(43)] DisplayVkXcb.cpp:59 (initialize): xcb_connect() failed, error 1
ERR: DisplayVkXcb.cpp:59 (initialize): xcb_connect() failed, error 1
[12508:12508:0707/105828.742571:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Not initialized.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Not initialized.
[12508:12508:0707/105828.742603:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Not initialized.
[12508:12508:0707/105828.742618:ERROR:gl_display.cc(790)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[12508:12508:0707/105828.742636:ERROR:gl_display.cc(824)] Initialization of all EGL display types failed.
[12508:12508:0707/105828.742653:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
Authorization required, but no authorization protocol specified
[12508:12508:0707/105828.752764:ERROR:angle_platform_impl.cc(43)] DisplayVkXcb.cpp:59 (initialize): xcb_connect() failed, error 1
ERR: DisplayVkXcb.cpp:59 (initialize): xcb_connect() failed, error 1
[12508:12508:0707/105828.752842:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Not initialized.
ERR: Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Not initialized.
[12508:12508:0707/105828.752858:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Not initialized.
[12508:12508:0707/105828.752873:ERROR:gl_display.cc(790)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[12508:12508:0707/105828.752887:ERROR:gl_display.cc(824)] Initialization of all EGL display types failed.
[12508:12508:0707/105828.752901:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[12508:12508:0707/105828.753751:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
[12517:12523:0707/105828.759446:ERROR:x11_software_bitmap_presenter.cc(142)] XGetWindowAttributes failed for window 25165827
如果有人能给我一些关于如何解决这个问题的建议,我将不胜感激。谢谢
答案1
问题出在安全启动上。我按如下方式安装了驱动程序:
sudo apt install nvidia-driver-535 nvidia-dkms-535
然后它要求我在下次启动时输入密码(尽管通过一些 MOK 弹出窗口,这种方式不太用户友好),一旦我输入,一切都解决了。